Re: [PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Jürgen Beisert
Hi Marek, On Monday 09 September 2013 18:04:19 Marek Vasut wrote: > > Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at > > least for the 4 wire touchscreen. > > > > Signed-off-by: Juergen Beisert > > CC: linux-arm-ker...@lists.infradead.org > > CC: de...@driverdev.osuosl.o

Re: [PATCH 2/2] staging: zram: remove init_done from zram struct (v2)

2013-09-10 Thread Dan Carpenter
On Fri, Sep 06, 2013 at 06:21:20PM +0300, Sergey Senozhatsky wrote: > @@ -558,14 +563,12 @@ static void zram_reset_device(struct zram *zram, bool > reset_capacity) > flush_work(&zram->free_work); > > down_write(&zram->init_lock); > - if (!zram->init_done) { > + if (!init_done

Re: [PATCH] Staging: Remove a few superfluous braces

2013-09-10 Thread Ian Abbott
On 2013-09-07 23:51, Sean Williams wrote: Please don't flame me :) I'm getting my feet wet with kernel contribution. One example I saw in a video by GKH suggested cleaning up coding style as a good first commit. Signed-off-by: Sean Williams Fair enough. Reviewed-by: Ian Abbott -- -=( Ian

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage

2013-09-10 Thread Dan Carpenter
On Fri, Sep 06, 2013 at 05:55:45PM +0300, Sergey Senozhatsky wrote: > On (09/06/13 16:42), Jerome Marchand wrote: > > On 09/06/2013 03:47 PM, Sergey Senozhatsky wrote: > > > Calling handle_pending_slot_free() for every RW operation may > > > cause unneccessary slot_free_lock locking, because most l

[PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Juergen Beisert
Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at least for the 4 wire touchscreen. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Heiko Carstens
On Sun, Sep 08, 2013 at 07:31:18PM -0700, Guenter Roeck wrote: > On 09/08/2013 07:31 PM, Greg Kroah-Hartman wrote: > >On Sun, Sep 08, 2013 at 07:24:19PM -0700, Guenter Roeck wrote: > >>On 09/08/2013 06:59 PM, Greg Kroah-Hartman wrote: > >>>On Sun, Sep 08, 2013 at 06:03:00PM -0700, Guenter Roeck wro

[PATCH 5/5] Staging/iio/adc/touchscreen/MXS: Remove old touchscreen detection implementation

2013-09-10 Thread Juergen Beisert
Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron --- drivers/staging/iio/adc/mxs-lradc.c | 165 1 file changed, 165 deletions(-) diff --git a/drive

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage

2013-09-10 Thread Sergey Senozhatsky
On (09/09/13 11:33), Dan Carpenter wrote: > On Fri, Sep 06, 2013 at 05:55:45PM +0300, Sergey Senozhatsky wrote: > > On (09/06/13 16:42), Jerome Marchand wrote: > > > On 09/06/2013 03:47 PM, Sergey Senozhatsky wrote: > > > > Calling handle_pending_slot_free() for every RW operation may > > > > cause

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Sergey Senozhatsky
> > Calling handle_pending_slot_free() for every RW operation may > > cause unneccessary slot_free_lock locking, because most likely > > process will see NULL slot_free_rq. handle_pending_slot_free() > > only when current detects that slot_free_rq is not NULL. > > > > v2: protect handle_pending_sl

[PATCH 2/5] Staging/iio/adc/touchscreen/MXS: separate i.MX28 specific register bits

2013-09-10 Thread Juergen Beisert
In order to support i.MX23 and i.MX28 within one driver we need to separate the register definitions which differ in both SoC variants. Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

[PATCH] Fix IPv6 support in usbipd

2013-09-10 Thread Dominik Paulus
getaddrinfo() leaves the order of the returned addrinfo structs unspecified. On systems with bindv6only disabled (this is the default), PF_INET6 sockets bind to IPv4, too. Thus, IPv6 support in usbipd was broken when getaddrinfo returned first IPv4 and then IPv6 addrinfos, as the IPv6 bind failed w

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Dan Carpenter
On Mon, Sep 09, 2013 at 03:49:42PM +0300, Sergey Senozhatsky wrote: > > > Calling handle_pending_slot_free() for every RW operation may > > > cause unneccessary slot_free_lock locking, because most likely > > > process will see NULL slot_free_rq. handle_pending_slot_free() > > > only when current d

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Jerome Marchand
On 09/09/2013 03:21 PM, Dan Carpenter wrote: > On Mon, Sep 09, 2013 at 03:49:42PM +0300, Sergey Senozhatsky wrote: Calling handle_pending_slot_free() for every RW operation may cause unneccessary slot_free_lock locking, because most likely process will see NULL slot_free_rq. handle_p

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Christoph Hellwig
On Sun, Sep 08, 2013 at 06:59:45PM -0700, Greg Kroah-Hartman wrote: > Can't we just export the functions for those arches? Surely lutre > isn't the first/only driver that needs this? Lustre is. These are core mm helpers, and lustre uses them to reimplement another core VM function. It then uses

[RFCv3] staging/iio/adc: change the MXS touchscreen driver implementation

2013-09-10 Thread Juergen Beisert
The following series replaces the current busy loop touchscreen implementation for i.MX28/i.MX23 SoCs by a fully interrupt driven implementation. Since i.MX23 and i.Mx28 silicon differs, the existing implementation can be used for the i.MX28 SoC only. So, the first two patches of this series move

[PATCH 1/5] Staging/iio/adc/touchscreen/MXS: distinguish i.MX23's and i.MX28's LRADC

2013-09-10 Thread Juergen Beisert
The LRADC units in i.MX23 and i.MX28 differ and we need to distinguish both SoC variants in order to make the touchscreen work on i.MX23 Signed-off-by: Juergen Beisert CC: linux-arm-ker...@lists.infradead.org CC: de...@driverdev.osuosl.org CC: Marek Vasut CC: Fabio Estevam CC: Jonathan Cameron

Re: [PATCH v2] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread Lee Jones
On Tue, 10 Sep 2013, wwang wrote: > 于 2013年09月09日 21:02, Lee Jones 写道: > >> #define PHY_FLD4 0x1E > >>>+#define FLDEN_SEL0x4000 > >>>+#define REQ_REF 0x2000 > >>>+#define RXAMP_OFF0x1000 > >>>+#define REQ_ADDA

[PATCH 4/5] Staging/iio/adc/touchscreen/MXS: add interrupt driven touch detection

2013-09-10 Thread Juergen Beisert
For battery driven systems it is a very bad idea to collect the touchscreen data within a kernel busy loop. This change uses the features of the hardware to delay and accumulate samples in hardware to avoid a high interrupt and CPU load. Note: this is only tested on a i.MX23 SoC yet. Signed-off-

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Sergey Senozhatsky
On (09/09/13 16:21), Dan Carpenter wrote: > On Mon, Sep 09, 2013 at 03:49:42PM +0300, Sergey Senozhatsky wrote: > > > > Calling handle_pending_slot_free() for every RW operation may > > > > cause unneccessary slot_free_lock locking, because most likely > > > > process will see NULL slot_free_rq. ha

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Dan Carpenter
On Mon, Sep 09, 2013 at 05:42:59PM +0300, Sergey Senozhatsky wrote: > > 3) Explain why it is safe to test zram->slot_free_rq when we are not > >holding the lock. I think it is unsafe. I don't want to even think > >about it without the numbers. > > atomic pointer test, which is either NUL

Re: [PATCH v2 6/6] staging: dgnc: changes arguments in sizeof

2013-09-10 Thread Lidza Louina
On Fri, Sep 6, 2013 at 5:45 PM, Dan Carpenter wrote: > On Fri, Sep 06, 2013 at 04:48:32PM -0400, Lidza Louina wrote: >> The arguments that are passed into sizeof were >> generic. This patch changes this by putting >> the actual item that we need a size of instead. >> >> For example: >> - kzalloc

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Sergey Senozhatsky
On (09/09/13 17:52), Dan Carpenter wrote: > On Mon, Sep 09, 2013 at 05:42:59PM +0300, Sergey Senozhatsky wrote: > > > 3) Explain why it is safe to test zram->slot_free_rq when we are not > > >holding the lock. I think it is unsafe. I don't want to even think > > >about it without the numb

[PATCH] Staging: rtl8188eu: checkpatch.pl warnings removed

2013-09-10 Thread farisdehaan
From: Faris de Haan Fixed some of the coding style issues reported by checkpatch.pl Signed-off-by: Faris de Haan --- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_sta_mgt.c b/driver

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Jerome Marchand
On 09/09/2013 03:46 PM, Jerome Marchand wrote: > On 09/09/2013 03:21 PM, Dan Carpenter wrote: >> On Mon, Sep 09, 2013 at 03:49:42PM +0300, Sergey Senozhatsky wrote: > Calling handle_pending_slot_free() for every RW operation may > cause unneccessary slot_free_lock locking, because most like

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Ramkumar Ramachandra
Greg Kroah-Hartman wrote: > What do you mean by this? What "initial cost"? You should be able to > cross-compile almost all arches on your desktop machine today with the > compilers we have on kernel.org. If I can get them set up and working, > they can't be that hard for anyone else :) Won't y

Re: [PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Marek Vasut
Dear Juergen Beisert, > Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC at > least for the 4 wire touchscreen. > > Signed-off-by: Juergen Beisert > CC: linux-arm-ker...@lists.infradead.org > CC: de...@driverdev.osuosl.org > CC: Marek Vasut > CC: Fabio Estevam > CC: Jonath

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Guenter Roeck
On 09/08/2013 07:31 PM, Greg Kroah-Hartman wrote: On Sun, Sep 08, 2013 at 07:24:19PM -0700, Guenter Roeck wrote: On 09/08/2013 06:59 PM, Greg Kroah-Hartman wrote: On Sun, Sep 08, 2013 at 06:03:00PM -0700, Guenter Roeck wrote: mips allmodconfig fails with ERROR: "copy_from_user_page" [drivers/

Re: [BUG?] staging: zram: Add auto loading of module if user opens /dev/zram.

2013-09-10 Thread Kay Sievers
On Mon, Sep 9, 2013 at 5:58 PM, Tom Gundersen wrote: > Hi Konrad, > > The above commit (c70bda9 in mainline) doesn't appear to work for me. > I.e., depmod does not create an entry in modules.devname and hence no > device node is created on boot. > > If I understand correctly, you'd also need to cr

[PATCH] Fix man-pages for usbip userspace utilities

2013-09-10 Thread Tobias Polzer
The usbip userspace utilities contained some half-documented (only in --help, not in man) options. They were added to the man-pages of usbip and usbipd. Also a typo in the usbip headline was fixed. Signed-off-by: Tobias Polzer Signed-off-by: Dominik Paulus --- drivers/staging/usbip/userspace/do

Re: [PATCH v2] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread Lee Jones
On Fri, 06 Sep 2013, wei_w...@realsil.com.cn wrote: > From: Wei WANG > > In some platforms, specially Thinkpad series, rts5249 won't be > initialized properly. So we need adjust some phy parameters to > improve the compatibility issue. > > Signed-off-by: Wei WANG > --- > drivers/mfd/rts5249.c

[PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Guenter Roeck
mips allmodconfig fails with ERROR: "copy_from_user_page" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] undefined! which is due to LUSTRE using copy_from_user_page which is not exported by any architecture. Unfortunately, LUSTRE can only be built as module, so there is no easy fix. MIPS, SH,

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Ramkumar Ramachandra
Greg Kroah-Hartman wrote: > On Sun, Sep 08, 2013 at 06:03:00PM -0700, Guenter Roeck wrote: >> mips allmodconfig fails with >> >> ERROR: "copy_from_user_page" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] >> undefined! >> >> which is due to LUSTRE using copy_from_user_page which is not exported b

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2013 at 06:03:00PM -0700, Guenter Roeck wrote: > mips allmodconfig fails with > > ERROR: "copy_from_user_page" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] > undefined! > > which is due to LUSTRE using copy_from_user_page which is not exported by any > architecture. Any, or j

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Greg Kroah-Hartman
On Mon, Sep 09, 2013 at 06:40:12AM -0700, Christoph Hellwig wrote: > On Sun, Sep 08, 2013 at 06:59:45PM -0700, Greg Kroah-Hartman wrote: > > Can't we just export the functions for those arches? Surely lutre > > isn't the first/only driver that needs this? > > Lustre is. These are core mm helpers

Re: [PATCH] Staging: rtl8188eu: checkpatch.pl warnings removed

2013-09-10 Thread Larry Finger
On 09/09/2013 10:34 AM, farisdeh...@gmail.com wrote: From: Faris de Haan Fixed some of the coding style issues reported by checkpatch.pl Signed-off-by: Faris de Haan --- drivers/staging/rtl8188eu/core/rtw_sta_mgt.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Ramkumar Ramachandra
Greg Kroah-Hartman wrote: >> How will the hardware industry be driven otherwise? > > I have no idea what you are referring to here, please explain. For stability, hardware needs to be present. When I started out a couple of days ago, I blamed my monitor for the data corruption: it's one extra poin

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Ramkumar Ramachandra
Guenter Roeck wrote: >> For stability, hardware needs to be present. When I started out a >> couple of days ago, I blamed my monitor for the data corruption: it's >> one extra point of leverage. > > I have no idea whatsoever what you are talking about. Sorry, my bad. I haven't done hardware driver

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Dan Carpenter
On Fri, Sep 06, 2013 at 06:12:55PM +0300, Sergey Senozhatsky wrote: > Calling handle_pending_slot_free() for every RW operation may > cause unneccessary slot_free_lock locking, because most likely > process will see NULL slot_free_rq. handle_pending_slot_free() > only when current detects that slot

Re: [PATCH 2/2] staging: zram: remove init_done from zram struct (v2)

2013-09-10 Thread Jerome Marchand
On 09/09/2013 02:34 PM, Dan Carpenter wrote: > On Fri, Sep 06, 2013 at 06:21:20PM +0300, Sergey Senozhatsky wrote: >> @@ -558,14 +563,12 @@ static void zram_reset_device(struct zram *zram, bool >> reset_capacity) >> flush_work(&zram->free_work); >> >> down_write(&zram->init_lock); >> -

Re: [PATCH v2] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread Lee Jones
On Fri, 06 Sep 2013, wei_w...@realsil.com.cn wrote: > From: Wei WANG > > v2: > Name those new-added register values > > Wei WANG (1): > mfd: rtsx: Modify rts5249_optimize_phy > > drivers/mfd/rts5249.c| 35 -- > include/linux/mfd/rtsx_pci.h | 43 >

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Guenter Roeck
On Tue, Sep 10, 2013 at 10:49:05AM +0200, Geert Uytterhoeven wrote: > On Mon, Sep 9, 2013 at 10:06 PM, Guenter Roeck wrote: > >> [*] Why does m68k allmodconfig still succeed on kissb??? > >> It does fail for me, as m68k's copy_from_user_page() calls > >> flush_icache_user_range(), which is

Re: [PATCH v2 4/6] staging: dgnc: removes kzalloc error messages

2013-09-10 Thread Lidza Louina
On Fri, Sep 6, 2013 at 5:50 PM, Dan Carpenter wrote: > On Fri, Sep 06, 2013 at 04:48:30PM -0400, Lidza Louina wrote: >> This patch removes the error messages associated >> with errors in kzalloc. The driver doesn't need to >> add the error message because kzalloc already prints >> a more useful me

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Guenter Roeck
On 09/08/2013 06:59 PM, Greg Kroah-Hartman wrote: On Sun, Sep 08, 2013 at 06:03:00PM -0700, Guenter Roeck wrote: mips allmodconfig fails with ERROR: "copy_from_user_page" [drivers/staging/lustre/lustre/libcfs/libcfs.ko] undefined! which is due to LUSTRE using copy_from_user_page which is not e

[BUG?] staging: zram: Add auto loading of module if user opens /dev/zram.

2013-09-10 Thread Tom Gundersen
Hi Konrad, The above commit (c70bda9 in mainline) doesn't appear to work for me. I.e., depmod does not create an entry in modules.devname and hence no device node is created on boot. If I understand correctly, you'd also need to create the correct "char-major--" alias. But I don't really see how

Re: [PATCH 1/1] staging/speakup/kobjects.c: Code improvement.

2013-09-10 Thread Chris Brannon
Raphael S Carvalho writes: > Wouldn't the following code (right before the statement: if > (param->var_id == VOICE)) > check if value is out of range? > > value = simple_strtol(cp, NULL, 10); > ret = spk_set_num_var(value, param, len); > if (ret == -ERANGE) { > var_data = param->data; > pr_warn(

[PATCH] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread wei_wang
From: Wei WANG In some platforms, specially Thinkpad series, rts5249 won't be initialized properly. So we need adjust some phy parameters to improve the compatibility issue. Signed-off-by: Wei WANG --- drivers/mfd/rts5249.c| 48 -- include/linux/mf

[PATCH v3] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread wei_wang
From: Wei WANG In some platforms, specially Thinkpad series, rts5249 won't be initialized properly. So we need adjust some phy parameters to improve the compatibility issue. Signed-off-by: Wei WANG --- drivers/mfd/rts5249.c| 48 -- include/linux/mf

Re: [PATCH] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread wwang
于 2013年09月10日 17:09, wei_w...@realsil.com.cn 写道: > From: Wei WANG > > In some platforms, specially Thinkpad series, rts5249 won't be > initialized properly. So we need adjust some phy parameters to > improve the compatibility issue. Hi all: Sorry, forget to modify the subject prefix. Please igno

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Geert Uytterhoeven
On Mon, Sep 9, 2013 at 10:06 PM, Guenter Roeck wrote: >> [*] Why does m68k allmodconfig still succeed on kissb??? >> It does fail for me, as m68k's copy_from_user_page() calls >> flush_icache_user_range(), which is not exported. >> > I don't see a build failure in m68k:allmodconfig either.

Re: [PATCH v2] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread wwang
于 2013年09月09日 21:02, Lee Jones 写道: #define PHY_FLD4 0x1E >+#define FLDEN_SEL 0x4000 >+#define REQ_REF 0x2000 >+#define RXAMP_OFF 0x1000 >+#define REQ_ADDA 0x0800 >+#define BER_COUNT 0x00

Re: [PATCH v3] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread wwang
于 2013年09月10日 17:28, Lee Jones 写道: I would like some more information in the commit log though. You're making a lot of configuration changes here and due to the incomprehensible 'magic numbers' used previously, it's impossible to know what you're changing by just reading the code. Why won't the

Re: [PATCH] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread Lee Jones
On Tue, 10 Sep 2013, wwang wrote: > 于 2013年09月10日 17:09, wei_w...@realsil.com.cn 写道: > > From: Wei WANG > > > > In some platforms, specially Thinkpad series, rts5249 won't be > > initialized properly. So we need adjust some phy parameters to > > improve the compatibility issue. > > Hi all: > >

Re: [PATCH v3] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread Lee Jones
On Tue, 10 Sep 2013, wwang wrote: > 于 2013年09月10日 17:28, Lee Jones 写道: > >I would like some more information in the commit log though. You're > >making a lot of configuration changes here and due to the > >incomprehensible 'magic numbers' used previously, it's impossible to > >know what you're cha

Re: [PATCH v3] mfd: rtsx: Modify rts5249_optimize_phy

2013-09-10 Thread Lee Jones
> From: Wei WANG > > In some platforms, specially Thinkpad series, rts5249 won't be > initialized properly. So we need adjust some phy parameters to > improve the compatibility issue. The code looks so much more readable now, thanks for that. I would like some more information in the commit log

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Greg Kroah-Hartman
On Mon, Sep 09, 2013 at 08:08:28AM +0530, Ramkumar Ramachandra wrote: > Greg Kroah-Hartman wrote: > > What do you mean by this? What "initial cost"? You should be able to > > cross-compile almost all arches on your desktop machine today with the > > compilers we have on kernel.org. If I can get

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Guenter Roeck
On 09/08/2013 07:55 PM, Ramkumar Ramachandra wrote: Greg Kroah-Hartman wrote: How will the hardware industry be driven otherwise? I have no idea what you are referring to here, please explain. For stability, hardware needs to be present. When I started out a couple of days ago, I blamed my m

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Peng Tao
On Mon, Sep 9, 2013 at 1:01 PM, Heiko Carstens wrote: > On Sun, Sep 08, 2013 at 07:31:18PM -0700, Guenter Roeck wrote: >> On 09/08/2013 07:31 PM, Greg Kroah-Hartman wrote: >> >On Sun, Sep 08, 2013 at 07:24:19PM -0700, Guenter Roeck wrote: >> >>On 09/08/2013 06:59 PM, Greg Kroah-Hartman wrote: >> >

Re: [PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Jürgen Beisert
Hi Marek, On Tuesday 10 September 2013 10:22:36 Marek Vasut wrote: > > On Monday 09 September 2013 18:04:19 Marek Vasut wrote: > > > > Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC > > > > at least for the 4 wire touchscreen. > > > > > > > > Signed-off-by: Juergen Beisert

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Sergey Senozhatsky
On (09/09/13 18:10), Jerome Marchand wrote: > On 09/09/2013 03:46 PM, Jerome Marchand wrote: > > On 09/09/2013 03:21 PM, Dan Carpenter wrote: > >> On Mon, Sep 09, 2013 at 03:49:42PM +0300, Sergey Senozhatsky wrote: > > Calling handle_pending_slot_free() for every RW operation may > > cause

[PATCH] Staging: bcm: nvm: fixed space prohibition

2013-09-10 Thread Aldo Iljazi
Fixed space prohibition before semicolon, particularly: nvm.c:106: WARNING: space prohibited before semicolon nvm.c:1098: WARNING: space prohibited before semicolon nvm.c:1279: WARNING: space prohibited before semicolon nvm.c:2834: WARNING: space prohibited before semicolon nvm.c:3361: WARNING: sp

Re: [PATCH] Staging: rtl8188eu: rtw_wlan_util.c: Fixed checkpatch.pl warnings.

2013-09-10 Thread Larry Finger
On 09/10/2013 03:38 AM, farisdeh...@gmail.com wrote: From: Faris de Haan Fixed a few of the coding style issues reported by checkpatch.pl Signed-off-by: Faris de Haan --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 22 +++--- 1 file changed, 11 insertions(+), 11 dele

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Geert Uytterhoeven
On Tue, Sep 10, 2013 at 6:44 PM, Guenter Roeck wrote: >> I tried with 2.6.3 from crosstool, and it succeeded, too. >> > Do such old versions of gcc still exist ? Just kidding :) > >> Turns out cfs_access_process_vm() is called with write=0 only. >> Gcc 2.6.3 optimizes away the write != 0 branch (w

[PATCH v3 7/7] staging: dgnc: tty.c: replaces kzalloc with kcalloc for arrays

2013-09-10 Thread Lidza Louina
This patch replaces kzalloc with kcalloc when using arrays. kcalloc is better suited for arrays because it has overflow protection. Reported-by: Dan Carpenter Signed-off-by: Lidza Louina --- drivers/staging/dgnc/dgnc_tty.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --gi

Re: [PATCH 1/3] staging: usbip: stub_main: correctly handle return value

2013-09-10 Thread Dan Carpenter
On Tue, Sep 10, 2013 at 10:44:07AM +0530, navin patidar wrote: > ret == 0 means success, anything else is failure. > Hopefully, it's only returning negative error codes. Otherwise it needs a different fix. There isn't an official kernel style on if "if (ret < 0)" is better than "if (ret)". Som

Re: [PATCH v3 1/7] staging: dgnc: renames board_t to dgnc_board

2013-09-10 Thread Dan Carpenter
On Mon, Sep 09, 2013 at 03:01:22PM -0400, Lidza Louina wrote: > This patch renames the struct board_t to dgnc_board. board_t > wasn't a good name for it since the _t suffix is for typedefs. > > Signed-off-by: Lidza Louina These were fine before. There was no need to resend the first five patche

Re: [PATCH v3 7/7] staging: dgnc: tty.c: replaces kzalloc with kcalloc for arrays

2013-09-10 Thread Dan Carpenter
This one is not right. On Mon, Sep 09, 2013 at 03:01:28PM -0400, Lidza Louina wrote: > This patch replaces kzalloc with kcalloc when using > arrays. kcalloc is better suited for arrays because > it has overflow protection. > > Reported-by: Dan Carpenter > Signed-off-by: Lidza Louina > --- > dr

Re: [PATCH v3 6/7] staging: dgnc: changes arguments in sizeof

2013-09-10 Thread Dan Carpenter
On Mon, Sep 09, 2013 at 03:01:27PM -0400, Lidza Louina wrote: > The arguments that were passed into sizeof were > generic. This patch changes this by putting > the actual item that we need a size of instead. > > For example: > - kzalloc(sizeof(struct dgnc_board), GFP_KERNEL); > + kzalloc(sizeo

[PATCH] Staging: fwserial: wrap a line that exceeds 80 characters

2013-09-10 Thread Jon Bernard
This is a patch to fwserial.c that wraps a line which previously exceeded the 80 character limit warning found by checkpatch.pl. This driver is now warning and error free, according to checkpatch.pl Signed-off-by: Jon Bernard --- drivers/staging/fwserial/fwserial.c | 3 ++- 1 file changed, 2 in

Re: [PATCH 1/1] staging/speakup/kobjects.c: Code improvement.

2013-09-10 Thread Chris Brannon
"Raphael S.Carvalho" writes: > + /* > + * If voice was just changed, we might need to reset our default > + * pitch and volume. > + */ > + if (param->var_id == VOICE) { > + spk_reset_default_value("pitch", synth->defa

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Dan Carpenter
Btw, the de...@driverdev.osuosl.org list seems to be down again. I still have not recieved the v3 patch. Use the driverdev-devel@linuxdriverproject.org email list instead. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http

[PATCH 1/3] staging: usbip: stub_main: correctly handle return value

2013-09-10 Thread navin patidar
ret == 0 means success, anything else is failure. Signed-off-by: navin patidar --- drivers/staging/usbip/stub_main.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/usbip/stub_main.c b/drivers/staging/usbip/stub_main.c index 33027cc..baf857f 100644 ---

[PATCH 3/3] staging: usbip: vhci_hcd: remove check for dma

2013-09-10 Thread navin patidar
vhci_hcd is a virtual usb host controller, so no need to check for dma. Signed-off-by: navin patidar --- drivers/staging/usbip/vhci_hcd.c |6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c index b3c9217..e810ad5 100644

[PATCH 1/2] staging: zram: fix handle_pending_slot_free() and zram_reset_device() race

2013-09-10 Thread Sergey Senozhatsky
Dan Carpenter noted that handle_pending_slot_free() is racy with zram_reset_device(). Take write init_lock in zram_slot_free(), thus preventing any concurrent zram_slot_free(), zram_bvec_rw() or zram_reset_device(). This also allows to safely check zram->init_done in handle_pending_slot_free(). In

Re: [PATCH 1/1] staging/speakup/kobjects.c: Code improvement.

2013-09-10 Thread Dan Carpenter
Good eye for spotting the memory corruption bug! This is a bug fix, so the fix should go in a separate patch and not merged with a code cleanup patch. Ordinary users can trigger this so it's a security bug and separating it out is extra important. The checking in spk_set_num_var() is not suffici

Re: [PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Dan Carpenter
On Tue, Sep 10, 2013 at 09:36:14AM +0200, Jürgen Beisert wrote: > > > > This patch seems to combine two things -- register access rework AND > > adjustment of the driver for MX23 touchscreen. > > It reworks the register access to avoid the i.MX23/i.MX28 runtime decision > all > over the code aga

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Sergey Senozhatsky
On (09/10/13 17:34), Sergey Senozhatsky wrote: [..] > > > > Now I think we can drop the call to handle_pending_slot_free() in > > zram_bvec_rw() altogether. As long as the write lock is held when > > handle_pending_slot_free() is called, there is no race. It's no different > > from any write reque

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Guenter Roeck
On Mon, Sep 09, 2013 at 09:11:25PM +0200, Geert Uytterhoeven wrote: > On Mon, Sep 9, 2013 at 7:22 PM, Greg Kroah-Hartman > wrote: > > On Mon, Sep 09, 2013 at 10:08:19AM -0700, Guenter Roeck wrote: > >> On Mon, Sep 09, 2013 at 09:39:02AM -0700, Greg Kroah-Hartman wrote: > >> > On Mon, Sep 09, 2013

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Greg Kroah-Hartman
On Sun, Sep 08, 2013 at 07:24:19PM -0700, Guenter Roeck wrote: > On 09/08/2013 06:59 PM, Greg Kroah-Hartman wrote: > > On Sun, Sep 08, 2013 at 06:03:00PM -0700, Guenter Roeck wrote: > >> mips allmodconfig fails with > >> > >> ERROR: "copy_from_user_page" > >> [drivers/staging/lustre/lustre/libcfs/

[PATCH] Staging: rtl8188eu: rtw_wlan_util.c: Fixed checkpatch.pl warnings.

2013-09-10 Thread farisdehaan
From: Faris de Haan Fixed a few of the coding style issues reported by checkpatch.pl Signed-off-by: Faris de Haan --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Greg Kroah-Hartman
On Mon, Sep 09, 2013 at 07:48:51AM +0530, Ramkumar Ramachandra wrote: > Greg Kroah-Hartman wrote: > > On Sun, Sep 08, 2013 at 06:03:00PM -0700, Guenter Roeck wrote: > >> Unfortunately, LUSTRE can only be built as module, so there is no > >> easy fix. > > > > Can't we just export the functions for t

[PATCH v3 1/7] staging: dgnc: renames board_t to dgnc_board

2013-09-10 Thread Lidza Louina
This patch renames the struct board_t to dgnc_board. board_t wasn't a good name for it since the _t suffix is for typedefs. Signed-off-by: Lidza Louina --- drivers/staging/dgnc/dgnc_cls.c| 14 +-- drivers/staging/dgnc/dgnc_driver.c | 20 +++ drivers/staging/dgnc/dgnc_driv

[PATCH 2/2] staging: zram: remove init_done from zram struct (v3)

2013-09-10 Thread Sergey Senozhatsky
`zram->init_done' in fact mimics `zram->meta != NULL' value. Introduce init_done() function that checks zram->meta (iow, checks if initialisation was performed), so `zram->init_done' can be removed. v3: init_done() in handle_pending_slot_free() v2: introduce init_done() Signed-off-by: Sergey Seno

[PATCH] Staging: Remove a few superfluous braces

2013-09-10 Thread Sean Williams
Please don't flame me :) I'm getting my feet wet with kernel contribution. One example I saw in a video by GKH suggested cleaning up coding style as a good first commit. Signed-off-by: Sean Williams --- drivers/staging/comedi/drivers/ni_at_a2150.c | 7 +++ 1 file changed, 3 insertions(+), 4

Re: [PATCH V3] staging: iio: replace strict_strto*() with kstrto*()

2013-09-10 Thread Jonathan Cameron
On 08/20/13 03:31, Jingoo Han wrote: > The usage of strict_strto*() is not preferred, because > strict_strto*() is obsolete. Thus, kstrto*() should be > used. > > Previously, there were only strict_strtol(), strict_strtoul(), > strict_strtoull(), and strict_strtoll(). Thus, when converting > to th

Re: [PATCH] iio: isl29018: Fix uninitialized value

2013-09-10 Thread Jonathan Cameron
On 08/29/13 21:14, Derek Basehore wrote: > The lux_uscale value is not initialized at probe. The value will be > uninitialized unless a value is written to it through the iio channel > interface. > This fixes that. > > Signed-off-by: Derek Basehore > Reviewed-on: https://gerrit.chromium.org/gerr

[PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v3)

2013-09-10 Thread Sergey Senozhatsky
Calling handle_pending_slot_free() for every RW operation may cause unneccessary slot_free_lock locking, because most likely process will see NULL slot_free_rq. handle_pending_slot_free() only when current detects that slot_free_rq is not NULL. v3: do not acquire zram lock in zram_slot_free(). v2:

Re: [PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Marek Vasut
Dear Dan Carpenter, > On Tue, Sep 10, 2013 at 09:36:14AM +0200, Jürgen Beisert wrote: > > > This patch seems to combine two things -- register access rework AND > > > adjustment of the driver for MX23 touchscreen. > > > > It reworks the register access to avoid the i.MX23/i.MX28 runtime > > decis

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Greg Kroah-Hartman
On Mon, Sep 09, 2013 at 10:08:19AM -0700, Guenter Roeck wrote: > On Mon, Sep 09, 2013 at 09:39:02AM -0700, Greg Kroah-Hartman wrote: > > On Mon, Sep 09, 2013 at 06:40:12AM -0700, Christoph Hellwig wrote: > > > On Sun, Sep 08, 2013 at 06:59:45PM -0700, Greg Kroah-Hartman wrote: > > > > Can't we just

[PATCH v3 6/7] staging: dgnc: changes arguments in sizeof

2013-09-10 Thread Lidza Louina
The arguments that were passed into sizeof were generic. This patch changes this by putting the actual item that we need a size of instead. For example: - kzalloc(sizeof(struct dgnc_board), GFP_KERNEL); + kzalloc(sizeof(*brd), GFP_KERNEL); Signed-off-by: Lidza Louina --- drivers/staging/dgn

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Guenter Roeck
On Mon, Sep 09, 2013 at 09:39:02AM -0700, Greg Kroah-Hartman wrote: > On Mon, Sep 09, 2013 at 06:40:12AM -0700, Christoph Hellwig wrote: > > On Sun, Sep 08, 2013 at 06:59:45PM -0700, Greg Kroah-Hartman wrote: > > > Can't we just export the functions for those arches? Surely lutre > > > isn't the f

[PATCH v3 3/7] staging: dgnc: removes casting around kzalloc

2013-09-10 Thread Lidza Louina
This patch removes casting around kzalloc calls. The casts aren't needed because kzalloc returns a void pointer. Signed-off-by: Lidza Louina --- drivers/staging/dgnc/dgnc_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_driver.c b/driver

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Geert Uytterhoeven
On Mon, Sep 9, 2013 at 7:22 PM, Greg Kroah-Hartman wrote: > On Mon, Sep 09, 2013 at 10:08:19AM -0700, Guenter Roeck wrote: >> On Mon, Sep 09, 2013 at 09:39:02AM -0700, Greg Kroah-Hartman wrote: >> > On Mon, Sep 09, 2013 at 06:40:12AM -0700, Christoph Hellwig wrote: >> > > On Sun, Sep 08, 2013 at 0

[PATCH v3 5/7] staging: dgnc: removes LINUX_VERSION_CODE conditionals

2013-09-10 Thread Lidza Louina
This patch removes the conditionals that make sure the driver supports various versions of the kernel. They aren't needed. Signed-off-by: Lidza Louina --- drivers/staging/dgnc/dgnc_driver.c | 12 drivers/staging/dgnc/dgnc_kcompat.h | 24 --- drivers/staging/dgnc/dgnc_tty.c

[PATCH v3 4/7] staging: dgnc: removes kzalloc error messages

2013-09-10 Thread Lidza Louina
This patch removes the error messages associated with errors in kzalloc. The driver doesn't need to add the error message because kzalloc already prints a more useful message. Signed-off-by: Lidza Louina --- drivers/staging/dgnc/dgnc_driver.c | 2 -- drivers/staging/dgnc/dgnc_tty.c| 4

Re: [PATCH 1/2] staging: zram: minimize `slot_free_lock' usage (v2)

2013-09-10 Thread Greg Kroah-Hartman
On Tue, Sep 10, 2013 at 05:58:02PM +0300, Dan Carpenter wrote: > Btw, the de...@driverdev.osuosl.org list seems to be down again. I > still have not recieved the v3 patch. Use the > driverdev-devel@linuxdriverproject.org email list instead. They are the same "list", just different DNS entries.

Re: [PATCH] staging: Disable lustre file system for MIPS, SH, and XTENSA

2013-09-10 Thread Peng Tao
On Tue, Sep 10, 2013 at 4:49 PM, Geert Uytterhoeven wrote: > On Mon, Sep 9, 2013 at 10:06 PM, Guenter Roeck wrote: >>> [*] Why does m68k allmodconfig still succeed on kissb??? >>> It does fail for me, as m68k's copy_from_user_page() calls >>> flush_icache_user_range(), which is not export

Re: [PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Marek Vasut
Dear Jürgen Beisert, > Hi Marek, > > On Tuesday 10 September 2013 10:22:36 Marek Vasut wrote: > > > On Monday 09 September 2013 18:04:19 Marek Vasut wrote: > > > > > Distinguish i.MX23 and i.MX28 at runtime and do the same for both > > > > > SoC at least for the 4 wire touchscreen. > > > > > > >

Re: [PATCH 3/5] Staging/iio/adc/touchscreen/MXS: add i.MX23 support to the LRADC driver

2013-09-10 Thread Marek Vasut
Dear Jürgen Beisert, > Hi Marek, > > On Monday 09 September 2013 18:04:19 Marek Vasut wrote: > > > Distinguish i.MX23 and i.MX28 at runtime and do the same for both SoC > > > at least for the 4 wire touchscreen. > > > > > > Signed-off-by: Juergen Beisert > > > CC: linux-arm-ker...@lists.infrade

[PATCH 2/3] staging: usbip: vhci_hcd: correctly handle return value

2013-09-10 Thread navin patidar
ret == 0 means success, anything else is failure. Signed-off-by: navin patidar --- drivers/staging/usbip/vhci_hcd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c index d7974cb..b3c9217 100644 --- a/d

[PATCH v3 2/7] staging: dgnc: removes parentheses around return statements

2013-09-10 Thread Lidza Louina
This patch removes parentheses around return statements. They aren't needed. Signed-off-by: Lidza Louina --- drivers/staging/dgnc/dgnc_cls.c| 8 +- drivers/staging/dgnc/dgnc_driver.c | 106 +-- drivers/staging/dgnc/dgnc_mgmt.c | 22 ++-- drivers/staging/dgnc/dgnc_neo.c

  1   2   >