[PATCH 11/11] staging: cxt1e1: linux.c: Return negative error codes

2013-09-26 Thread Sachin Kamat
Return negative error codes as is followed in the rest of the kernel. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/linux.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c index 598e6ba..9b48373 10064

[PATCH 07/11] staging: cxt1e1: sbecrc.c: Use NULL instead of 0

2013-09-26 Thread Sachin Kamat
Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/sbecrc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/cxt1e1/sbecrc.c b/drivers/staging/cxt1e1/sbecrc.c index 87512a5..81fa8a3 100644 --- a/drivers/

[PATCH 03/11] staging: cxt1e1: sbeid.c: Use NULL instead of 0

2013-09-26 Thread Sachin Kamat
Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/sbeid.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/cxt1e1/sbeid.c b/drivers/staging/cxt1e1/sbeid.c index 791993f..6ec51bc 100644 --- a/drivers/staging

[PATCH 09/11] staging: cxt1e1: musycc.c: Return negative error codes

2013-09-26 Thread Sachin Kamat
Return negative error codes as is followed in the rest of the kernel. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/musycc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/cxt1e1/musycc.c b/drivers/staging/cxt1e1/musycc.c index a2a2af1..0ba8c3

[PATCH 06/11] staging: cxt1e1: hwprobe.c: Use NULL instead of 0

2013-09-26 Thread Sachin Kamat
Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/hwprobe.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c index 53e9237..2f4f051 100644 --- a/drive

[PATCH 01/11] staging: cxt1e1: musycc.c: Use NULL instead of 0

2013-09-26 Thread Sachin Kamat
Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat --- Most of the patches in this series will give checkpatch errors related to spacing and indentation. This is because the driver does not follow the spacing/indentation guidelines provided for the kernel. Fixing the white

[PATCH 04/11] staging: cxt1e1: linux.c: Use NULL instead of 0

2013-09-26 Thread Sachin Kamat
Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/linux.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/cxt1e1/linux.c b/drivers/staging/cxt1e1/linux.c index 142691c..598e6ba

[PATCH 10/11] staging: cxt1e1: hwprobe.c: Return negative error codes

2013-09-26 Thread Sachin Kamat
Return negative error codes as is followed in the rest of the kernel. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/hwprobe.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c index 2f4f05

[PATCH 02/11] staging: cxt1e1: sbecom_inline_linux.h: Return NULL instead of 0

2013-09-26 Thread Sachin Kamat
Functions returning pointer should return NULL instead of 0. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/sbecom_inline_linux.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/cxt1e1/sbecom_inline_linux.h b/drivers/staging/cxt1e1/sbecom_inlin

[PATCH 05/11] staging: cxt1e1: sbeproc.c: Use NULL instead of 0

2013-09-26 Thread Sachin Kamat
Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/sbeproc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/cxt1e1/sbeproc.c b/drivers/staging/cxt1e1/sbeproc.c index 9361dd8..353c001 100644 --- a/drivers/s

[PATCH 08/11] staging: cxt1e1: pmcc4_drv.c: Use NULL instead of 0

2013-09-26 Thread Sachin Kamat
Pointers should be assigned NULL instead of 0. Signed-off-by: Sachin Kamat --- drivers/staging/cxt1e1/pmcc4_drv.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/cxt1e1/pmcc4_drv.c b/drivers/staging/cxt1e1/pmcc4_drv.c index 2383c60..4028ea1

Re: [PATCH 31/51] DMA-API: media: omap3isp: use dma_coerce_mask_and_coherent()

2013-09-26 Thread Laurent Pinchart
Hi Russell, Thank you for the patch. On Thursday 19 September 2013 22:56:02 Russell King wrote: > The code sequence: > isp->raw_dmamask = DMA_BIT_MASK(32); > isp->dev->dma_mask = &isp->raw_dmamask; > isp->dev->coherent_dma_mask = DMA_BIT_MASK(32); > bypasses the architectures ch

Award Claims

2013-09-26 Thread Aaward
Your Email Id Have Won 1,000,000.00 GBP From Chevrolet Company Promo Award 2013.Details required:Full Name,Address,Country/Nationality,Occupation, Age/Sex,Tel,Identity Proof.(Winning SERIAL NO: 81809/co/npo/uk) ___ devel mailing list de...@linuxdriverpro

