[PATCH] memorystick: rtsx: add cancel_work when remove driver

2014-06-04 Thread micky_ching
From: Micky Ching Add cancel_work_sync() in rtsx_pci_ms_drv_remove(). Using cancel_work_sync() to cancel pending request handle work when remove driver. Signed-off-by: Micky Ching --- drivers/memstick/host/rtsx_pci_ms.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/memstick/ho

Re: [patch v2] mm, pcp: allow restoring percpu_pagelist_fraction default

2014-06-04 Thread Oleg Drokin
Hello! On Jun 4, 2014, at 8:34 PM, David Rientjes wrote: > @@ -5850,23 +5851,39 @@ int percpu_pagelist_fraction_sysctl_handler(ctl_table > *table, int write, > void __user *buffer, size_t *length, loff_t *ppos) > { > struct zone *zone; > - unsigned int cpu; > + int old_percpu_

XVME 6300 with TSI148 bridge on 64 bit Debian (Linux 3.2.57) vme_user issue

2014-06-04 Thread Maurice Moss
Dear All, I came across the link here and decided to write to you, as I am facing a very similar problem: http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2013-May/037941.html With the above linux, I have recompiled the kernel and booting the image with a vme_user.bus=0 vme_tsi14

[PATCH] staging: usbip: stub_main.c: Cleaning up missing null-terminate after strncpy call

2014-06-04 Thread Rickard Strandqvist
Added a guaranteed null-terminate after call to strncpy. This was partly found using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/staging/usbip/stub_main.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/usbip/stub_main.c

Re: [PATCH v2 1/4] dma-mapping: Add devm_ interface for dma_map_single()

2014-06-04 Thread Joerg Roedel
Hi, On Wed, Jun 04, 2014 at 06:03:36PM +0300, Eli Billauer wrote: > I believe that I need a managed dma_map_single() my own driver, > which doesn't fall in the case of a single use: The driver allocates > its buffers with __get_free_pages() (or the to-be managed version of > it). Then it cuts the

Re: [PATCH] staging: comedi: comedi_buf: introduce comedi_buf_n_bytes_ready()

2014-06-04 Thread Ian Abbott
On 2014-06-04 19:30, Hartley Sweeten wrote: On Wednesday, June 04, 2014 11:17 AM, Ian Abbott wrote: On 2014-05-29 18:38, H Hartley Sweeten wrote: Introduce a helper function to return the number of bytes that are ready to read/write from/to the comedi_async buffer. The "write to" use doesn't re

Re: [PATCH] staging: comedi: ke_counter: add ability to select counter clock source

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:45, H Hartley Sweeten wrote: Add an (*insn_config) to the counter subdevice to allow the user to select the clock source for the counters using the INSN_CONFIG_SET_CLOCK_SRC instruction. The current selection can be queried with the instruction INSN_CONFIG_GET_CLOCK_SRC. Also, h

Re: [PATCH 2/2] staging: comedi: pcl724: add support for Diamond Systems ONYX-MM-DIO module

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:42, H Hartley Sweeten wrote: The Diamond Systems ONYX-MM-DIO board is a PC/104 module with two 8255 chips providing 48 digital I/O channels. This board can be supported by the pcl724 driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Reviewed-by

Re: [PATCH 1/2] staging: comedi: pcl730: add support for Diamond Systems IR104-PBF module

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:42, H Hartley Sweeten wrote: The Diamond Systems IR104-PBF board is a PC/104 module with 20 optoisolated inputs and 20 relay outputs. This board can be supported by the pcl730 driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Reviewed-by: Ian A

RE: [PATCH] staging: comedi: comedi_buf: introduce comedi_buf_n_bytes_ready()

2014-06-04 Thread Hartley Sweeten
On Wednesday, June 04, 2014 11:17 AM, Ian Abbott wrote: > On 2014-05-29 18:38, H Hartley Sweeten wrote: >> Introduce a helper function to return the number of bytes that are >> ready to read/write from/to the comedi_async buffer. The "write to" >> use doesn't really make much sense but is handled f

Re: [PATCH] staging: comedi: comedi_buf: introduce comedi_buf_n_bytes_ready()

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:38, H Hartley Sweeten wrote: Introduce a helper function to return the number of bytes that are ready to read/write from/to the comedi_async buffer. The "write to" use doesn't really make much sense but is handled for completeness. Use the helper function in the comedi drivers t

[PATCH] Staging: rtl8821ae: use kmalloc instead of variable length stack arrays

2014-06-04 Thread Remi Pommarel
This removes stack arrays of variable length and use kmalloc() instead, thus removing the sparse warnings "Variable length array is used". Signed-off-by: Remi Pommarel --- drivers/staging/rtl8821ae/efuse.c | 38 +++--- 1 file changed, 31 insertions(+), 7 deletions

Re: [PATCH 3/3] staging: comedi: adl_pci9111: simplify A/D trigger selection code

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:35, H Hartley Sweeten wrote: The functions pci9111_trigger_source_set(), pci9111_pretrigger_set(), and pci9111_autoscan_set() are all used to select the A/D trigger type. They all do a read/mask/set/write of the A/D Trigger Mode Control register. Simplify the code by removing th

Re: [PATCH 2/3] staging: comedi: adl_pci9111: remove PCI9111_HR_DEVICE_ID define

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:35, H Hartley Sweeten wrote: This define is only used in the pci_device_id table and doesn't add any additional clarity to the code. Remove the define and just open code the value. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Reviewed-by: Ian Abbot

Re: [PATCH 1/3] staging: comedi: adl_pci9111: remove PCI9111_DRIVER_NAME define

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:35, H Hartley Sweeten wrote: This define is only used in a comedi_error() message. The addition of the driver name to the message is not necessary. Remove the define. For aesthetics, convert the comedi_error() into a dev_dbg(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott

RE: [PATCH 1/1] [SCSI] Fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeout

2014-06-04 Thread KY Srinivasan
> -Original Message- > From: James Bottomley [mailto:jbottom...@parallels.com] > Sent: Wednesday, June 4, 2014 10:02 AM > To: KY Srinivasan > Cc: linux-ker...@vger.kernel.org; a...@canonical.com; > de...@linuxdriverproject.org; h...@infradead.org; linux- > s...@vger.kernel.org; oher...@su

Re: [PATCH 1/1] [SCSI] Fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeout

2014-06-04 Thread James Bottomley
On Wed, 2014-06-04 at 09:33 -0700, K. Y. Srinivasan wrote: > Commit ID: 7e660100d85af860e7ad763202fff717adcdaacd added code to derive the > FLUSH_TIMEOUT from the basic I/O timeout. However, this patch did not use the > basic I/O timeout of the device. Fix this bug. > > Signed-off-by: K. Y. Sriniv

Re: [PATCH 0/6] staging: comedi: addi_common.h: remove some cruft

2014-06-04 Thread Ian Abbott
On 2014-05-29 18:29, H Hartley Sweeten wrote: Many of the ADDI-DATA drivers have been separated from the "addi_common" code and cleaned up. Because of this cleanup there are some unnecessary members hanging around in the private data struct and a number of defines that don't add any sigificant cl

[PATCH 1/1] [SCSI] Fix a bug in deriving the FLUSH_TIMEOUT from the basic I/O timeout

2014-06-04 Thread K. Y. Srinivasan
Commit ID: 7e660100d85af860e7ad763202fff717adcdaacd added code to derive the FLUSH_TIMEOUT from the basic I/O timeout. However, this patch did not use the basic I/O timeout of the device. Fix this bug. Signed-off-by: K. Y. Srinivasan --- drivers/scsi/sd.c |4 +++- 1 files changed, 3 insertio

Re: [PATCH] Staging:tidspbridge Fix minor checkpatch.pl warning.

2014-06-04 Thread Greg KH
On Wed, Jun 04, 2014 at 08:28:36PM +0530, Adithya.K wrote: > From: Adithya K > > Fixed few checkpatch.pl warnings. Be specific about _what_ warnings you fixed. And if you fix more than one type of warning, please break it up into different patches (each patch only can do one thing.) > Signed-o

Re: [PATCH v2 1/4] dma-mapping: Add devm_ interface for dma_map_single()

2014-06-04 Thread Eli Billauer
Hi, I believe that I need a managed dma_map_single() my own driver, which doesn't fall in the case of a single use: The driver allocates its buffers with __get_free_pages() (or the to-be managed version of it). Then it cuts the allocated memory into smaller buffers (in some cases, and with ce

[PATCH] Staging:tidspbridge Fix minor checkpatch.pl warning.

2014-06-04 Thread Adithya.K
From: Adithya K Fixed few checkpatch.pl warnings. Signed-off-by: Adithya K --- drivers/staging/tidspbridge/pmgr/chnl.c |1 + drivers/staging/tidspbridge/pmgr/dspapi.c |8 drivers/staging/tidspbridge/rmgr/dbdcd.c |1 + drivers/staging/tidspbridge/rmgr/nldr.c |2 +-

Re: [PATCH v2 1/4] dma-mapping: Add devm_ interface for dma_map_single()

2014-06-04 Thread Tejun Heo
Hello, On Wed, Jun 04, 2014 at 04:12:11PM +0200, Joerg Roedel wrote: > Yes, but those drivers usually get DMA buffers at init time with the > dma_alloc_* interfaces. The dma_map_* interfaces discussed here belong > to the streaming DMA-API, so they are usually used for only one DMA > transaction b

Re: [PATCH v2 1/4] dma-mapping: Add devm_ interface for dma_map_single()

2014-06-04 Thread Joerg Roedel
On Wed, Jun 04, 2014 at 10:04:08AM -0400, Tejun Heo wrote: > Hmmm? Don't we have drivers which map dma buffers on device init and > release them on exit? For dynamic usages, its usefulness is limited > especially given that dynamic tracking of buffers usually would > involve tracking of other inf

Re: [PATCH v2 1/4] dma-mapping: Add devm_ interface for dma_map_single()

2014-06-04 Thread Tejun Heo
Hello, On Wed, Jun 04, 2014 at 01:39:07AM +0200, Joerg Roedel wrote: > I fully agree with the points Shuah brought up here. I don't think it is > a good idea to add this kind of resource management to runtime-allocated > (and de-allocated) resources of device drivers. > > Also DMA handles are not

RE: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread David Laight
From: Julia Lawall > On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: > > > Hi Julia, > > > > On Wed, Jun 4, 2014 at 1:00 PM, Julia Lawall wrote: > > > OK, thanks. I was only looking at the C code. > > > > > > But the C code contains a loop that is followed by: > > > > > > if (!size) > > >

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: > Hi Julia, > > On Wed, Jun 4, 2014 at 1:00 PM, Julia Lawall wrote: > > OK, thanks. I was only looking at the C code. > > > > But the C code contains a loop that is followed by: > > > > if (!size) > > return result; > >

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Geert Uytterhoeven
Hi Julia, On Wed, Jun 4, 2014 at 1:00 PM, Julia Lawall wrote: > OK, thanks. I was only looking at the C code. > > But the C code contains a loop that is followed by: > > if (!size) > return result; > tmp = *p; > > found_first: > tmp |= ~0UL << size; >

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: > Hi Julia, > > On Wed, Jun 4, 2014 at 11:52 AM, Julia Lawall wrote: > >> Maybe the documented return code should be changed to allow for the > >> existing behaviour. > > > > Sorry, I'm not sure to understand what you suggest here. > > include/asm-g

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Geert Uytterhoeven
Hi Julia, On Wed, Jun 4, 2014 at 11:52 AM, Julia Lawall wrote: >> Maybe the documented return code should be changed to allow for the >> existing behaviour. > > Sorry, I'm not sure to understand what you suggest here. include/asm-generic/bitops/find.h: | /** | * find_first_zero_bit - find the

RE: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
On Wed, 4 Jun 2014, David Laight wrote: > From: Julia Lawall > > On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: > > > > > Hi Julia, > > > > > > On Wed, Jun 4, 2014 at 11:07 AM, Julia Lawall > > > wrote: > > > > Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may > > > > ret

[PULL] Move IPUv3 core out of staging, add CSI support

2014-06-04 Thread Philipp Zabel
Hi Dave, The following changes since commit d1db0eea852497762cab43b905b879dfcd3b8987: Linux 3.15-rc3 (2014-04-27 19:29:27 -0700) are available in the git repository at: git://git.pengutronix.de/git/pza/linux.git topic/ipu-destaging for you to fetch changes up to d6ca8ca7ec555bdd3372687d0d7

RE: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread David Laight
From: Julia Lawall > On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: > > > Hi Julia, > > > > On Wed, Jun 4, 2014 at 11:07 AM, Julia Lawall wrote: > > > Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may > > > return a larger number than the maximum position argument if that po

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
On Wed, 4 Jun 2014, Geert Uytterhoeven wrote: > Hi Julia, > > On Wed, Jun 4, 2014 at 11:07 AM, Julia Lawall wrote: > > Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may > > return a larger number than the maximum position argument if that position > > is not a multiple of

Re: [PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Geert Uytterhoeven
Hi Julia, On Wed, Jun 4, 2014 at 11:07 AM, Julia Lawall wrote: > Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may > return a larger number than the maximum position argument if that position > is not a multiple of BITS_PER_LONG. Shouldn't this be fixed in find_first_zero_

[PATCH 0/10] use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may return a larger number than the maximum position argument if that position is not a multiple of BITS_PER_LONG. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.l

[PATCH 4/10] staging: tidspbridge: use safer test on the result of find_first_zero_bit

2014-06-04 Thread Julia Lawall
From: Julia Lawall Find_first_zero_bit considers BITS_PER_LONG bits at a time, and thus may return a larger number than the maximum position argument if that position is not a multiple of BITS_PER_LONG. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @