[PATCH] mmc: rtsx: Revert "mmc: rtsx: add support for pre_req and post_req"

2014-04-28 Thread micky_ching
From: Micky Ching This reverts commit c42deffd5b53c9e583d83c7964854ede2f12410d. commit did use mutex_unlock() in tasklet, but mutex_unlock() can't used in tasklet(atomic context). The driver need use mutex to avoid concurrency, so we can't use tasklet here, the patch need to be removed. The sp

Re: [PATCH] mmc: rtsx: Revert "mmc: rtsx: add support for pre_reqand post_req"

2014-04-28 Thread micky
Hi Chris and Ulf, Since the original commit is merged into kernel 3.15-rc, we want this patch apply to the 3.15-rc to avoid cause serious problem. Is there any thing I need do? Best Regards. micky. On 04/28/2014 03:36 PM, micky_ch...@realsil.com.cn wrote: From: Micky Ching This reverts comm

Re: [PATCH] staging: rtl8188eu: Use USB subsystem functions to check endpoint type

2014-04-28 Thread Dan Carpenter
On Sat, Apr 26, 2014 at 10:13:55PM +0530, navin patidar wrote: > Use inline functions provided by USB subsystem to check endpoint type, > instead of macros implemented by driver to do the same. > > Unnecessary debugging messages are also removed. > I like both these changes but they would have b

Re: [PATCH] staging: silicom: Remove unused pointer in bypass_init_module()

2014-04-28 Thread Dan Carpenter
On Sat, Apr 26, 2014 at 10:15:04PM +0200, Christian Engelmayer wrote: > Pointer 'pbpctl_dev_c' in function bypass_init_module() is unused. > Thus remove it. > > Signed-off-by: Christian Engelmayer > --- > Compile tested and applies against v3.15-rc2 as well as branch staging-next > of tree git.ke

Re: [PATCH 1/6] staging: comedi: addi_apci_1564: remove eeprom support code

2014-04-28 Thread Dan Carpenter
Nice, Chase, you've become an expert on comedi, it seems. I can't say how happy comedi patches make me these days. Ian, you and Hartley are doing a fantastic job. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driver

Re: [PATCH v7 4/4] memstick: Add realtek USB memstick host driver

2014-04-28 Thread Lee Jones
> From: Roger Tseng > > Realtek USB memstick host driver provides memstick host support based on the > Realtek USB card reader MFD driver. > > Signed-off-by: Roger Tseng > --- > drivers/memstick/host/Kconfig | 10 + > drivers/memstick/host/Makefile | 1 + > drivers/memstick/host/

Re: [PATCH v7 3/4] mmc: Add realtek USB sdmmc host driver

2014-04-28 Thread Lee Jones
> From: Roger Tseng > > Realtek USB SD/MMC host driver provides mmc host support based on the Realtek > USB card reader MFD driver. > > Signed-off-by: Roger Tseng > Acked-by: Ulf Hansson > --- > drivers/mmc/host/Kconfig |7 + > drivers/mmc/host/Makefile |1 + > driver

Re: [PATCH 4/6] staging: comedi: addi_apci_1564: simplify the PCI bar reading and don't read the unused bars

2014-04-28 Thread Ian Abbott
On 2014-04-27 02:37, Chase Southwood wrote: This driver only uses PCI bar 1 (devpriv->i_IobaseAmcc), and PCI bar 2 (dev->iobase) doon't bother reading the unused PCI bars. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- Hartley, As far as I can tell from reading the

Re: [PATCH] mmc: rtsx: Revert "mmc: rtsx: add support for pre_req and post_req"

2014-04-28 Thread Ulf Hansson
On 28 April 2014 09:36, wrote: > From: Micky Ching > > This reverts commit c42deffd5b53c9e583d83c7964854ede2f12410d. > > commit did use > mutex_unlock() in tasklet, but mutex_unlock() can't used in > tasklet(atomic context). The driver need use mutex to avoid concurrency, > so we can't use task

Re: [PATCH] mmc: rtsx: Revert "mmc: rtsx: add support for pre_req and post_req"

2014-04-28 Thread Lee Jones
> From: Micky Ching > > This reverts commit c42deffd5b53c9e583d83c7964854ede2f12410d. Why was this patch even merged without an MFD Ack? > commit did use > mutex_unlock() in tasklet, but mutex_unlock() can't used in > tasklet(atomic context). The driver need use mutex to avoid concurrency, > s

Re: [PATCH] mmc: rtsx: Revert "mmc: rtsx: add support for pre_req and post_req"

2014-04-28 Thread Ulf Hansson
On 28 April 2014 12:53, Lee Jones wrote: >> From: Micky Ching >> >> This reverts commit c42deffd5b53c9e583d83c7964854ede2f12410d. > > Why was this patch even merged without an MFD Ack? > >> commit did use >> mutex_unlock() in tasklet, but mutex_unlock() can't used in >> tasklet(atomic context).

[patch 2/2 v2] staging: lustre: integer overflow in obd_ioctl_is_invalid()