Re: [PATCH v2 5/5] staging: dgap: tty.c: removes smatch warning "unsigned '--un->un_open_count' is never less than zero"

2013-09-26 Thread Lidza Louina
On Thu, Sep 26, 2013 at 6:22 AM, Dan Carpenter wrote: > On Wed, Sep 25, 2013 at 07:08:54PM -0400, Lidza Louina wrote: >> This patch removes this smatch warning: >> unsigned '--un->un_open_count' is never less than zero >> >> The code decremented the un_open_count variable >> and tested to see if i

Re: [PATCH v2 4/5] staging: dgap: tty.c: changes error handing to tty driver allocations

2013-09-26 Thread Lidza Louina
On Thu, Sep 26, 2013 at 6:19 AM, Dan Carpenter wrote: > This one is not right. > > On Wed, Sep 25, 2013 at 07:08:53PM -0400, Lidza Louina wrote: >> This patch changes error handling to the >> tty_driver allocations in dgap_tty_register. >> >> Before, it didn't handle the possibility of an >> alloc

RE: [PATCH 00/13] hv: clean up dev_attr usage

2013-09-26 Thread KY Srinivasan
Greg, I am currently travelling; when I get back I will take a look. K. Y > -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Thursday, September 26, 2013 9:00 AM > To: KY Srinivasan > Cc: Haiyang Zhang; de...@linuxdriverproject.org; linux-ker...@v

Re: [PATCH 00/51] DMA mask changes

2013-09-26 Thread Rafał Miłecki
2013/9/19 Russell King - ARM Linux : > This email is only being sent to the mailing lists in question, not to > anyone personally. The list of individuals is far to great to do that. > I'm hoping no mailing lists reject the patches based on the number of > recipients. Huh, I think it was enough t

[PATCH] staging: comedi: 8253.h: tidy up the i8253_cascade_ns_to_timer*() users

2013-09-26 Thread H Hartley Sweeten
Introduce a couple defines for the common 8254 oscillator base values used in the comedi drivers and remove the custom defines and open coded values. Change the i8253_cascade_ns_to_timer_2div() calls in the drivers to the more generic i8253_cascade_ns_to_timer(). They are identical due to the #def

staging: comedi: pcl726: rename interrupt (async cmd) support functions

2013-09-26 Thread H Hartley Sweeten
Rename these functions so they have namespace associated with the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/pcl726.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/stag

staging: comedi: Kconfig: COMEDI_NI_ATMIO should select COMEDI_FC

2013-09-26 Thread H Hartley Sweeten
As pointed out by the kbuild test robot, the ni_atmio driver includes ni_mio_common.c which uses the helper functions in the comedi_fc module. Select the COMEDI_FC module when COMEDI_NI_ATMIO is enabled to fix the following build error: ERROR: "cfc_write_array_to_buffer" [drivers/staging/comedi/d

staging: comedi: dt2801: fix using uninitialized variable warnings

2013-09-26 Thread H Hartley Sweeten
As pointed out by Fengguang Wu, the calls to dt2801_readdata() return the data read thru a pointer (the address of a local variable) passed as a parameter. If this local variable is not initialized it produces a warning during the build of the form: drivers/staging/comedi/drivers/dt2801.c: In func

Re: [PATCH v2 1/5] staging: dgap: driver.c: removes smatch warning "redundant null check"

2013-09-26 Thread Greg KH
On Wed, Sep 25, 2013 at 07:08:50PM -0400, Lidza Louina wrote: > This patch removes these smatch warnings from dgap_driver.c: > > redundant null check on dgap_config_buf calling kfree() > redundant null check on brd->flipbuf calling kfree() > redundant null check on brd->flipflagbuf calling kfree()

Re: [PATCH v2 3/5] staging: dgap: tty.c: removes smatch warnings "redundant null check"

2013-09-26 Thread Greg KH
On Wed, Sep 25, 2013 at 07:08:52PM -0400, Lidza Louina wrote: > This patch removes these smatch warnings: > redundant null check on dgap_TmpWriteBuf calling kfree() > redundant null check on brd->SerialDriver->ttys calling kfree() > redundant null check on brd->PrintDriver->ttys calling kfree() >

Re: [PATCH v2 2/5] staging: dgap: tty.c: removes smatch warning "ignoring unreachable code"

2013-09-26 Thread Greg KH
On Wed, Sep 25, 2013 at 07:08:51PM -0400, Lidza Louina wrote: > This patch removes this smatch warning: > info: ignoring unreachable code. > > There were instances where there was extra code after > the default action in switch statements. These default > actions ended with a break so the code was

Re: [PATCH 00/19] staging: comedi: pcl726: cleanup driver

2013-09-26 Thread Greg Kroah-Hartman
On Thu, Sep 26, 2013 at 04:19:49PM +, Hartley Sweeten wrote: > On Thursday, September 26, 2013 2:45 AM, Ian Abbott wrote: > > On 2013-09-25 23:34, H Hartley Sweeten wrote: > >> Cleanup another comedi driver. > >> > >> Add support for the external interrupt on the ACL-6126 board. > >> > >> H Har

RE: [PATCH 0/3] staging: comedi: pcl711: fix up AI command support

2013-09-26 Thread Hartley Sweeten
On Thursday, September 26, 2013 2:17 AM, Ian Abbott wrote: > As noted by Hartley in > http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2013-September/041560.html > async command support (for the AI subdevice) is broken. This small > series of patches should get it working. > > 1)

RE: [PATCH 00/19] staging: comedi: pcl726: cleanup driver

2013-09-26 Thread Hartley Sweeten
On Thursday, September 26, 2013 2:45 AM, Ian Abbott wrote: > On 2013-09-25 23:34, H Hartley Sweeten wrote: >> Cleanup another comedi driver. >> >> Add support for the external interrupt on the ACL-6126 board. >> >> H Hartley Sweeten (19): >>staging: comedi: pcl726: convert boardinfo declaration

[PATCH 0/4] Fix typo in staging/rtl8188eu

2013-09-26 Thread Masanari Iida
Fix spelling typo in comments. Masanari Iida (4): staging: rtl8188eu: Fix typo in rtl8188eu/include staging: rtl8188eu: Fix typo in rtl8188eu/core staging: rtl8188eu: Fix typo in rtl8188eu/hal staging: rtl8188eu: Fix typo in rtl8188eu/os_dep drivers/staging/rtl8188eu/core/rtw_ap.c

Re: [PATCH 00/13] hv: clean up dev_attr usage

2013-09-26 Thread Greg Kroah-Hartman
On Tue, Sep 17, 2013 at 06:42:30PM +, KY Srinivasan wrote: > > > > -Original Message- > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > Sent: Friday, September 13, 2013 11:33 AM > > To: KY Srinivasan; Haiyang Zhang > > Cc: de...@linuxdriverproject.org; linux-ker...@

[PATCH 3/4] staging: rtl8188eu: Fix typo in rtl8188eu/hal

2013-09-26 Thread Masanari Iida
Correct spelling typo in rtl8188eu/hal Signed-off-by: Masanari Iida --- drivers/staging/rtl8188eu/hal/HalPwrSeqCmd.c | 2 +- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 8 drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 4 ++-- drivers/staging/rtl8188eu/hal/rtl8188e_

[PATCH 4/4] staging: rtl8188eu: Fix typo in rtl8188eu/os_dep

2013-09-26 Thread Masanari Iida
Correct spelling typo in rtl8188eu/os_dep Signed-off-by: Masanari Iida --- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 12 ++-- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 2 +- drivers/staging/rtl8188eu/os_dep/osdep_service.c | 2 +- 3 files changed, 8 insertions(+), 8 d

[PATCH 2/4] staging: rtl8188eu: Fix typo in rtl8188eu/core

2013-09-26 Thread Masanari Iida
Correct spelling typo in rtl8188eu/core Signed-off-by: Masanari Iida # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # On branch rtl8188eu-typo2 # Changes to be committe

[PATCH 1/4] staging: rtl8188eu: Fix typo in rtl8188eu/include

2013-09-26 Thread Masanari Iida
Correct spelling typo in rtl8188eu/include Signed-off-by: Masanari Iida --- drivers/staging/rtl8188eu/include/Hal8188EPhyReg.h| 2 +- drivers/staging/rtl8188eu/include/odm_debug.h | 2 +- drivers/staging/rtl8188eu/include/rtw_cmd.h | 2 +- drivers/staging/rtl8188eu/inclu

Re: [PATCH 5/7] staging: usbip: Add encryption support to kernel

2013-09-26 Thread Dan Carpenter
On Thu, Sep 26, 2013 at 12:18:34PM +0200, Dominik Paulus wrote: > > I think a return of zero should mean total = -EBADMSG;. In other words > > this check should be "if (ret < 0) {" and we hit the next else if. > > Same below again. > > As we are wrapping kernel_recvmsg here, we wanted to leave th

Re: [PATCH] add exFAT driver

2013-09-26 Thread Dan Carpenter
On Thu, Sep 26, 2013 at 12:48:35PM +0200, Alexander Holler wrote: > Am 26.09.2013 12:41, schrieb Dan Carpenter: > >Anton, I already told you politely in a private email that you are being > >offtopic. This is professional email list for programmers. Most of us > >are forbidden to discuss laws exc

Re: [PATCH 39/51] DMA-API: others: use dma_set_coherent_mask()

2013-09-26 Thread Archit Taneja
Hi, On Friday 20 September 2013 04:41 AM, Russell King wrote: The correct way for a driver to specify the coherent DMA mask is not to directly access the field in the struct device, but to use dma_set_coherent_mask(). Only arch and bus code should access this member directly. Convert all direc

Re: [PATCH] add exFAT driver

2013-09-26 Thread Alexander Holler
Am 26.09.2013 12:41, schrieb Dan Carpenter: Anton, I already told you politely in a private email that you are being offtopic. This is professional email list for programmers. Most of us are forbidden to discuss laws except with our corporate legal dept. None of us are lawyers. We're not quali

Re: [PATCH] add exFAT driver

2013-09-26 Thread Dan Carpenter
Anton, I already told you politely in a private email that you are being offtopic. This is professional email list for programmers. Most of us are forbidden to discuss laws except with our corporate legal dept. None of us are lawyers. We're not qualified to read any of your links or interpret ho

Re: [PATCH v2 5/5] staging: dgap: tty.c: removes smatch warning "unsigned '--un->un_open_count' is never less than zero"

2013-09-26 Thread Dan Carpenter
On Wed, Sep 25, 2013 at 07:08:54PM -0400, Lidza Louina wrote: > This patch removes this smatch warning: > unsigned '--un->un_open_count' is never less than zero > > The code decremented the un_open_count variable > and tested to see if it was less than zero. Because > un_open_count is unsigned and

Re: [PATCH v2 4/5] staging: dgap: tty.c: changes error handing to tty driver allocations

2013-09-26 Thread Dan Carpenter
This one is not right. On Wed, Sep 25, 2013 at 07:08:53PM -0400, Lidza Louina wrote: > This patch changes error handling to the > tty_driver allocations in dgap_tty_register. > > Before, it didn't handle the possibility of an > alloc_tty_driver failure. This patch makes > dgap_register_driver ret

Re: [PATCH 5/7] staging: usbip: Add encryption support to kernel

