Re: [PATCH V3 1/5] i2c: Add irq_gpio field to struct i2c_client, i2c_board_info.

2011-09-01 Thread Jean Delvare
Stephen, Can you please fix your e-mail client / system / whatever so that your patch series are no longer sent duplicated? On Thu, 1 Sep 2011 16:04:27 -0600, Stephen Warren wrote: > Some devices use a single pin as both an IRQ and a GPIO. In that case, > irq_gpio is the GPIO ID for that pin. No

[PATCH v4 17/19] Staging: cx25821: Fix long lines in cx25821-video-upstream-ch2.h

2011-09-01 Thread Leonid V. Fedorenchik
Fix long lines in cx25821-video-upstream-ch2.h Signed-off-by: Leonid V. Fedorenchik --- .../staging/cx25821/cx25821-video-upstream-ch2.h | 83 ++-- 1 files changed, 60 insertions(+), 23 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-video-upstream-ch2.h b/drivers

[PATCH v4 19/19] Staging: cx25821: Fix long lines in cx25821-video-upstream.h

2011-09-01 Thread Leonid V. Fedorenchik
Fix long lines in cx25821-video-upstream.h Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-video-upstream.h | 78 +++--- 1 files changed, 54 insertions(+), 24 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-video-upstream.h b/drivers/staging

[PATCH v4 14/19] Staging: cx25821: Fix labels' placement in cx25821-video-upstream-ch2.c

2011-09-01 Thread Leonid V. Fedorenchik
Delete whitespace characters before labels. Signed-off-by: Leonid V. Fedorenchik --- .../staging/cx25821/cx25821-video-upstream-ch2.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-video-upstream-ch2.c b/drivers/staging/cx25821/cx

[PATCH v4 13/19] Staging: cx25821: Replace :? by if-else in cx25821-video-upstream-ch2.c

2011-09-01 Thread Leonid V. Fedorenchik
Replace :? operator by if-else equivalent where it improves readability. Signed-off-by: Leonid V. Fedorenchik --- .../staging/cx25821/cx25821-video-upstream-ch2.c | 23 ++- 1 files changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-video-

[PATCH v4 12/19] Staging: cx25821: Fix long lines in cx25821-audio-upstream.h

2011-09-01 Thread Leonid V. Fedorenchik
Fix long lines in cx25821-audio-upstream.h Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-audio-upstream.h |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-audio-upstream.h b/drivers/staging/cx25821/cx2582

[PATCH v4 18/19] Staging: cx25821: Fix long lines in cx25821-video-upstream.c

2011-09-01 Thread Leonid V. Fedorenchik
Fix long lines in cx25821-video-upstream.c Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-video-upstream.c | 16 ++-- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-video-upstream.c b/drivers/staging/cx2582

[PATCH v4 16/19] Staging: cx25821: Fix long lines in cx25821-video-upstream-ch2.c

2011-09-01 Thread Leonid V. Fedorenchik
Fix long lines in cx25821-video-upstream-ch2.c Signed-off-by: Leonid V. Fedorenchik --- .../staging/cx25821/cx25821-video-upstream-ch2.c | 26 +++- 1 files changed, 9 insertions(+), 17 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-video-upstream-ch2.c b/drivers/

[PATCH v4 15/19] Staging: cx25821: Fix wrong line endings in cx25821-video-upstream-ch2.c

2011-09-01 Thread Leonid V. Fedorenchik
Change obscure line endings to less obscure ones. Rationale: improve readability. Signed-off-by: Leonid V. Fedorenchik --- .../staging/cx25821/cx25821-video-upstream-ch2.c | 24 +++ 1 files changed, 9 insertions(+), 15 deletions(-) diff --git a/drivers/staging/cx25821/cx2582

[PATCH v4 08/19] Staging: cx25821: Fix wrong statement indent in cx25821-i2c.c

2011-09-01 Thread Leonid V. Fedorenchik
Fix wrong brace placement and statement indent in cx25821-i2c.c Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-i2c.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-i2c.c b/drivers/

[PATCH v4 11/19] Staging: cx25821: Fix long lines in cx25821-audio-upstream.c

2011-09-01 Thread Leonid V. Fedorenchik
Fix long lines in cx25821-audio-upstream.c Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-audio-upstream.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-audio-upstream.c b/drivers/staging/cx25821/cx258

[PATCH v4 07/19] Staging: cx25821: Fix wrong statement indent in cx25821-core.c

2011-09-01 Thread Leonid V. Fedorenchik
Fix wrong brace placement and statement indent in cx25821-core.c Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-core.c | 500 1 files changed, 250 insertions(+), 250 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-core.c b/d

[PATCH v4 10/19] Staging: cx25821: Fix obscure line endings in cx25821-audio-upstream.c

2011-09-01 Thread Leonid V. Fedorenchik
Change obscure line endings to less obscure ones. Rationale: more readable. Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-audio-upstream.c | 25 -- 1 files changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-aud

[PATCH v4 05/19] Staging: cx25821: Use DEFINE_PCI_DEVICE_TABLE for cx25821_pci_tbl