2014-04-28 Thread Dan Carpenter
The obd_ioctl_getdata() function caps "data->ioc_len" at OBD_MAX_IOCTL_BUFFER and then calls this obd_ioctl_is_invalid() to check that the other values inside data are valid. There are several lengths inside data but when they are added together they must not be larger than "data->ioc_len". The c

[PATCH v2] imx-hdmi: Make checkpatch happy

2014-04-28 Thread Fabio Estevam
e false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Signed-off-by: Fabio Estevam --- Changes since v1: - Rebased it against linux-next 20140428 drivers/staging/imx-drm/imx-hdmi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/imx-drm/imx-

Re: [PATCH 4/6] staging: comedi: addi_apci_1564: simplify the PCI bar reading and don't read the unused bars

2014-04-28 Thread Ian Abbott
On 2014-04-28 11:19, Ian Abbott wrote: On 2014-04-27 02:37, Chase Southwood wrote: This driver only uses PCI bar 1 (devpriv->i_IobaseAmcc), and PCI bar 2 (dev->iobase) doon't bother reading the unused PCI bars. Signed-off-by: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- Hartley,

Re: [PATCH] staging: rtl8192u: fix checkpatch braces warning

2014-04-28 Thread Rui Miguel Silva
On Fri, Apr 25, 2014 at 03:37:29PM -0700, Greg KH wrote: > On Wed, Mar 26, 2014 at 01:08:23AM +, Rui Miguel Silva wrote: > > fix some code style related to the use of braces in a one statement block > > > > Signed-off-by: Rui Miguel Silva > > --- > > - if((curTxOkCnt + curRxOkCnt) < 150

[PATCH v2] staging: rtl8192u: fix checkpatch braces warning

2014-04-28 Thread Rui Miguel Silva
fix some code style related to the use of braces in a one statement block Signed-off-by: Rui Miguel Silva --- Changes v1->v2: fix error regarding a newline insertion. drivers/staging/rtl8192u/r8192U_dm.c | 6 ++ drivers/staging/rtl8192u/r8192U_wx.c | 3 +-- drivers/staging/

Re: [PATCH v2 1/2] mmc: rtsx: add R1-no-CRC mmc command type handle

2014-04-28 Thread micky
Hi Chris and Ulf, This patch should be applied to 3.15(rc), 3.14, 3.13. without this patch the MMC card can not identified. Best Regards. micky. On 03/27/2014 01:35 PM, micky_ch...@realsil.com.cn wrote: From: Micky Ching commit a27fbf2f067b0cd6f172c8b696b9a44c58bfaa7a produced a cmd.flags un

Re: [PATCH v2 2/2] mmc: rtsx: modify error handle and remove smatchwarnings

2014-04-28 Thread micky
Hi Chris and Ulf, This patch is denpend on commit c42deffd5b53c9e583d83c7964854ede2f12410d. , and we discard the previous commit. we want discard this patch also(it it now in linux-next), need I send another patch to revert or it will be discard automatically? Best Regards. micky. On 03/27/20

Re: [patch 2/2 v2] staging: lustre: integer overflow in obd_ioctl_is_invalid()

2014-04-28 Thread walter harms
Am 28.04.2014 12:58, schrieb Dan Carpenter: > The obd_ioctl_getdata() function caps "data->ioc_len" at > OBD_MAX_IOCTL_BUFFER and then calls this obd_ioctl_is_invalid() to check > that the other values inside data are valid. > > There are several lengths inside data but when they are added toget

Re: [patch 2/2 v2] staging: lustre: integer overflow in obd_ioctl_is_invalid()

2014-04-28 Thread Dan Carpenter
On Mon, Apr 28, 2014 at 01:35:19PM +0200, walter harms wrote: > > > Am 28.04.2014 12:58, schrieb Dan Carpenter: > > The obd_ioctl_getdata() function caps "data->ioc_len" at > > OBD_MAX_IOCTL_BUFFER and then calls this obd_ioctl_is_invalid() to check > > that the other values inside data are valid

Re: [PATCH] mmc: rtsx: Revert "mmc: rtsx: add support for pre_req and post_req"

2014-04-28 Thread Dan Carpenter
On Mon, Apr 28, 2014 at 11:53:50AM +0100, Lee Jones wrote: > > From: Micky Ching > > > > This reverts commit c42deffd5b53c9e583d83c7964854ede2f12410d. > > Why was this patch even merged without an MFD Ack? I think process questions like this are very important. These patches touch both mmc and

Re: [PATCH v2 1/2] mmc: rtsx: add R1-no-CRC mmc command type handle

2014-04-28 Thread Dan Carpenter
On Mon, Apr 28, 2014 at 07:30:52PM +0800, micky wrote: > Hi Chris and Ulf, > > This patch should be applied to 3.15(rc), 3.14, 3.13. > without this patch the MMC card can not identified. > Top posting is annoying. If Chris and Ulf don't mind then you could actually deal with this by yourself.

Re: [PATCH 4/4] Staging: unisys: visorutil: Add MODULE_LICENSE("GPL")

2014-04-28 Thread Ken Cox
On 04/25/2014 05:32 PM, Greg KH wrote: On Thu, Apr 24, 2014 at 01:57:12PM -0500, Ken Cox wrote: The visorutil module was lacking license info. Signed-off-by: Ken Cox --- drivers/staging/unisys/visorutil/visorkmodutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/

Re: [PATCH] mmc: rtsx: Revert "mmc: rtsx: add support for pre_req and post_req"

2014-04-28 Thread Lee Jones
> >> From: Micky Ching > >> > >> This reverts commit c42deffd5b53c9e583d83c7964854ede2f12410d. > > > > Why was this patch even merged without an MFD Ack? > > > >> commit did use > >> mutex_unlock() in tasklet, but mutex_unlock() can't used in > >> tasklet(atomic context). The driver need use mute

Re: [PATCH v2 2/2] mmc: rtsx: modify error handle and remove smatchwarnings

2014-04-28 Thread Dan Carpenter
On Mon, Apr 28, 2014 at 07:37:49PM +0800, micky wrote: > Hi Chris and Ulf, > > This patch is denpend on commit c42deffd5b53c9e583d83c7964854ede2f12410d. > , and we discard > the previous commit. > we want discard this patch also(it it now in linux-next), need I > send another patch to > revert or

Re: [PATCH] mmc: rtsx: Revert "mmc: rtsx: add support for pre_req and post_req"

2014-04-28 Thread Ulf Hansson
On 28 April 2014 14:29, Lee Jones wrote: >> >> From: Micky Ching >> >> >> >> This reverts commit c42deffd5b53c9e583d83c7964854ede2f12410d. >> > >> > Why was this patch even merged without an MFD Ack? >> > >> >> commit did use >> >> mutex_unlock() in tasklet, but mutex_unlock() can't used in >> >

Re: [bug report] forever loop in ksocknal_push()

2014-04-28 Thread Zhen, Liang
Yes, it is indeed a deadloop, I think we didn¹t catch it because it¹s only called by an utility command which is probably never tried by anyone. I have posted a patch for it: http://review.whamcloud.com/10128 Thanks Liang On 4/28/14, 2:38 AM, "Drokin, Oleg" wrote: >Thanks! > >Liang, any comme

[PATCH] staging: iio: Fix format string mismatch in ad7280a.c

2014-04-28 Thread Masanari Iida
Fix two format string mismatch in ad7280a.c Signed-off-by: Masanari Iida --- drivers/staging/iio/adc/ad7280a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/adc/ad7280a.c b/drivers/staging/iio/adc/ad7280a.c index 1ac11f6..d215edf 100644 --- a/driver

Re: [PATCH] staging: octeon-usb: prevent memory corruption

2014-04-28 Thread Sergey Popov
24.03.2014 01:18, Aaro Koskinen пишет: > Hi, > > On Sat, Mar 22, 2014 at 01:13:52PM +0400, Sergey Popov wrote: >> scsi 0:0:0:0: Direct-Access SanDisk Cruzer Facet 1.26 PQ: 0 ANSI: 5 >> sd 0:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB) >> usb 1-1: reset high-speed USB

