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

2013-09-06 Thread Dan Carpenter
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 message. > > Signed-off-by: Lidza Louina > --- > drivers/st

[PATCH 1/1] Drivers: hv: util: Correctly support ws2008R2 and earlier

2013-09-06 Thread K. Y. Srinivasan
The current code does not correctly negotiate the version numbers for the util driver when hosted on earlier hosts. The version numbers presented by this driver were not compatible with the version numbers supported by Windows Server 2008. Fix this problem. I would like to thank Olaf Hering (oher.

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

2013-09-06 Thread Dan Carpenter
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(sizeof(struct dgnc_board), GFP_KERNEL); > + kzalloc(sizeof

[PATCH v2 5/6] staging: dgnc: removes LINUX_VERSION_CODE conditionals

2013-09-06 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 v2 2/6] staging: dgnc: removes parentheses around return statements

2013-09-06 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

[PATCH v2 3/6] staging: dgnc: removes casting around kzalloc

2013-09-06 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

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

2013-09-06 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

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

2013-09-06 Thread Lidza Louina
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(sizeof(struct dgnc_board), GFP_KERNEL); + kzalloc(sizeof(brd), GFP_KERNEL); Signed-off-by: Lidza Louina --- drivers/staging/dgnc/

[PATCH v2 1/6] staging: dgnc: renames board_t to dgnc_board

2013-09-06 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 3/3] staging: wlan-ng: hfa384x_usb.c: replaced printk() debugs with netdev_warn()/netdev_err()

2013-09-06 Thread Avinash Kumar
replaced the printk debug lines with respective netdev_warn()/netdev_err() Signed-off-by: Avinash kumar --- drivers/staging/wlan-ng/hfa384x_usb.c | 90 - 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/dri

[PATCH 2/2] staging: wlan-ng: cfg80211.c: replaced printk() with netdev_warn()

2013-09-06 Thread Avinash Kumar
replaced printk functions used for debug messages by respective netdev_warn netdev_err functions. Signed-off-by: Avinash Kumar --- drivers/staging/wlan-ng/cfg80211.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging

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

2013-09-06 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_slot_free() with zram rw_l

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

2013-09-06 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. v2: introduce init_done() Signed-off-by: Sergey Senozhatsky --- drivers/staging/zram/zram_drv.

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

2013-09-06 Thread Sergey Senozhatsky
On (09/06/13 16:50), Jerome Marchand wrote: > On 09/06/2013 03:52 PM, Sergey Senozhatsky wrote: > > `zram->init_done != 0' equals to `zram->meta != NULL', so init_done > > can be removed. > > The name init_done is self explanatory, meta isn't. You could for > instance write a function with an expl

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

2013-09-06 Thread Sergey Senozhatsky
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 likely > > process will see NULL slot_free_rq. handle_pending_slot_free() > >

Re: [PATCH] staging: r8188eu: Fix uninitialized variable change_inx

2013-09-06 Thread Geert Uytterhoeven
On Fri, Sep 6, 2013 at 4:42 PM, Larry Finger wrote: > On 09/06/2013 07:45 AM, Geert Uytterhoeven wrote: >> drivers/staging/rtl8188eu/core/rtw_wlan_util.c: In function >> ‘WMMOnAssocRsp’: >> drivers/staging/rtl8188eu/core/rtw_wlan_util.c:634: warning: ‘change_inx’ >> may be used uninitialized in th

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

2013-09-06 Thread Jerome Marchand
On 09/06/2013 03:52 PM, Sergey Senozhatsky wrote: > `zram->init_done != 0' equals to `zram->meta != NULL', so init_done > can be removed. The name init_done is self explanatory, meta isn't. You could for instance write a function with an explicit name to test for initialization. Jerome > > Sign

Re: [PATCH] staging: r8188eu: Fix uninitialized variable change_inx

2013-09-06 Thread Larry Finger
On 09/06/2013 07:45 AM, Geert Uytterhoeven wrote: drivers/staging/rtl8188eu/core/rtw_wlan_util.c: In function ‘WMMOnAssocRsp’: drivers/staging/rtl8188eu/core/rtw_wlan_util.c:634: warning: ‘change_inx’ may be used uninitialized in this function And the compiler is right: change_inx should be ini

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