2011-09-01 Thread Leonid V. Fedorenchik
Use DEFINE_PCI_DEVICE_TABLE for cx25821_pci_tbl Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-core.c b/drivers/staging/cx25821/cx25821-core.c index 8e8a56d

[PATCH v4 01/19] Staging: cx25821: Get rid of typedef in cx25821.h

2011-09-01 Thread Leonid V. Fedorenchik
Get rid of typedef in cx25821.h Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821.h |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/cx25821/cx25821.h b/drivers/staging/cx25821/cx25821.h index 6230243..a282592 100644 --- a/dr

[PATCH v4 06/19] Staging: cx25821: Fix wrong statement indent in cx25821-cards.c

2011-09-01 Thread Leonid V. Fedorenchik
Fix wrong brace placement and statement indent in cx25821-cards.c Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-cards.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-cards.c b/driver

[PATCH v4 09/19] Staging: cx25821: Fix too long lines in cx25821-audio.h

2011-09-01 Thread Leonid V. Fedorenchik
Fix too long lines in cx25821-audio.h Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-audio.h |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/cx25821/cx25821-audio.h b/drivers/staging/cx25821/cx25821-audio.h index 2771725..8

[PATCH v4 02/19] Staging: cx25821: Rename member name in struct cx25821_dev

2011-09-01 Thread Leonid V. Fedorenchik
Rename _audio_upstream_channel_select to _audio_upstream_channel in in struct cx25821_dev in cx25821.h and all usages of that struct member as well, because _audio_upstream_channel_select is seems to be too long for a variable name. Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx2582

[PATCH v4 04/19] Staging: cx25821: Move EXPORT_SYMBOL() to the right place

2011-09-01 Thread Leonid V. Fedorenchik
Move EXPORT_SYMBOL(cx25821_set_gpiopin_direction) to the right place. Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-core.c |1 - drivers/staging/cx25821/cx25821-gpio.c |1 + 2 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/cx25821/

[PATCH v4 03/19] Staging: cx25821: Delete file cx25821-gpio.h

2011-09-01 Thread Leonid V. Fedorenchik
Delete file cx25821-gpio.h since it is not used. Signed-off-by: Leonid V. Fedorenchik --- drivers/staging/cx25821/cx25821-gpio.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) delete mode 100644 drivers/staging/cx25821/cx25821-gpio.h diff --git a/drivers/staging/cx25821/cx25821-gp

[PATCH v4 00/19] Staging: cx25821: Fix style issues

2011-09-01 Thread Leonid V. Fedorenchik
This patch series fixes some style issues in drivers/staging/cx25821 I split my previous patches per logical change and combined them into one patch series. Changes in v4 based on reviews of v3. Leonid V. Fedorenchik (19): Staging: cx25821: Get rid of typedef in cx25821.h Staging: cx25821: R

Contact for your urgent loan

2011-09-01 Thread Philip Crossel
Do you need a loan Apply now with rate 3% replay to this email edithloa...@yahoo.com Personal Requirements Details: * Loan Amount Required: * Loan Purpose: * Country: * Name: * Duration: * Age: * Phone Number:* *Please repaly to this E=mail:edithloa...@yahoo.com crs.lend@blumail.org __

[PATCH] Staging: dt3155v4l: Convert printk's to pr_

2011-09-01 Thread H Hartley Sweeten
Convert all the printk(KERN_) messages in the driver to pr_() and use pr_fmt to provide the module name. Signed-off-by: H Hartley Sweeten Cc: Greg Kroah-Hartman Cc: Mauro Carvalho Chehab Cc: Hans Verkuil --- diff --git a/drivers/staging/dt3155v4l/dt3155v4l.c b/drivers/staging/dt3155v4l/dt31

Re: [PATCH 0/3] staging: zcache: xcfmalloc support

2011-09-01 Thread Dave Hansen
On Thu, 2011-09-01 at 17:01 -0500, Seth Jennings wrote: > I was seeing n as the number of allocations. Since > XCF_MAX_BLOCKS_PER_ALLOC and XCF_NUM_FREELISTS are constant (i.e. > not increasing with the number of allocations) wouldn't it be > O(1)? It's the difference between your implementation

Re: [PATCH 0/3] staging: zcache: xcfmalloc support

2011-09-01 Thread Seth Jennings
On 08/31/2011 02:46 PM, Dan Magenheimer wrote: >> This patchset introduces a new memory allocator for persistent >> pages for zcache. The current allocator is xvmalloc. xvmalloc >> has two notable limitations: >> * High (up to 50%) external fragmentation on allocation sets > PAGE_SIZE/2 >> * No c

Re: [PATCH 3/3] staging: vme: make match() driver specific to improve non-VME64x support

2011-09-01 Thread Emilio G. Cota
Patches 1 and 2 are hunky dory. This one still needs a bit of work, but not much really. See below. All in all this is good stuff, keep it up! Emilio On Thu, Sep 01, 2011 at 11:15:26 +0200, Manohar Vanga wrote: > For jumper based boards (non VME64x), there is no mechanism > for d

Re: [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.

2011-09-01 Thread Greg KH
On Thu, Sep 01, 2011 at 03:11:09PM -0700, Mike Sterling wrote: > If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently > report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. > Thanks to Robert Scheck for reporting the issue. > > Reported-by: Robert

[PATCH V3 1/5] i2c: Add irq_gpio field to struct i2c_client, i2c_board_info.

2011-09-01 Thread Stephen Warren
Some devices use a single pin as both an IRQ and a GPIO. In that case, irq_gpio is the GPIO ID for that pin. Not all drivers use this feature. Where they do, and the use of this feature is optional, and the system wishes to disable this feature, this field must be explicitly set to a defined invali

[PATCH V3 5/5] staging:iio:magnetometer:ak8975: Fix probe() error-handling

2011-09-01 Thread Stephen Warren
Fix ak8975_probe() to jump to the appropriate exit labels when an error occurs. With the previous code, some cleanup actions were being skipped for some error conditions. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c |2 +- 1 files changed, 1 insertions(+), 1 de

[PATCH V3 3/5] staging:iio:magnetometer:ak8975 Don't use irq_to_gpio()

2011-09-01 Thread Stephen Warren
Tegra doesn't have irq_to_gpio() any more, and ak8975 is included in tegra_defconfig. This causes a build failure. Instead, obtain the GPIO ID corresponding to the chip's IRQ from the new i2c_client field irq_gpio. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c |

[PATCH V3 4/5] staging:iio:magnetometer:ak8975: Don't assume 0 is an invalid GPIO

2011-09-01 Thread Stephen Warren
gpio_is_valid() is the defined mechanism to determine whether a GPIO is valid. Use this instead of assuming that 0 is an invalid GPIO. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dr

[PATCH V3 5/5] staging:iio:magnetometer:ak8975: Fix probe() error-handling

2011-09-01 Thread Stephen Warren
Fix ak8975_probe() to jump to the appropriate exit labels when an error occurs. With the previous code, some cleanup actions were being skipped for some error conditions. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c |2 +- 1 files changed, 1 insertions(+), 1 de

[PATCH V3 2/5] spi: Add irq_gpio field to struct spi_device, spi_board_info.

2011-09-01 Thread Stephen Warren
Some devices use a single pin as both an IRQ and a GPIO. In that case, irq_gpio is the GPIO ID for that pin. Not all drivers use this feature. Where they do, and the use of this feature is optional, and the system wishes to disable this feature, this field must be explicitly set to a defined invali

[PATCH V3 1/5] i2c: Add irq_gpio field to struct i2c_client, i2c_board_info.

2011-09-01 Thread Stephen Warren
Some devices use a single pin as both an IRQ and a GPIO. In that case, irq_gpio is the GPIO ID for that pin. Not all drivers use this feature. Where they do, and the use of this feature is optional, and the system wishes to disable this feature, this field must be explicitly set to a defined invali

[PATCH V3 4/5] staging:iio:magnetometer:ak8975: Don't assume 0 is an invalid GPIO

2011-09-01 Thread Stephen Warren
gpio_is_valid() is the defined mechanism to determine whether a GPIO is valid. Use this instead of assuming that 0 is an invalid GPIO. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dr

[PATCH V3 2/5] spi: Add irq_gpio field to struct spi_device, spi_board_info.

2011-09-01 Thread Stephen Warren
Some devices use a single pin as both an IRQ and a GPIO. In that case, irq_gpio is the GPIO ID for that pin. Not all drivers use this feature. Where they do, and the use of this feature is optional, and the system wishes to disable this feature, this field must be explicitly set to a defined invali

[PATCH V3 3/5] staging:iio:magnetometer:ak8975 Don't use irq_to_gpio()

2011-09-01 Thread Stephen Warren
Tegra doesn't have irq_to_gpio() any more, and ak8975 is included in tegra_defconfig. This causes a build failure. Instead, obtain the GPIO ID corresponding to the chip's IRQ from the new i2c_client field irq_gpio. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c |

Re: [PATCH 0/3] staging: zcache: xcfmalloc support

2011-09-01 Thread Seth Jennings
On 09/01/2011 11:54 AM, Dave Hansen wrote: > On Thu, 2011-09-01 at 11:33 -0500, Seth Jennings wrote: >> xcfmalloc is also 0(1) in that the number of freelists >> at that have to be checked is constant and not increasing >> with the number of allocations. The constant hidden >> in the O(1) for find

Re: [PATCH] staging: iio: light: Fix compiler warning in tsl2563.c

2011-09-01 Thread Dan Carpenter
On Fri, Sep 02, 2011 at 12:24:13AM +0300, Maxin B. John wrote: > --- a/drivers/staging/iio/light/tsl2563.c > +++ b/drivers/staging/iio/light/tsl2563.c > @@ -225,9 +225,9 @@ static int tsl2563_read_id(struct tsl2563_chip *chip, u8 > *id) > > ret = i2c_smbus_read_byte_data(client, TSL2563_CM

[PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.

2011-09-01 Thread Mike Sterling
If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. Thanks to Robert Scheck for reporting the issue. Reported-by: Robert Scheck Signed-off-by: Mike Sterling Signed-off-by: K.Y. Srinivasan Sig

[PATCH] staging: iio: light: Fix compiler warning in tsl2563.c

2011-09-01 Thread Maxin B. John
CC [M] drivers/staging/iio/light/tsl2563.o drivers/staging/iio/light/tsl2563.c: In function 'tsl2563_probe': drivers/staging/iio/light/tsl2563.c:736: warning: 'id' may be used uninitialized in this function Also fixes the tsl2563_read_id(). Signed-off-by: Maxin B. John --- diff --git a/drive

RE: Hyper-V TODO file

2011-09-01 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Thursday, September 01, 2011 4:31 PM > To: KY Srinivasan > Cc: gre...@suse.de; linux-ker...@vger.kernel.org; > devel@linuxdriverproject.org; virtualizat...@lists.osdl.org > Subject: Re: Hyper-V TODO file > > On Thu, Sep

Re: [PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.

2011-09-01 Thread Greg KH
On Thu, Sep 01, 2011 at 02:11:52PM -0700, Mike Sterling wrote: > If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently > report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. > Thanks to Robert Scheck for reporting the issue. > > Signed-off-by: Mike

RE: Hyper-V TODO file

2011-09-01 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Thursday, September 01, 2011 4:28 PM > To: KY Srinivasan > Cc: gre...@suse.de; linux-ker...@vger.kernel.org; > devel@linuxdriverproject.org; virtualizat...@lists.osdl.org > Subject: Re: Hyper-V TODO file > > On Wed, Aug

[PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.

2011-09-01 Thread Mike Sterling
If a LUN larger than 2 TB is attached to a Linux VM on Hyper-V, we currently report a maximum size of 2 TB. This patch resolves the issue in hv_storvsc. Thanks to Robert Scheck for reporting the issue. Signed-off-by: Mike Sterling Signed-off-by: K.Y. Srinivasan Signed-off-by: Haiyang Zhang -

Re: Hyper-V TODO file

2011-09-01 Thread Greg KH
On Wed, Aug 31, 2011 at 07:11:39PM -0400, Peter Foley wrote: > On Wed, 31 Aug 2011, K. Y. Srinivasan wrote: > > Greg, as I have been pestering you for some time now, we are very > > interested in > > exiting staging and we are willing to dedicate the necessary development > > resources to address

Re: Hyper-V TODO file

2011-09-01 Thread Greg KH
On Thu, Sep 01, 2011 at 01:27:33PM -0700, Greg KH wrote: > On Wed, Aug 31, 2011 at 03:16:51PM -0700, K. Y. Srinivasan wrote: > > 2) With your help, we have fixed all of the issues related to these drivers > > conforming to the Linux Device Driver model. One of the TODO work items is > > "audit the

Re: Hyper-V TODO file

2011-09-01 Thread Greg KH
On Wed, Aug 31, 2011 at 03:16:51PM -0700, K. Y. Srinivasan wrote: > > Greg, > > The TODO file for Hyper-V drivers has not been updated in a while and does > not reflect the current state of these drivers: > > 1) There are no more checkpatch warnings/errors in this code. One of the TODO > work it

[PATCH 05/10] staging: hv: re-order the code in netvsc_probe()

2011-09-01 Thread Haiyang Zhang
Re-order the code in netvsc_probe() to prevent a guest crash caused by packets possibly received from NetVSP before call to register_netdev(). Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/staging/hv/netvsc_drv.c | 32 +--- 1 files change

[PATCH 08/10] staging: hv: fix the return status of netvsc_start_xmit()

2011-09-01 Thread Haiyang Zhang
Fix the return status, so the upper layer will retry if transmission fails. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/staging/hv/netvsc_drv.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/st

[PATCH 09/10] staging: hv: fix the page buffer when rndis data go across page boundary

2011-09-01 Thread Haiyang Zhang
In rndis_filter_receive_data(), we need to drop the 0th page and move the rest of pages forward if the rndis data go across page boundary, otherwise the page offset will overflow. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/staging/hv/rndis_filter.c | 10 +

[PATCH 02/10] staging: hv: add newline to log messages in netvsc

2011-09-01 Thread Haiyang Zhang
Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/staging/hv/netvsc.c | 58 +- 1 files changed, 29 insertions(+), 29 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 9a9228c..ef764e6 100644

[PATCH 10/10] staging: hv: fix some typos in netvsc.c

2011-09-01 Thread Haiyang Zhang
Reported-by: Joe Perches Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/staging/hv/netvsc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index efbc8a0..115629f 100644 --- a/drivers

[PATCH 04/10] staging: hv: fix a kernel warning in netvsc_linkstatus_callback()

2011-09-01 Thread Haiyang Zhang
netif_notify_peers() caused a kernel warning in netvsc_linkstatus_callback(), because netvsc_linkstatus_callback() is within IRQ context. So we move the first call to netif_notify_peers() into queued work as well, but with zero delay. In addition to "staging-next", this should also be back-ported

[PATCH 06/10] staging: hv: fix counting of #outstanding-sends in failed sends

2011-09-01 Thread Haiyang Zhang
If the packet failed to be sent, we shouldn't count it as the number of outstanding sends. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/staging/hv/netvsc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/driver

[PATCH 07/10] staging: hv: fix counting of available buffer slots when send fails

2011-09-01 Thread Haiyang Zhang
Because the number of available buffer slots doesn't decrease for failed sends, we should not call netvsc_xmit_completion(), which increase the count of available slots. In this failed case, just free the memory is enough. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers

[PATCH 03/10] staging: hv: convert dev_ to netdev_ in netvsc

2011-09-01 Thread Haiyang Zhang
Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/staging/hv/netvsc.c | 68 + drivers/staging/hv/rndis_filter.c | 17 + 2 files changed, 49 insertions(+), 36 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/driv

[PATCH 01/10] staging: hv: remove unnecessary includes in netvsc

2011-09-01 Thread Haiyang Zhang
hyperv.h is included by hyperv_net.h already, so no need to include it again in these C files. Signed-off-by: Haiyang Zhang Signed-off-by: K. Y. Srinivasan --- drivers/staging/hv/netvsc.c |1 - drivers/staging/hv/netvsc_drv.c |1 - drivers/staging/hv/rndis_filter.c |1 - 3 f

[PATCH 00/10] netvsc bug fixes and cleanups

2011-09-01 Thread Haiyang Zhang
Fixed a set of bugs in netvsc module, and cleaned up some coding style issues. Haiyang Zhang (10): staging: hv: remove unnecessary includes in netvsc staging: hv: add newline to log messages in netvsc staging: hv: convert dev_ to netdev_ in netvsc staging: hv: fix a kernel warning in netvs

Re: [PATCH V2 1/4] i2c: Add irq_gpio field to struct i2c_client.

2011-09-01 Thread Arnd Bergmann
On Thursday 01 September 2011 10:52:37 Stephen Warren wrote: > Some devices use a single pin as both an IRQ and a GPIO. In that case, > irq_gpio is the GPIO ID for that pin. Not all drivers use this feature. > Where they do, and the use of this feature is optional, and the system > wishes to disabl

Re: [PATCH V2 1/4] i2c: Add irq_gpio field to struct i2c_client.

2011-09-01 Thread Mark Brown
On Thu, Sep 01, 2011 at 10:52:41AM -0600, Stephen Warren wrote: > Some devices use a single pin as both an IRQ and a GPIO. In that case, > irq_gpio is the GPIO ID for that pin. Not all drivers use this feature. > Where they do, and the use of this feature is optional, and the system > wishes to dis

[PATCH] staging: rtl8192e: Fix format warning

2011-09-01 Thread Larry Finger
Signed-off-by: Larry Finger --- drivers/staging/rtl8192e/rtl819x_BAProc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index 95b7859..8a5c5ff 100644 --- a/drivers/staging/rtl8192e/r

[PATCH 7/9 V2] staging: rtl8192e: Fix smatch error in r8192E_phy.c

2011-09-01 Thread Larry Finger
Smatch reports the following: CHECK drivers/staging/rtl8192e/r8192E_phy.c drivers/staging/rtl8192e/r8192E_phy.c +940 rtl8192_phy_SwChnlStepByStep(92) error: potential null derefence 'CurrentCmd'. Signed-off-by: Larry Finger --- V2 - no changes --- drivers/staging/rtl8192e/r8192E_phy.c |

[PATCH 6/9 V2] staging: rtl8192e: Fix smatch warning in rtl819x_BAProc.c

2011-09-01 Thread Larry Finger
Smatch outputs the following warning: CHECK drivers/staging/rtl8192e/rtl819x_BAProc.c drivers/staging/rtl8192e/rtl819x_BAProc.c +88 rtllib_ADDBA(12) warn: variable dereferenced before check 'ieee' As ieee cannot be NULL at this point, remove all such checks. Signed-off-by: Larry Finger ---

[PATCH 8/9 V2] staging: rtl8192e: Fix smatch warnings regarding large arrays on stack

2011-09-01 Thread Larry Finger
Smatch reports the follwing warnings: CHECK drivers/staging/rtl8192e/rtllib_rx.c drivers/staging/rtl8192e/rtllib_rx.c +552 RxReorderIndicatePacket(6) warn: 'prxbIndicateArray' puts 1024 bytes on stack CHECK drivers/staging/rtl8192e/rtl819x_TSProc.c drivers/staging/rtl8192e/rtl819x_TSProc

[PATCH 9/9 V2] staging: rtl8192e: Fix various problems noted by smatch

2011-09-01 Thread Larry Finger
Smatch reports the following problems: CHECK drivers/staging/rtl8192e/rtllib_softmac.c drivers/staging/rtl8192e/rtllib_softmac.c +3143 rtllib_softmac_free(4) info: redundant null check on ieee->pDot11dInfo calling kfree() CHECK drivers/staging/rtl8192e/rtllib_module.c drivers/staging/rtl

[PATCH 4/9 V2] staging: rtl8192e: Fix smatch warning in rtl_wx.c

2011-09-01 Thread Larry Finger
Smatch reports the following warning: CHECK drivers/staging/rtl8192e/rtl_wx.c drivers/staging/rtl8192e/rtl_wx.c +262 r8192se_wx_set_radio(16) warn: inconsistent returns sem:&priv->wx_sem: locked (258) unlocked (262) Signed-off-by: Larry Finger --- V2 - no changes --- drivers/staging/rtl8

[PATCH 3/9 V2] staging: rtl8192e: Fix smatch info output for r8192E_dev.c

2011-09-01 Thread Larry Finger
Smatch reports the following informational output: CHECK drivers/staging/rtl8192e/r8192E_dev.c drivers/staging/rtl8192e/r8192E_dev.c +2404 ActUpdateChannelAccessSetting(13) info: ignoring unreachable code. drivers/staging/rtl8192e/r8192E_dev.c +2404 ActUpdateChannelAccessSetting(13) info: ig

[PATCH 5/9 V2] staging: rtl8192e: Silence smatch info in r8192E_cmdpkt.c

2011-09-01 Thread Larry Finger
Smatch outputs the following informational message: CHECK drivers/staging/rtl8192e/r8192E_cmdpkt.c drivers/staging/rtl8192e/r8192E_cmdpkt.c +419 cmpk_message_handle_rx(77) info: ignoring unreachable code. Signed-off-by: Larry Finger --- V2 - no changes --- drivers/staging/rtl8192e/r8192E_

[PATCH 2/9 V2] staging: rtl8192e: Fix smatch error and warning in rtl_core.c

2011-09-01 Thread Larry Finger
Smatch shows the following errors: CHECK drivers/staging/rtl8192e/rtl_core.c drivers/staging/rtl8192e/rtl_core.c +600 rtl8192_qos_activate(7) warn: variable dereferenced before check 'priv' drivers/staging/rtl8192e/rtl_core.c +1345 rtl8192_init(40) warn: 'dev->irq' was not released on error

[PATCH 1/9 V2] staging: rtl8192e: Remove dead code involving MOVE_INTO_HANDLER

2011-09-01 Thread Larry Finger
File rtl_core.c contains the statement "#define MOVE_INTO_HANDLER". As a result, everything inside an "ifndef MOVE_INTO_HANDLER" is dead code and can be removed. Signed-off-by: Larry Finger --- V2 - no changes --- drivers/staging/rtl8192e/rtl_core.c | 22 -- 1 files change

[PATCH 0/9 V2] Fix various smatch warnings, error, and informational messages

2011-09-01 Thread Larry Finger
As stated in the subject, a number of smatch messages are addressed. V2 addresses the questions raised by Dan Carpenter. Signed-off-by: Larry Finger --- Greg, Once master.kernel.org is back up, I will push these to git://git.kernel.org/pub/scm/linux/kernel/git/lwfinger/r8192E.git Larry ---

Re: [PATCH 0/3] staging: zcache: xcfmalloc support

2011-09-01 Thread Dave Hansen
On Thu, 2011-09-01 at 11:33 -0500, Seth Jennings wrote: > xcfmalloc is also 0(1) in that the number of freelists > at that have to be checked is constant and not increasing > with the number of allocations. The constant hidden > in the O(1) for finding a suitable block is NUM_FREELISTS. The algor

[PATCH V2 3/4] staging:iio:magnetometer:ak8975: Don't assume 0 is an invalid GPIO

2011-09-01 Thread Stephen Warren
gpio_is_valid() is the defined mechanism to determine whether a GPIO is valid. Use this instead of assuming that 0 is an invalid GPIO. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dr

[PATCH V2 4/4] staging:iio:magnetometer:ak8975: Fix probe() error-handling

2011-09-01 Thread Stephen Warren
Fix ak8975_probe() to jump to the appropriate exit labels when an error occurs. With the previous code, some cleanup actions were being skipped for some error conditions. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c |2 +- 1 files changed, 1 insertions(+), 1 de

[PATCH V2 2/4] staging:iio:magnetometer:ak8975 Don't use irq_to_gpio()

2011-09-01 Thread Stephen Warren
Tegra doesn't have irq_to_gpio() any more, and ak8975 is included in tegra_defconfig. This causes a build failure. Instead, obtain the GPIO ID corresponding to the chip's IRQ from the new i2c_client field irq_gpio. Signed-off-by: Stephen Warren --- v2: Obtain eoc_gpio from i2c_client, instead of

[PATCH V2 4/4] staging:iio:magnetometer:ak8975: Fix probe() error-handling

2011-09-01 Thread Stephen Warren
Fix ak8975_probe() to jump to the appropriate exit labels when an error occurs. With the previous code, some cleanup actions were being skipped for some error conditions. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c |2 +- 1 files changed, 1 insertions(+), 1 de

[PATCH V2 2/4] staging:iio:magnetometer:ak8975 Don't use irq_to_gpio()

2011-09-01 Thread Stephen Warren
Tegra doesn't have irq_to_gpio() any more, and ak8975 is included in tegra_defconfig. This causes a build failure. Instead, obtain the GPIO ID corresponding to the chip's IRQ from the new i2c_client field irq_gpio. Signed-off-by: Stephen Warren --- v2: Obtain eoc_gpio from i2c_client, instead of

[PATCH V2 3/4] staging:iio:magnetometer:ak8975: Don't assume 0 is an invalid GPIO

2011-09-01 Thread Stephen Warren
gpio_is_valid() is the defined mechanism to determine whether a GPIO is valid. Use this instead of assuming that 0 is an invalid GPIO. Signed-off-by: Stephen Warren --- drivers/staging/iio/magnetometer/ak8975.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/dr

[PATCH V2 1/4] i2c: Add irq_gpio field to struct i2c_client.

2011-09-01 Thread Stephen Warren
Some devices use a single pin as both an IRQ and a GPIO. In that case, irq_gpio is the GPIO ID for that pin. Not all drivers use this feature. Where they do, and the use of this feature is optional, and the system wishes to disable this feature, this field must be explicitly set to a defined invali

[PATCH V2 1/4] i2c: Add irq_gpio field to struct i2c_client.

2011-09-01 Thread Stephen Warren
Some devices use a single pin as both an IRQ and a GPIO. In that case, irq_gpio is the GPIO ID for that pin. Not all drivers use this feature. Where they do, and the use of this feature is optional, and the system wishes to disable this feature, this field must be explicitly set to a defined invali

Re: [PATCH 0/3] staging: zcache: xcfmalloc support

2011-09-01 Thread Seth Jennings
On 09/01/2011 10:17 AM, Dan Magenheimer wrote: >>> Do you have any data comparing xcfmalloc vs xvmalloc for >>> compression ratio and/or performance (cycles to compress >>> or decompress different pages) on a wide(r) range of data? >>> Assuming xcfmalloc isn't "always better", maybe it would >>> be

Re: [PATCH 1/3] staging:iio:magnetometer:ak8975 Don't use irq_to_gpio()

2011-09-01 Thread Arnd Bergmann
On Thursday 01 September 2011, Stephen Warren wrote: > One question: When we add this field, how do drivers tell whether a value > of 0 is an uninitialized field, or a legitimate GPIO value of 0? Should we > add a flag to indicate validity, or just work hard to not enable driver- > side code to use

[PATCH RFC] ata_piix: ignore disks in a hyper-v guest

2011-09-01 Thread Olaf Hering
On Wed, Aug 31, Olaf Hering wrote: > After some more testing it looks like the hv_blkvsc driver claimed the > ide major #3, so the ide_core could not bind to the emulated IDE > hardware. The modprobe.conf rules prevented that ata_piix gets loaded. > If I force a module load order of 'ata_piix ;hv_

Re: [PATCH 1/3] staging: zcache: xcfmalloc memory allocator for zcache

2011-09-01 Thread Seth Jennings
On 08/31/2011 09:40 AM, Seth Jennings wrote: > +static struct xcf_blkdesc *xcf_find_remove_block(struct xcf_pool *pool, > + int size, int blocknum) > +{ > + int flindex, i; > + struct xcf_blkdesc *desc = NULL; > + > + flindex = xcf_size_to_flindex(size + sizeof(struct xcf_blkhdr));

RE: [PATCH 1/3] staging:iio:magnetometer:ak8975 Don't use irq_to_gpio()

2011-09-01 Thread Stephen Warren
Arnd Bergmann wrote at Thursday, September 01, 2011 5:07 AM: > On Thursday 01 September 2011, Jonathan Cameron wrote: > > On 08/31/11 20:45, Andrew Chew wrote: > > >> Subject: [PATCH 1/3] staging:iio:magnetometer:ak8975 Don't > > >> use irq_to_gpio() > > >> > > >> Tegra doesn't have irq_to_gpio() a

RE: [PATCH 0/3] staging: zcache: xcfmalloc support

2011-09-01 Thread Dan Magenheimer
> > Do you have any data comparing xcfmalloc vs xvmalloc for > > compression ratio and/or performance (cycles to compress > > or decompress different pages) on a wide(r) range of data? > > Assuming xcfmalloc isn't "always better", maybe it would > > be best to allow the algorithm to be selectable?

[PATCH 05/12 v2] staging: mei: adding watchdog ping

2011-09-01 Thread Oren Weil
adding watchdog ping to send ping/heartbeat to the the AMT watchdog client. in addition removing the heartbeat sending from the driver timers function. Version 2 - Removed two tab indent Signed-off-by: Oren Weil Acked-by: Tomas Winkler --- drivers/staging/mei/interrupt.c | 27 ---

Re: [PATCH 1/3] staging:iio:magnetometer:ak8975 Don't use irq_to_gpio()

2011-09-01 Thread Arnd Bergmann
On Thursday 01 September 2011, Jonathan Cameron wrote: > On 08/31/11 20:45, Andrew Chew wrote: > >> Subject: [PATCH 1/3] staging:iio:magnetometer:ak8975 Don't > >> use irq_to_gpio() > >> > >> Tegra doesn't have irq_to_gpio() any more, and ak8975 is included in > >> tegra_defconfig. This causes a b

[PATCH 3/3] staging: vme: make match() driver specific to improve non-VME64x support

2011-09-01 Thread Manohar Vanga
For jumper based boards (non VME64x), there is no mechanism for detecting the card that is plugged into a specific slot. This leads to issues in non-autodiscovery crates/cards when a card is plugged into a slot that is "claimed" by a different driver. In reality, there is no problem, but the driver

[PATCH 2/3] staging: vme: add struct vme_dev for VME devices

2011-09-01 Thread Manohar Vanga
Instead of using a vanilla 'struct device' for VME devices, add new 'struct vme_dev'. Modifications have been made to the VME framework API as well as all in-tree VME drivers. The new vme_dev structure has the following advantages from the current model used by the driver: * Driver functions

[PATCH 0/3] [RESEND v5] VME Framework Fixes

2011-09-01 Thread Manohar Vanga
Hi Greg, Martyn, Emilio, This is the resend of the patches with additional code added to patch 3 to remove devices in the case that a bridge driver is removed. (I don't know how common it is to keep resending patchsets so I apologize for any noise I may be causing). Thanks Manohar Manohar Vanga

[PATCH 1/3] staging: vme: change static device array to pointers

2011-09-01 Thread Manohar Vanga
Change the static array of 'struct device''s in struct vme_bridge to instead use an array of pointers. This is in accordance with the requirement that all kobjects be dynamically allocated (see Documentation/kobject.txt) and never be statically allocated. Signed-off-by: Manohar Vanga --- drivers

[PATCH 11/30] staging: brcm80211: cleaned up fullmac macro BRCMF_PM_RESUME_RETURN_ERROR

2011-09-01 Thread Roland Vossen
Macros impacting the code flow are sort of frowned upon. No other macro's in the source code impact the code flow. Replaced macro by function. Reported-by: Johannes Berg Signed-off-by: Roland Vossen Reviewed-by: Franky Lin Reviewed-by: Arend van Spriel Reviewed-by: Pieter-Paul Giesberts ---

[PATCH 29/30] staging: brcm80211: cleaned up several softmac macro's

2011-09-01 Thread Roland Vossen
Moved, deleted or substituted macro's. Reported-by: Johannes Berg Reviewed-by: Arend van Spriel Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Roland Vossen --- drivers/staging/brcm80211/brcmsmac/d11.h |5 --- drivers/staging/brcm80211/brcmsmac/dma.c |2 - drivers/s

[PATCH 04/30] staging: brcm80211: removed static function declarations in antsel.c

2011-09-01 Thread Roland Vossen
Reported-by: Johannes Berg Signed-off-by: Roland Vossen --- drivers/staging/brcm80211/brcmsmac/antsel.c | 214 +-- 1 files changed, 103 insertions(+), 111 deletions(-) diff --git a/drivers/staging/brcm80211/brcmsmac/antsel.c b/drivers/staging/brcm80211/brcmsmac/antsel.

[PATCH 22/30] staging: brcm80211: remove sparse warnings from mac80211_if.c

2011-09-01 Thread Roland Vossen
From: Arend van Spriel Some changes have been made to get rid of sparse warnings in the source file mac80211_if.c. Reported-by: Aaro Koskinen Reviewed-by: Roland Vossen Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Roland Vossen --- drivers/staging/brcm80211/brcmsmac/mac80211_if.c |

[PATCH 16/30] staging: brcm80211: remove unused sdioh data mode code in fullmac

2011-09-01 Thread Roland Vossen
From: Franky Lin sdioh data mode is not used in brcmf_sdioh_request_buffer. The patch removes the related code. Reviewed-by: Roland Vossen Reviewed-by: Arend van Spriel Signed-off-by: Roland Vossen --- drivers/staging/brcm80211/brcmfmac/bcmsdh.c | 15 ++- drivers/staging/

[PATCH 13/30] staging: brcm80211: consolidate SHOW_EVENTS code under BCMDBG in fullmac

2011-09-01 Thread Roland Vossen
From: Franky Lin Use unify config marco for debug info. Related event debug print out can be enabled/disabled by the dedicated event message level. Reported-by: Johannes Berg Reviewed-by: Roland Vossen Reviewed-by: Arend van Spriel Signed-off-by: Roland Vossen --- drivers/staging/brcm80211/

[PATCH 30/30] staging: brcm80211: cleaned up several main.h/main.c related macro's

2011-09-01 Thread Roland Vossen
Moved, deleted or substituted macro's. Reported-by: Johannes Berg Reviewed-by: Arend van Spriel Reviewed-by: Pieter-Paul Giesberts Signed-off-by: Roland Vossen --- drivers/staging/brcm80211/brcmsmac/ampdu.c | 12 +- drivers/staging/brcm80211/brcmsmac/main.c | 283 +

  1   2   >