[Patch V2 0/2] staging: unisys: Fix module loading on non s-Par platform

2014-04-28 Thread Ken Cox
Each module now has a check in the init function to ensure that it is being loaded on an s-Par platform and returns an error if it isn't. Also, MODULE_LICENSE("GPL") has been added to visorkmodutils.c. ___ devel mailing list de...@linuxdriverproject.org

[PATCH V2 2/2] Staging: unisys: visorutil: Add MODULE_LICENSE("GPL")

2014-04-28 Thread Ken Cox
The visorutil module was lacking license info. Signed-off-by: Ken Cox --- drivers/staging/unisys/visorutil/visorkmodutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/unisys/visorutil/visorkmodutils.c b/drivers/staging/unisys/visorutil/visorkmodutils.c index 7521027..10

[PATCH V2 1/2] Staging: unisys: detect s-Par firmware

2014-04-28 Thread Ken Cox
This patch adds support for detection of s-Par firmware by checking for the hypervisor bit in the CPU capabilities, and then querying the hypervisor ID cpuid leaf. This functionality will be used by the unisys drivers to determine if they are being loaded on an s-Par platform and refuse to load if

Re: [PATCH V1 net-next 1/1] hyperv: Properly handle checksum offload

2014-04-28 Thread David Miller
From: "K. Y. Srinivasan" Date: Fri, 25 Apr 2014 20:55:23 -0700 > @@ -467,6 +467,9 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct > net_device *net) > if (skb_is_gso(skb)) > goto do_lso; > > + if (skb->ip_summed != CHECKSUM_PARTIAL) > + goto do_s

[PATCH 00/12] staging: comedi: adv_pci1710: more async command cleanup