2013-09-06 Thread Jerome Marchand
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 likely > process will see NULL slot_free_rq. handle_pending_slot_free() > only when current detects that slot_free_rq is not NU

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

2013-09-06 Thread Denis Kirjanov
I'm not familiar with the zram code, but looking through the code and init_done flag it's obvious what is going on rather then looking at zram->meta field checks. On 9/6/13, Sergey Senozhatsky wrote: > `zram->init_done != 0' equals to `zram->meta != NULL', so init_done > can be removed. > > Signe

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

2013-09-06 Thread Sergey Senozhatsky
`zram->init_done != 0' equals to `zram->meta != NULL', so init_done can be removed. Signed-off-by: Sergey Senozhatsky --- drivers/staging/zram/zram_drv.c | 18 +++--- drivers/staging/zram/zram_drv.h | 1 - 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/sta

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

2013-09-06 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. Signed-off-by: Sergey Senozhatsky --- drivers/sta

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

2013-09-06 Thread Marek Vasut
Dear Jürgen Beisert, > On Friday 06 September 2013 14:26:11 Dan Carpenter wrote: > > On Fri, Sep 06, 2013 at 12:08:42PM +0200, Juergen Beisert wrote: > > > +static int mxs_lradc_read_ts_channel(struct mxs_lradc *lradc) > > > +{ > > > + u32 reg; > > > + int val; > > > + > > > + reg = readl(lradc->b

[PATCH] staging: r8188eu: Fix uninitialized variable change_inx

2013-09-06 Thread Geert Uytterhoeven
drivers/staging/rtl8188eu/core/rtw_wlan_util.c: In function ‘WMMOnAssocRsp’: drivers/staging/rtl8188eu/core/rtw_wlan_util.c:634: warning: ‘change_inx’ may be used uninitialized in this function And the compiler is right: change_inx should be initialized to false. Signed-off-by: Geert Uytterhoeve

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

2013-09-06 Thread Jürgen Beisert
On Friday 06 September 2013 14:26:11 Dan Carpenter wrote: > On Fri, Sep 06, 2013 at 12:08:42PM +0200, Juergen Beisert wrote: > > +static int mxs_lradc_read_ts_channel(struct mxs_lradc *lradc) > > +{ > > + u32 reg; > > + int val; > > + > > + reg = readl(lradc->base + LRADC_CTRL1); > > + > > +

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

2013-09-06 Thread Dan Carpenter
On Fri, Sep 06, 2013 at 12:08:42PM +0200, Juergen Beisert wrote: > +static int mxs_lradc_read_ts_channel(struct mxs_lradc *lradc) > +{ > + u32 reg; > + int val; > + > + reg = readl(lradc->base + LRADC_CTRL1); > + > + /* only channels 3 to 5 are of interest here */ > + if (reg &

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

2013-09-06 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

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

2013-09-06 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-

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

2013-09-06 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 1/5] Staging/iio/adc/touchscreen/MXS: distinguish i.MX23's and i.MX28's LRADC

2013-09-06 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

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

2013-09-06 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/

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

2013-09-06 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

Re: [patch] iio: mxs-lradc: use helper functions to simplify the code

2013-09-06 Thread Russell King - ARM Linux
On Thu, Sep 05, 2013 at 05:15:02PM -0300, Fabio Estevam wrote: > Looks good, just one minor suggestion: > > On Thu, Sep 5, 2013 at 3:16 PM, Dan Carpenter > wrote: > > +static void lradc_reg_set(struct mxs_lradc *lradc, u32 val, size_t chan) > > +{ > > + writel(val, lradc->base + chan + STM

Re: [patch] iio: mxs-lradc: use helper functions to simplify the code

2013-09-06 Thread Dan Carpenter
On Fri, Sep 06, 2013 at 09:01:01AM +0200, Jürgen Beisert wrote: > > Oh, I did the same yesterday in preparation of the v2 of my patch series. > I will send this new version out today. > Ah fine. Then let's drop my version. regards, dan carpenter ___

Re: [patch] iio: mxs-lradc: use helper functions to simplify the code

2013-09-06 Thread Jürgen Beisert
Hi Dan, On Thursday 05 September 2013 20:16:39 Dan Carpenter wrote: > I have introduced lradc_reg_set() and lradc_reg_clear(). It simplifies > the callers and makes the lines shorter. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/staging/iio/adc/mxs-lradc.c > b/drivers/staging/iio/ad