2013-09-26 Thread Dominik Paulus
Hi, thank you very much for your feedback! On Mon, Sep 23, 2013 at 12:59:29PM +0300, Dan Carpenter wrote: > > + while (total < size) { > > + uint32_t packetsize; > > + struct kvec recvvec; > > + > > + /* > > +* We use a global kfifo to buffer unrequeste

Re: [PATCH 00/19] staging: comedi: pcl726: cleanup driver

2013-09-26 Thread Ian Abbott
On 2013-09-25 23:34, H Hartley Sweeten wrote: Cleanup another comedi driver. Add support for the external interrupt on the ACL-6126 board. H Hartley Sweeten (19): staging: comedi: pcl726: convert boardinfo declaration to C99 format staging: comedi: core: introduce comedi_chan_range_is_{bi

[PATCH 2/3] staging: comedi: pcl711: handle cmd->stop_src and stop_arg

2013-09-26 Thread Ian Abbott
The interrupt handler used to support asynchronous commands on the AI subdevice currently marks the command as finished (setting the "end of acquisition" event flag and returning to software-triggered acquisition mode) once it has decremented `devpriv->ntrig` to 0. However, nothing sets `devpriv->

[PATCH 3/3] staging: comedi: pcl711: put acquired data in buffer for AI command

2013-09-26 Thread Ian Abbott
The asynchronous command support for the AI subdevice is still missing one crucial element, it doesn't actually put the acquired data in the buffer so it can be read()! Call `comedi_buf_put()` from the interrupt handler to perform this function. A return value of 0 from `comedi_buf_put()` means t

[PATCH 0/3] staging: comedi: pcl711: fix up AI command support

2013-09-26 Thread Ian Abbott
As noted by Hartley in http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2013-September/041560.html async command support (for the AI subdevice) is broken. This small series of patches should get it working. 1) staging: comedi: pcl711: add AI cancel handler 2) staging: comedi: pcl

[PATCH 1/3] staging: comedi: pcl711: add AI cancel handler

2013-09-26 Thread Ian Abbott
Comedi subdevices that support asynchronous commands should have a 'cancel' handler to stop an in-progress command. Add such a handler to the pcl711 driver module. I think merely setting the acquisition mode to "software-triggered" would be sufficient, but also clear the interrupt status for good

Re: [PATCH 28/51] DMA-API: sound: fix dma mask handling in a lot of drivers

2013-09-26 Thread Takashi Iwai
At Thu, 26 Sep 2013 10:25:13 +0200, Takashi Iwai wrote: > > At Thu, 26 Sep 2013 08:54:25 +0100, > Russell King - ARM Linux wrote: > > > > On Thu, Sep 26, 2013 at 09:51:23AM +0200, Takashi Iwai wrote: > > > Hi, > > > > > > sorry for the lat response, as I've been traveling in the last weeks. > >

Re: [PATCH 28/51] DMA-API: sound: fix dma mask handling in a lot of drivers

2013-09-26 Thread Takashi Iwai
At Thu, 26 Sep 2013 08:54:25 +0100, Russell King - ARM Linux wrote: > > On Thu, Sep 26, 2013 at 09:51:23AM +0200, Takashi Iwai wrote: > > Hi, > > > > sorry for the lat response, as I've been traveling in the last weeks. > > > > At Thu, 19 Sep 2013 22:53:02 +0100, > > Russell King wrote: > > > >

Re: [PATCH 28/51] DMA-API: sound: fix dma mask handling in a lot of drivers

2013-09-26 Thread Russell King - ARM Linux
On Thu, Sep 26, 2013 at 09:51:23AM +0200, Takashi Iwai wrote: > Hi, > > sorry for the lat response, as I've been traveling in the last weeks. > > At Thu, 19 Sep 2013 22:53:02 +0100, > Russell King wrote: > > > > This code sequence is unsafe in modules: > > > > static u64 mask = DMA_BIT_MASK(som

Re: [PATCH] add exFAT driver

2013-09-26 Thread Anton Altaparmakov
Hi, On 25 Sep 2013, at 23:29, Alexander Holler wrote: > Am 26.09.2013 00:10, schrieb Greg Kroah-Hartman: >> Please stick to technical discussions about the code on the kernel >> mailing lists. Legal discussions can be left up to the lawyers, of >> which we are not. > > Hmm, but I would like to

Re: [PATCH 28/51] DMA-API: sound: fix dma mask handling in a lot of drivers

2013-09-26 Thread Takashi Iwai
Hi, sorry for the lat response, as I've been traveling in the last weeks. At Thu, 19 Sep 2013 22:53:02 +0100, Russell King wrote: > > This code sequence is unsafe in modules: > > static u64 mask = DMA_BIT_MASK(something); > ... > if (!dev->dma_mask) > dev->dma_mask = &mask;

Re: [PATCH] add exFAT driver

2013-09-26 Thread Anton Altaparmakov
Hi, On 25 Sep 2013, at 23:10, Greg Kroah-Hartman wrote: > On Wed, Sep 25, 2013 at 10:44:15PM +0100, Anton Altaparmakov wrote: >> On 25 Sep 2013, at 21:21, Greg Kroah-Hartman >> wrote: >>> On Wed, Sep 25, 2013 at 09:28:56PM +0200, Alexander Holler wrote: Maybe a silly question, but is