2014-04-28 Thread H Hartley Sweeten
This continues the cleanup of the async command support code for this driver and addresses a number of issues pointed out by Ian Abbott. H Hartley Sweeten (12): staging: comedi: adv_pci1710: tidy up pci171x_ai_check_chanlist() staging: comedi: adv_pci1710: don't check the chanlist twice stag

[PATCH 12/12] staging: comedi: adv_pci1710: remove 'ai_act_chan' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is not ued by the driver. Remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/adv_pci1710.c b/driver

[PATCH 03/12] staging: comedi: adv_pci1710: remove 'neverending_ai' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is not necessary. We can determine if the analog input command is neverending by checking the cmd->stop_src: TRIG_COUNT -> !neverending_ai TRIG_NONE -> neverending_ai Do that instead and remove the unnecessary member. Signed-off-by: H Hartley Sweeten Cc: Ian

[PATCH 08/12] staging: comedi: adv_pci1710: tidy up start_pacer()

2014-04-28 Thread H Hartley Sweeten
For aesthetics, rename this function so it has namespace associated with the driver. Change the parameters to the function. The 'mode' is really a flag to load the counters and the divisors can be found in the private data. To clarify the code and remove the magic numbers, use the 8253.h helpers

[PATCH 07/12] staging: comedi: adv_pci1710: remove local var in pci171x_ai_cmd()

2014-04-28 Thread H Hartley Sweeten
The local variable 'mode' is not necessary. We can determine the mode by checking the cmd->convert_src and cmd->start_src. Do this instead to clarify the code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 27 +++--

[PATCH 02/12] staging: comedi: adv_pci1710: don't check the chanlist twice

2014-04-28 Thread H Hartley Sweeten
The chanlist is checked in Step 5 of the (*do_cmdtest) there is no reason to check it again in the (*do_cmd). The only reason its done again is to get the actual 'seglen', the non-repeating length of the chanlist. Save the 'seglen' found by pci171x_ai_check_chanlist() in the private data and use t

[PATCH 09/12] staging: comedi: adv_pci1710: rename interrupt helper functions

2014-04-28 Thread H Hartley Sweeten
For aesthetics, rename the helper functions that are called by the interrupt function to handle reading the analog input samples. Also, change the parameters to the helpers to the comedi_device and comedi_subdevice pointers. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman

[PATCH 10/12] staging: comedi: adv_pci1710: always enable PCI171x_PARANOIDCHECK code

2014-04-28 Thread H Hartley Sweeten
This define enables code that checks for analog input channel dropout when reading samples. The define is enabled so we might as well always enable the code and remove the define. Factor out the common channel dropout detect code as a helper function and cleanup the code. Signed-off-by: H Hartley

[PATCH 05/12] staging: comedi: adv_pci1710: remove 'ai_eos' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is is not necessary. We can just check the cmd->flags for TRIG_WAKE_EOS when needed. Remvoe the member. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 21 +++-- 1 file cha

[PATCH 06/12] staging: comedi: adv_pci1710: only calc the pacer divisors once

2014-04-28 Thread H Hartley Sweeten
When the cmd->convert_src == TRIG_TIMER the divisors needed to generate the pacer time are calculated in the (*do_cmdtest) to validate the cmd->convert_arg. The core always does the (*do_cmdtest) before the (*do_cmd) so there is no reason to recalc the divisors. Save the calculated divisors in the

[PATCH 11/12] staging: comedi: adv_pci1710: remove 'i8254_osc_base' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is always set to I8254_OSC_BASE_10MHZ. Remove it from the private data and just open code the value. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 4 +--- 1 file changed, 1 insertion(+),

[PATCH 01/12] staging: comedi: adv_pci1710: tidy up pci171x_ai_check_chanlist()

2014-04-28 Thread H Hartley Sweeten
Tidy up this function to clarify what the chanlist is being checked for. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 81 ++-- 1 file changed, 41 insertions(+), 40 deletions(-) diff --git a/dr

[PATCH 04/12] staging: comedi: adv_pci1710: remove 'ai_buf_ptr' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is set to 0 but never used. Just remove it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/adv_pci1710.c

[PATCH] locks: ensure that fl_owner is always initialized properly in flock and lease codepaths

2014-04-28 Thread Jeff Layton
Currently, the fl_owner isn't set for flock locks. Some filesystems use byte-range locks to simulate flock locks and there is a common idiom in those that does: fl->fl_owner = (fl_owner_t)filp; fl->fl_start = 0; fl->fl_end = OFFSET_MAX; Since flock locks are generally "owned" by the o

RE: [PATCH 6/6] staging: comedi: addi_apci_2032: remove use of devpriv->s_EeParameters

2014-04-28 Thread Hartley Sweeten
On Saturday, April 26, 2014 6:39 PM, Chase Southwood wrote: > This driver no longer reads the eeprom to find the board specific data, > all the necessary data is in the boardinfo. Use the boardinfo directly > instead of passing through devpriv->s_EeParameters. > > Signed-off-by: Chase Southwood >

RE: [PATCH 5/6] staging: comedi: addi_apci_2032: remove unnecessary info from boardinfo

2014-04-28 Thread Hartley Sweeten
On Saturday, April 26, 2014 6:38 PM, Chase Southwood wrote: > The i_IorangeBase1, i_PCIEeprom, and pc_EepromChip data in the boardinfo > was only needed to work out the usage of the PCI bars. Now that that is > squared away, this info is no longer needed and can be removed. > > Signed-off-by: Chas

RE: [PATCH 4/6] staging: comedi: addi_apci_1564: simplify the PCI bar reading and don't read the unused bars

2014-04-28 Thread Hartley Sweeten
On Saturday, April 26, 2014 6:37 PM, Chase Southwood wrote: > This driver only uses PCI bar 1 (devpriv->i_IobaseAmcc), and PCI bar 2 > (dev->iobase) doon't bother reading the unused PCI bars. > > Signed-off-by: Chase Southwood > Cc: Ian Abbott > Cc: H Hartley Sweeten > --- > > Hartley, > > As fa

RE: [PATCH 3/6] staging: comedi: addi_apci_1032: board has 32 digital inputs

2014-04-28 Thread Hartley Sweeten
On Saturday, April 26, 2014 6:37 PM, Chase Southwood wrote: > This board always has 32 digital inputs. Remove the test when > initializing the subdevice. > > Also, since this board is the only one supported by this driver, > remove the boardinfo about the digital inputs and just use the > data dire

RE: [PATCH 2/6] staging: comedi: addi_apci_1564: remove unnecessary include

2014-04-28 Thread Hartley Sweeten
On Saturday, April 26, 2014 6:37 PM, Chase Southwood wrote: > This include is no longer needed. > > Signed-off-by: Chase Southwood > Cc: Ian Abbott > Cc: H Hartley Sweeten > --- > drivers/staging/comedi/drivers/addi_apci_1564.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/st

RE: [PATCH 1/6] staging: comedi: addi_apci_1564: remove eeprom support code

2014-04-28 Thread Hartley Sweeten
On Saturday, April 26, 2014 6:36 PM, Chase Southwood wrote: > Reading the eeprom on this board is not necessary. All information > required is in the boardinfo. > > Remove the eeprom support code which is not really useful here. > > Signed-off-by: Chase Southwood > Cc: Ian Abbott > Cc: H Hartley

Re: [PATCH] locks: ensure that fl_owner is always initialized properly in flock and lease codepaths

2014-04-28 Thread Greg Kroah-Hartman
On Mon, Apr 28, 2014 at 01:50:13PM -0400, Jeff Layton wrote: > Currently, the fl_owner isn't set for flock locks. Some filesystems use > byte-range locks to simulate flock locks and there is a common idiom in > those that does: > > fl->fl_owner = (fl_owner_t)filp; > fl->fl_start = 0; >

RE: [PATCH V1 net-next 1/1] hyperv: Properly handle checksum offload

2014-04-28 Thread KY Srinivasan
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, April 28, 2014 10:24 AM > To: KY Srinivasan > Cc: net...@vger.kernel.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; sta...@

[PATCH v2] staging: silicom: Remove unused pointer in bypass_init_module()

2014-04-28 Thread Christian Engelmayer
Pointer 'pbpctl_dev_c' in function bypass_init_module() is unused. Thus remove it. With the last variable declaration gone, there is no more need for an own block. Remove it and adapt the indenting accordingly. Signed-off-by: Christian Engelmayer --- v2: Added changes requested by Dan Carpenter:

[PATCH] Staging: gdm72xx: gdm_wimax: Fixed coding style issues.

2014-04-28 Thread Junsu Shin
Fixed following coding style issues. - No space is necessary after a cast - Alignment should match open parenthesis - Braces {} should be used on all arms of this statement Signed-off-by: Junsu Shin x --- drivers/staging/gdm72xx/gdm_wimax.c | 71 ++- 1 file ch

[PATCH 00/23] staging: comedi: continue async command cleanup

2014-04-28 Thread H Hartley Sweeten
Remove some unnecessary pacer divisor calculations. The divisors are calculated as part of the (*do_cmdtest) and don't need done in the (*do_cmd). Remomove the older, unused, divisor calc functions in 8253.h to avoid any confusion. Remove some unnecessary private data members in a couple drivers

[PATCH 04/23] staging: comedi: das1800: refactor Step 4 of das1800_ai_do_cmdtest()

2014-04-28 Thread H Hartley Sweeten
Refactor this code to reduce the indent level and the > 80 char lines. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das1800.c | 71 ++-- 1 file changed, 31 insertions(+), 40 deletions(-) diff --git a/driv

[PATCH 18/23] staging: comedi: addi_common.h: remove 'ui_AiDataLength' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is a copy of the s->async->prealloc_bufsz. Use that instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/addi_common.h| 1 - drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c |

[PATCH 09/23] staging: comedi: addi_apci_2032: tidy up cmd use in apci2032_interrupt()

2014-04-28 Thread H Hartley Sweeten
Use a local variable for the comedi_cmd and tidy up this function a bit. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi_apci_2032.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers

[PATCH 13/23] staging: comedi: addi_common.h: remove 'ui_AiFlags' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is a copy of the cmd->flags. Use that instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/addi_common.h| 1 - drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 7 --- 2 fi

[PATCH 22/23] staging: comedi: hwdrv_apci3120: fix 'b_AiCyclicAcquisition' usage

2014-04-28 Thread H Hartley Sweeten
This private data member is set when an analog input async command is started by apci3120_cyclic_ai() and cleared when the command finishes or is canceled. Rename the CamelCase member to 'ai_running' and convert it to a bit-field flag. Remove the unnecessary clearing of the flag before or after c

[PATCH 19/23] staging: comedi: addi_common.h: remove 'ui_AiNbrofScans' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is a copy of the cmd->stop_arg. Use that instead. Fix the b_AiContinuous check in apci3120_ai_cmd(). The (*do_cmdtest) validates that the cmd->stop_arg os >= 1 for TRIG_COUNT and 0 for TRIG_NONE. The correct test to set this flag is (cmd->stop_src == TRIG_NONE). Si

[PATCH 03/23] staging: comedi: das16m1: don't calc pacer divisors twice

2014-04-28 Thread H Hartley Sweeten
The analog input async command can use the pacer for the convert_src. The (*do_cmdtest) calculates the divisors when validating the cmd argument. There is no reason to recalc the divisors in the (*do_cmd). Just use the values from the private data. Also, tidy up das16m1_set_pacer() and das16m1_cm

[PATCH 11/23] staging: comedi: amplc_pci230: remove 'ai_continuous' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data can be determined by checking the cmd->stop_src. Do that instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci230.c | 25 + 1 file changed, 9 insertions(+), 16 deletio

[PATCH 20/23] staging: comedi: addi_common.h: remove 'b_AiContinuous' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data can be determined by checking the cmd->stop_src. Do that instead. Fix the b_AiContinuous check in apci3120_ai_cmd(). The (*do_cmdtest) validates that the cmd->stop_arg os >= 1 for TRIG_COUNT and 0 for TRIG_NONE. The correct test to set this flag is (cmd->stop_src ==

[PATCH 17/23] staging: comedi: addi_common.h: remove 'ui_AiTimer1' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is a copy of the cmd->scan_begin_arg. Use that instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/addi_common.h| 1 - drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 4 +---

[PATCH 10/23] staging: comedi: amplc_pci224: remove 'ai_stop_continuous' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data can be determined by checking the cmd->stop_src. Do that instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci224.c | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-

[PATCH 21/23] staging: comedi: hwdrv_apci3120: cmd->convert_src is always TRIG_TIMER

2014-04-28 Thread H Hartley Sweeten
The (*do_cmdtest) validates that the cmd->convert_src can only be TRIG_TIMER. Remove the unnecessay checks. THis also simplifies the (*do_cmd) a bit since "mode 3" (whatever that is) is never a valid mode. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- .../comedi/d

[PATCH 23/23] staging: comedi: hwdrv_apci3120: remove clearing of 'b_OutputMemoryStatus'

2014-04-28 Thread H Hartley Sweeten
This private data member is not used by this driver. Remove the unnecessary clearing of it. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/co

[PATCH 02/23] staging: comedi: cb_pcidas: don't calc ao pacer divisors twice

2014-04-28 Thread H Hartley Sweeten
The analog output async command can use the pacer for the scan_begin_src. The (*do_cmdtest) calculates the divisors when validating the cmd argument. There is no reason to recalc the divisors in the (*do_cmd). Just use the values from the private data. For aesthetics, factor out the code that loa

[PATCH 05/23] staging: comedi: das1800: don't calc pacer divisors twice

2014-04-28 Thread H Hartley Sweeten
The analog input async command can use the pacer for the scan_begin_src or the convert_src. The (*do_cmdtest) calculates the divisors when validating the cmd argument. There is no reason to recalc the divisors in the (*do_cmd). Just use the values from the private data. For aesthetics, rename the

[PATCH 16/23] staging: comedi: addi_common.h: remove 'ui_AiTimer0' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is a copy of the cmd->convert_arg. Use that instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/addi_common.h| 1 - drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 5 +

[PATCH 15/23] staging: comedi: addi_common.h: remove 'pui_AiChannelList' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is a copy of the cmd->chanlist. Use that instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/addi-data/addi_common.h| 1 - drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 3 +-- 2 fil

[PATCH 14/23] staging: comedi: addi_common.h: remove 'ui_AiScanLength' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data is a copy of the cmd->scan_end_arg. Use that instead. Use a local variable in apci3120_cyclic_ai() for the DMA 'scan_bytes', which is the cmd->scan_end_arg * 2. Replace the open-coded '2' with sizeof(short). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Gre

[PATCH 12/23] staging: comedi: amplc_pci230: remove 'ao_continuous' from private data

2014-04-28 Thread H Hartley Sweeten
This member of the private data can be determined by checking the cmd->stop_src. Do that instead. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_pci230.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(

[PATCH 01/23] staging: comedi: cb_pcidas: don't calc ai pacer divisors twice

2014-04-28 Thread H Hartley Sweeten
The analog input async command can use the pacer for the scan_bagin_src or the convert_src. The (*do_cmdtest) validates that only one of these sources has the TRIG_TIMER selected and calculates the divisors when validating the cmd argument. There is no reason to recalc the divisors in the (*do_cmd

[PATCH 07/23] staging: comedi: 8253.h: remove the unused i8253_cascade_ns_to_timer_*()

2014-04-28 Thread H Hartley Sweeten
None of the comedi drivers use the i8253_cascade_ns_to_timer_2div_old() or i8253_cascade_ns_to_timer_power() helpers to calculate the cascaded divisors. Remove them to avoid any confusion. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers

[PATCH 08/23] staging: comedi: adl_pci9111: tidy up (*do_cmdtest) Step 4

2014-04-28 Thread H Hartley Sweeten
This step in the (*do_cmdtest) fixes the comedi_cmd arguments, usually for TRIG_TIMER sources. Tidy up this step to clarify the code and remove the extra local variables. All the arguments are unsigned long so change the 'tmp' local variable type and rename it for aesthetics. Signed-off-by: H Har

[PATCH 06/23] staging: comedi: 8253.h: rename i8253_cascade_ns_to_timer_2div()

2014-04-28 Thread H Hartley Sweeten
All of the comedi drivers use the i8253_cascade_ns_to_timer macro when calculating the divisors for the cascaded timers. This macro just causes the i8253_cascade_ns_to_timer_2div() inline to be used. Rename i8253_cascade_ns_to_timer_2div() and remove the macro. Signed-off-by: H Hartley Sweeten C

Re: [PATCH v2] staging: silicom: Remove unused pointer in bypass_init_module()

2014-04-28 Thread Dan Carpenter
On Mon, Apr 28, 2014 at 08:47:27PM +0200, Christian Engelmayer wrote: > Pointer 'pbpctl_dev_c' in function bypass_init_module() is unused. Thus remove > it. With the last variable declaration gone, there is no more need for an own > block. Remove it and adapt the indenting accordingly. > > Signed-

[PATCH 5/5] staging: rtl8188eu: fix potential leak in rtw_mp_pwrtrk()

2014-04-28 Thread Christian Engelmayer
Function rtw_mp_pwrtrk() dynamically allocates a temporary buffer that is not freed in all error paths. Use a centralized exit path and make sure that all memory is freed correctly. Detected by Coverity - 1077715. Signed-off-by: Christian Engelmayer --- drivers/staging/rtl8188eu/os_dep/ioctl_lin

[PATCH 3/5] staging: rtl8188eu: fix potential leak in rtw_mp_QueryDrv()

2014-04-28 Thread Christian Engelmayer
Function rtw_mp_QueryDrv() dynamically allocates a temporary buffer that is not freed in all error paths. Use a centralized exit path and make sure that all memory is freed correctly. Detected by Coverity - CID 1077713. Signed-off-by: Christian Engelmayer --- drivers/staging/rtl8188eu/os_dep/ioc

[PATCH 0/5] staging: rtl8188eu: fix Coverity defects in os_dep/ioctl_linux.c

2014-04-28 Thread Christian Engelmayer
This is a cleanup of staging/rtl8188eu/os_dep/ioctl_linux.c regarding Coverity resource leak findings. The changes leave the current implementation intact and just attack the problems in the error paths, however, it seems that we could get easily rid of some of the mallocs altogether. char *in

[PATCH 4/5] staging: rtl8188eu: fix potential leak in rtw_mp_SetRFPath()

2014-04-28 Thread Christian Engelmayer
Function rtw_mp_SetRFPath() dynamically allocates a temporary buffer that is not freed in all error paths. Use a centralized exit path and make sure that all memory is freed correctly. Detected by Coverity - CID 1077714. Signed-off-by: Christian Engelmayer --- drivers/staging/rtl8188eu/os_dep/io

[PATCH 2/5] staging: rtl8188eu: fix potential leak in rtw_wx_set_enc_ext()

2014-04-28 Thread Christian Engelmayer
Function rtw_wx_set_enc_ext() dynamically allocates a temporary buffer that is not freed in all error paths. Use a centralized exit path and make sure that all memory is freed correctly. Detected by Coverity - CID 1077712. Signed-off-by: Christian Engelmayer --- drivers/staging/rtl8188eu/os_dep/

[PATCH 1/5] staging: rtl8188eu: fix potential leak in rtw_wx_read32()

2014-04-28 Thread Christian Engelmayer
Function rtw_wx_read32() dynamically allocates a temporary buffer that is not freed in all error paths. Use a centralized exit path and make sure that all memory is freed correctly. Detected by Coverity - CID 1077711. Signed-off-by: Christian Engelmayer --- drivers/staging/rtl8188eu/os_dep/ioctl

Re: [PATCH 3/6] staging: comedi: addi_apci_1032: board has 32 digital inputs

2014-04-28 Thread Ian Abbott
On 28/04/14 19:11, Hartley Sweeten wrote: On Saturday, April 26, 2014 6:37 PM, Chase Southwood wrote: This board always has 32 digital inputs. Remove the test when initializing the subdevice. Also, since this board is the only one supported by this driver, remove the boardinfo about the digital

RE: [PATCH] staging: comedi: remove duplicate pointer assignments in attach functions

2014-04-28 Thread Hartley Sweeten
On Saturday, April 26, 2014 7:04 AM, Christian Engelmayer wrote: > Some board pointer are assigned twice via comedi_board() in the comedi low > level driver attach functions. Remove the duplicate assignment from the > variable definition where the pointer is not used anyway until assigned later > i

[PATCH 1/2] staging: rtl8188eu: Remove debugging messages from usb_dvobj_init()

2014-04-28 Thread navin patidar
Unnecessary debugging messages are removed from usb_dvobj_init(). Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 34 +++ 1 file changed, 3 insertions(+), 31 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers

[PATCH 2/2] staging: rtl8188eu: Use USB subsystem functions to check endpoint type

2014-04-28 Thread navin patidar
Use inline functions provided by USB subsystem to check endpoint type, instead of inline functions implemented by driver to do the same. Signed-off-by: navin patidar --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 57 +-- 1 file changed, 10 insertions(+), 47 deletions

Re: [PATCH] staging: rtl8188eu: Use USB subsystem functions to check endpoint type

2014-04-28 Thread navin patidar
On Mon, Apr 28, 2014 at 2:55 PM, Dan Carpenter wrote: > On Sat, Apr 26, 2014 at 10:13:55PM +0530, navin patidar wrote: >> Use inline functions provided by USB subsystem to check endpoint type, >> instead of macros implemented by driver to do the same. >> >> Unnecessary debugging messages are also

[PATCH 0/2] mmc: rtsx: revert support for mmc async request

2014-04-28 Thread micky_ching
From: Micky Ching The commit have some problem, using mutex_unlock() in atomic context, spinlock deadlock, it is hard to fix these problem, and better to use a new method. So just remove it. The commit depends on the previous patch. And mainly fix some problem for the previous patch. So need r

[PATCH 1/2] mmc: rtsx: Revert "mmc: rtsx: modify error handle and remove smatch warnings"

2014-04-28 Thread micky_ching
From: Micky Ching This reverts commit 1f7b581b3ffcb2a8437397a02f4af89fa6934d08. The patch depend on commit c42deffd5b53c9e583d83c7964854ede2f12410d , but the previous patch was discard. So we have to delete the patch. Signed-off-by: Micky Ching --- drivers/mmc/host/rtsx_pci_sdmmc.c | 119 +++

[PATCH 2/2] mmc: rtsx: Revert "mmc: rtsx: add support for pre_req and post_req"

2014-04-28 Thread micky_ching
From: Micky Ching This reverts commit c42deffd5b53c9e583d83c7964854ede2f12410d. commit did use mutex_unlock() in tasklet, but mutex_unlock() can't used in tasklet(atomic context). The driver need use mutex to avoid concurrency, so we can't use tasklet here, the patch need to be removed. The sp

[PATCH v4 0/3] staging: gdm72xx: Code cleanup

2014-04-28 Thread Michalis Pappas
Ok, I generated a new patchset based on running checkpatch.pl with the --strict option, as well as any recommendations made earlier on this thread. >From the following patches, both 8/10 and 9/10 involve whitespace fixes: the former fixes issues reported by checkpatch.pl while the latter is mostly

[PATCH v4 1/10] staging: gdm72xx: Removed unnecessary extern declarations from header files

2014-04-28 Thread Michalis Pappas
Removed unnecessary extern declarations from header files Signed-off-by: Michalis Pappas --- drivers/staging/gdm72xx/gdm_wimax.h | 6 +++--- drivers/staging/gdm72xx/sdio_boot.h | 2 +- drivers/staging/gdm72xx/usb_boot.h | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/d

[PATCH v4 2/10] staging: gdm72xx: Replaced comparisons on jiffies values with wrap-safe functions

2014-04-28 Thread Michalis Pappas
Replaced comparisons on jiffies values with wrap-safe functions. Signed-off-by: Michalis Pappas --- drivers/staging/gdm72xx/gdm_usb.c | 2 +- drivers/staging/gdm72xx/sdio_boot.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/gdm72xx/gdm_usb.c b/drive

[PATCH v4 3/10] staging: gdm72xx: Modified struct allocation to match coding standards

2014-04-28 Thread Michalis Pappas
Modified struct allocation to match coding standards --- drivers/staging/gdm72xx/gdm_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm72xx/gdm_qos.c b/drivers/staging/gdm72xx/gdm_qos.c index 50d43ad..519db48 100644 --- a/drivers/staging/gdm72xx/gdm_qo

  1   2   >