Re: [PATCH] mmc: rtsx: usb backend needs LED support

2014-04-29 Thread Roger
On 04/29/2014 08:46 PM, Arnd Bergmann wrote: On Tuesday 29 April 2014 13:05:15 Ulf Hansson wrote: On 29 April 2014 11:45, Arnd Bergmann wrote: drivers/built-in.o: In function `rtsx_usb_sdmmc_drv_remove': :(.text+0x806480): undefined reference to `led_classdev_unregister' drivers/built-in.o: I

Re: [PATCH 18/47] staging/lustre/hsm: HSM requests not delivered

2014-04-29 Thread Oleg Drokin
On Apr 29, 2014, at 5:08 AM, Dan Carpenter wrote: > On Sun, Apr 27, 2014 at 01:06:42PM -0400, Oleg Drokin wrote: >> diff --git a/drivers/staging/lustre/lustre/llite/dir.c >> b/drivers/staging/lustre/lustre/llite/dir.c >> index 7fbc18e..c391b60 100644 >> --- a/drivers/staging/lustre/lustre/llite/d

Re: [PATCH 11/47] staging/lustre/ptlrpc: add rpc_cache

2014-04-29 Thread Oleg Drokin
Hello! On Apr 29, 2014, at 5:46 AM, Dan Carpenter wrote: >> >> +/* Fall through */ >> case 7: >> sptlrpc_fini(); >> -case 5: >> +/* Fall through */ >> +case 6: >> ldlm_exit(); >> -case 4: >> +/* Fall through */ >> +

Re: [PATCH 41/47] staging/lustre/llite: remove dead code

2014-04-29 Thread Oleg Drokin
Hello! On Apr 29, 2014, at 7:02 AM, Dan Carpenter wrote: >> diff --git a/drivers/staging/lustre/lustre/llite/statahead.c >> b/drivers/staging/lustre/lustre/llite/statahead.c >> index 51c5327..1b47774 100644 >> --- a/drivers/staging/lustre/lustre/llite/statahead.c >> +++ b/drivers/staging/lustre/

Re: staging: rts5208: add support for rts5208 and rts5288

2014-04-29 Thread micky
Hi Dan, It is a indent mistake, I had sent a patch to fix it. see: https://lkml.org/lkml/2014/4/2/127 Best Regards. micky. On 04/29/2014 08:18 PM, Dan Carpenter wrote: What happened with this. My guess is that the code is buggy and curly braces were intended but I'm not confident enough to su

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

2014-04-29 Thread micky
Hi Lee, On 04/29/2014 04:02 PM, Lee Jones wrote: 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 mainl

Re: [PATCH] staging: rts5208: fix static checker warnings

2014-04-29 Thread micky
Hi Dan, I have send this patch to fix the static checker warning, but not applied yet. Best Regards. micky. On 04/02/2014 05:58 PM, micky_ch...@realsil.com.cn wrote: From: Micky Ching The patch fa590c222fba: "staging: rts5208: add support for rts5208 and rts5288" from Nov 12, 2013, leads to

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

2014-04-29 Thread Ian Abbott
On 29/04/14 18:56, Hartley Sweeten wrote: On Tuesday, April 29, 2014 7:52 AM, Ian Abbott wrote: On 2014-04-28 19:53, H Hartley Sweeten wrote: - /* Write the values of ctr1 and ctr2 into counters 1 and 2 */ - i8254_load(devpriv->pacer_counter_dio + ADC8254, 0, 1, - d

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

2014-04-29 Thread Hartley Sweeten
On, Tuesday, April 29, 2014 1:38 AM, 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 41/47] staging/lustre/llite: remove dead code

2014-04-29 Thread Dan Carpenter
On Tue, Apr 29, 2014 at 07:16:54PM +, Hammond, John wrote: > > -Original Message- > > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > > Sent: Tuesday, April 29, 2014 6:03 AM > > To: Oleg Drokin > > Cc: Greg Kroah-Hartman; linux-ker...@vger.kernel.org; > > de...@driverdev.osuosl.

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

2014-04-29 Thread Hartley Sweeten
On Tuesday, April 29, 2014 12:59 PM, H Hartley Sweeten wrote: > 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). > > Remove the older, unused, divisor calc functions in 8253.h to avoid any > confu

[PATCH 32/32] staging: comedi: das16: clarify 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
Refactor the 8254 timer programming to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load(). This allows us to use the I8254_MODE* defines to clarify the code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16.

[PATCH 31/32] staging: comedi: das16m1: clarify 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
Refactor the 8254 timer programming to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load(). This allows us to use the I8254_MODE* defines to clarify the code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/das16m

[PATCH 24/32] staging: comedi: pcl711: fix 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
As pointed out by Ian Abbott, the i8254_load() function does not use the I8254_MODE* values to specify the "mode". Refactor the 8254 timer programming to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load(). This allows us to use the I8254_MODE* defines to clarify the code.

[PATCH 28/32] staging: comedi: das800: clarify 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
Refactor the 8254 timer programming to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load(). This allows us to use the I8254_MODE* defines to clarify the code. The das800_set_frequency() function will not fail. For aesthetics change the return to a void and remove the error h

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

2014-04-29 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 27/32] staging: comedi: amplc_pci244: clarify 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
Refactor the 8254 timer programming to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load(). This allows us to use the I8254_MODE* defines to clarify the code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/amplc_

[PATCH 26/32] staging: comedi: me4000: fix 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
As pointed out by Ian Abbott, the i8254_load() function does not use the I8254_MODE* values to specify the "mode". Refactor the 8254 timer programming to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load(). This allows us to use the I8254_MODE* defines to clarify the code.

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

2014-04-29 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 23/32] staging: comedi: hwdrv_apci3120: remove clearing of 'b_OutputMemoryStatus'

2014-04-29 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 11/32] staging: comedi: amplc_pci230: remove 'ai_continuous' from private data

2014-04-29 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 16/32] staging: comedi: addi_common.h: remove 'ui_AiTimer0' from private data

2014-04-29 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 29/32] staging: comedi: ni_labpc: fix 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
As pointed out by Ian Abbott, the i8254_load() function does not use the I8254_MODE* values to specify the "mode". The labpc_counter_load() function in this driver is passed an I8254_MODE* value so we need to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load() to program the

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

2014-04-29 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 06/32] staging: comedi: 8253.h: rename i8253_cascade_ns_to_timer_2div()

2014-04-29 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

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

2014-04-29 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 14/32] staging: comedi: addi_common.h: remove 'ui_AiScanLength' from private data

2014-04-29 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 30/32] staging: comedi: ni_at_a2150: clarify 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
Refactor the 8254 timer programming to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load(). This allows us to use the I8254_MODE* defines to clarify the code. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_at_

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

2014-04-29 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 15/32] staging: comedi: addi_common.h: remove 'pui_AiChannelList' from private data

2014-04-29 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 19/32] staging: comedi: addi_common.h: remove 'ui_AiNbrofScans' from private data

2014-04-29 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 18/32] staging: comedi: addi_common.h: remove 'ui_AiDataLength' from private data

2014-04-29 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 10/32] staging: comedi: amplc_pci224: remove 'ai_stop_continuous' from private data

2014-04-29 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 09/32] staging: comedi: addi_apci_2032: tidy up cmd use in apci2032_interrupt()

2014-04-29 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 25/32] staging: comedi: ni_at_ao: fix 8254 timer programming

2014-04-29 Thread H Hartley Sweeten
As pointed out by Ian Abbott, the i8254_load() function does not use the I8254_MODE* values to specify the "mode". Refactor the 8254 timer programming to use the i8254_set_mode() and i8254_write() helpers instead of i8254_load(). This allows us to use the I8254_MODE* defines to clarify the code.

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

2014-04-29 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 22/32] staging: comedi: hwdrv_apci3120: fix 'b_AiCyclicAcquisition' usage

2014-04-29 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 07/32] staging: comedi: 8253.h: remove the unused i8253_cascade_ns_to_timer_*()

2014-04-29 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/32] staging: comedi: adl_pci9111: tidy up (*do_cmdtest) Step 4

2014-04-29 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 05/32] staging: comedi: das1800: don't calc pacer divisors twice

2014-04-29 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 01/32] staging: comedi: cb_pcidas: don't calc ai pacer divisors twice

2014-04-29 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 03/32] staging: comedi: das16m1: don't calc pacer divisors twice

2014-04-29 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. Refactor das16m1_set_pacer() to use the i8254_se

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

2014-04-29 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 02/32] staging: comedi: cb_pcidas: don't calc ao pacer divisors twice

2014-04-29 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

RE: [PATCH 41/47] staging/lustre/llite: remove dead code

2014-04-29 Thread Hammond, John
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Tuesday, April 29, 2014 6:03 AM > To: Oleg Drokin > Cc: Greg Kroah-Hartman; linux-ker...@vger.kernel.org; > de...@driverdev.osuosl.org; Drokin, Oleg; Hammond, John > Subject: Re: [PATCH 41/47] staging/lustr

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

2014-04-29 Thread Christian Engelmayer
On Mon, 28 Apr 2014 22:36:13 +, Hartley Sweeten wrote: > Technically, these drivers are fine as-is. They are. The proposed change falls under minor code maintenance only. > They are all legacy comedi drivers and use the manual attach mechanism. The > dev->board pointer is setup by the comed

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

2014-04-29 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 v2 09/12] staging: comedi: adv_pci1710: rename interrupt helper functions

2014-04-29 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 Reviewed-by: Ian Abbott Cc: Greg Kroa

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

2014-04-29 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 v2 10/12] staging: comedi: adv_pci1710: always enable PCI171x_PARANOIDCHECK code

2014-04-29 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 v2 04/12] staging: comedi: adv_pci1710: remove 'ai_buf_ptr' from private data

2014-04-29 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 Reviewed-by: 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_

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

2014-04-29 Thread H Hartley Sweeten
This member of the private data is not ued by the driver. Remove it. Signed-off-by: H Hartley Sweeten Reviewed-by: 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

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

2014-04-29 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 Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 4 +--- 1 file changed, 1 inse

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

2014-04-29 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 Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 27

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

2014-04-29 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 Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/adv_pci1710.c | 21 +++-- 1

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

2014-04-29 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 v2 03/12] staging: comedi: adv_pci1710: remove 'neverending_ai' from private data

2014-04-29 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 Reviewed

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

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

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

2014-04-29 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. v2: fix a typo in PATCH 08/12 spotted by Ian Abbott H Hartley Sweeten (12): staging: comedi: adv_pci1710: tidy up pci171x_ai_check_chanlist() staging: comed

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

2014-04-29 Thread Hartley Sweeten
On Tuesday, April 29, 2014 7:52 AM, Ian Abbott wrote: > On 2014-04-28 19:53, H Hartley Sweeten wrote: >> 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 calcu

Re: [PATCH] staging: android: fix missing a blank line after declarations

2014-04-29 Thread Dan Carpenter
On Wed, Apr 30, 2014 at 01:59:12AM +0900, Seunghun Lee wrote: > This patch fixes "Missing a blank line after declarations" warnings. > > Signed-off-by: Seunghun Lee Quite a few of these are false checkpatch.pl false positives. Just ignore the false positives. regards, dan carpenter __

Re: [PATCH] staging: line6: fix possible overrun

2014-04-29 Thread Dan Carpenter
We have two options: 1) Do we risk introducing new truncation bugs. 2) Do we risk breaking the driver because we didn't catch every truncation bug. Truncation bugs here are very low impact and probably no one would even notice. That's how not worried I am about truncation bugs in this context.

[PATCH] staging: android: fix missing a blank line after declarations

2014-04-29 Thread Seunghun Lee
This patch fixes "Missing a blank line after declarations" warnings. Signed-off-by: Seunghun Lee --- drivers/staging/android/alarm-dev.c |1 + drivers/staging/android/binder.c | 37 + drivers/staging/android/ion/ion.c | 10 ++

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

2014-04-29 Thread Ian Abbott
On 2014-04-28 19:53, H Hartley Sweeten wrote: 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 unnec

Re: [PATCH] staging: line6: fix possible overrun

2014-04-29 Thread Mateusz Guzik
On Tue, Apr 29, 2014 at 04:47:11PM +0200, Takashi Iwai wrote: > At Mon, 28 Apr 2014 01:44:25 +0300, > Dan Carpenter wrote: > > > > On Sun, Apr 27, 2014 at 10:00:43PM +0200, Mateusz Guzik wrote: > > > > > and a WARN_ON + -EINVAL in line6_init_audio to catch future > > > > > offenders. > > > > >

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

2014-04-29 Thread Ian Abbott
On 2014-04-28 19:53, H Hartley Sweeten wrote: 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 fr

Re: [PATCH] staging: line6: fix possible overrun

2014-04-29 Thread Dan Carpenter
Yeah. If this were a brand new driver then returning -EINVAL would be a good idea. Smatch actually warns about this code as well if you turn on the --spammy option. But there are too many of these kinds of warnings and even I can't check them all so the warning is basically useless. In a few mo

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

2014-04-29 Thread Ian Abbott
On 2014-04-28 19:53, H Hartley Sweeten wrote: 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.

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

2014-04-29 Thread Ian Abbott
On 2014-04-28 19:53, H Hartley Sweeten wrote: 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 dat

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

2014-04-29 Thread Ian Abbott
On 2014-04-28 19:53, H Hartley Sweeten wrote: 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

Re: [PATCH] staging: line6: fix possible overrun

2014-04-29 Thread Takashi Iwai
At Mon, 28 Apr 2014 01:44:25 +0300, Dan Carpenter wrote: > > On Sun, Apr 27, 2014 at 10:00:43PM +0200, Mateusz Guzik wrote: > > > > and a WARN_ON + -EINVAL in line6_init_audio to catch future > > > > offenders. > > > > > > Returning -EINVAL is a bad idea because it would break the driver > > >

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

2014-04-29 Thread Ian Abbott
On 2014-04-28 18:41, H Hartley Sweeten wrote: 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:

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

2014-04-29 Thread Ian Abbott
On 2014-04-28 18:41, H Hartley Sweeten wrote: 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 r

Re: [PATCH 6/6 v2] staging: comedi: addi_apci_1564: remove use of devpriv->s_EeParameters

2014-04-29 Thread Ian Abbott
On 2014-04-29 09:38, 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 Cc: Ian Abbott Cc: H Har

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

2014-04-29 Thread Ian Abbott
On 2014-04-29 09:35, 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. The description needs fixing as it's back to using PCI bar 0 and 1. Also, there's a typo: doon't -> don't. :) -- -=( Ian

Re: [PATCH 5/6 v2] staging: comedi: addi_apci_1564: remove unnecessary info from boardinfo

2014-04-29 Thread Ian Abbott
On 2014-04-29 09:37, 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: Chase Southwood Cc: Ian Ab

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

2014-04-29 Thread Ian Abbott
On 2014-04-29 09:34, 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 directly in the subdevice ini

Re: [PATCH] mmc: rtsx: usb backend needs LED support

2014-04-29 Thread Arnd Bergmann
On Tuesday 29 April 2014 13:05:15 Ulf Hansson wrote: > On 29 April 2014 11:45, Arnd Bergmann wrote: > > drivers/built-in.o: In function `rtsx_usb_sdmmc_drv_remove': > > :(.text+0x806480): undefined reference to `led_classdev_unregister' > > drivers/built-in.o: In function `rtsx_usb_sdmmc_drv_probe

[patch] staging: frontier: fix some indenting

2014-04-29 Thread Dan Carpenter
There were a couple lines which were not indented far enough and it was confusing. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/frontier/tranzport.c b/drivers/staging/frontier/tranzport.c index 0571988..334ba04 100644 --- a/drivers/staging/frontier/tranzport.c +++ b/drivers/staging

[patch] staging: r8188eu: indent for loop body

2014-04-29 Thread Dan Carpenter
The for loop body wasn't indented so it upset my static checker. Also I removed an obsolete comment on the same line. Signed-off-by: Dan Carpenter diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c b/drivers/staging/rtl8188eu/core/rtw_security.c index c4b16ea..0533595 100644 --- a/driv

Re: staging: rts5208: add support for rts5208 and rts5288

2014-04-29 Thread Dan Carpenter
What happened with this. My guess is that the code is buggy and curly braces were intended but I'm not confident enough to submit that patch myself. regards, dan carpenter On Fri, Mar 28, 2014 at 02:27:56AM +0300, Dan Carpenter wrote: > Hello Micky Ching, > > The patch fa590c222fba: "staging: r

Re: [PATCH] mmc: rtsx: usb backend needs LED support

2014-04-29 Thread Ulf Hansson
On 29 April 2014 11:45, Arnd Bergmann wrote: > [hijacking the thread since it has the right Cc list already, sorry] > > I stumbled over this doing randconfig builds on linux-next > > 8<-- > > From c11f54f1e5ea0557e076867ca31c90bcb20e3e0c Mon Sep 17 00:00:00 2001 > From: Arnd Bergmann > Da

Re: [PATCH 41/47] staging/lustre/llite: remove dead code

2014-04-29 Thread Dan Carpenter
On Sun, Apr 27, 2014 at 01:07:05PM -0400, Oleg Drokin wrote: > From: "John L. Hammond" > > In llite remove unused declarations, parameters, types, and unused, > get-only, or set-only structure members. Add static and const > qualifiers to declarations where possible. > > Signed-off-by: John L. H

Re: [PATCH 34/47] staging/lustre/libcfs: add CPU table functions for uniprocessor

2014-04-29 Thread Dan Carpenter
On Sun, Apr 27, 2014 at 01:06:58PM -0400, Oleg Drokin wrote: > int > +cfs_cpt_table_print(struct cfs_cpt_table *cptab, char *buf, int len) > +{ > + int rc = 0; GCC has a feature where it warns about unitialized variables. If you do bogus it disables this safety feature. Also the bogus a

Re: [PATCH 30/47] staging/lustre/mdc: fix issue found by Klocwork Insight tool

2014-04-29 Thread Dan Carpenter
On Sun, Apr 27, 2014 at 01:06:54PM -0400, Oleg Drokin wrote: > From: Dmitry Eremin > > Pointer 'mod' checked for NULL at line 160 may be dereferenced at line 208. > This seems to be a real bug, btw. For example, FSFILT_IOC_SETFLAGS calls md_setattr() with a NULL mod in ll_iocontrol(). regards

[PATCH] mmc: rtsx: usb backend needs LED support

2014-04-29 Thread Arnd Bergmann
[hijacking the thread since it has the right Cc list already, sorry] I stumbled over this doing randconfig builds on linux-next 8<-- >From c11f54f1e5ea0557e076867ca31c90bcb20e3e0c Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Tue, 29 Apr 2014 11:41:40 +0200 Subject: [PATCH] mmc: rt

Re: [PATCH 11/47] staging/lustre/ptlrpc: add rpc_cache

2014-04-29 Thread Dan Carpenter
On Sun, Apr 27, 2014 at 01:06:35PM -0400, Oleg Drokin wrote: > diff --git a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c > b/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c > index 0efd358..251ae75 100644 > --- a/drivers/staging/lustre/lustre/ptlrpc/ptlrpc_module.c > +++ b/drivers/sta

Re: [PATCH 18/47] staging/lustre/hsm: HSM requests not delivered

2014-04-29 Thread Dan Carpenter
On Sun, Apr 27, 2014 at 01:06:42PM -0400, Oleg Drokin wrote: > diff --git a/drivers/staging/lustre/lustre/llite/dir.c > b/drivers/staging/lustre/lustre/llite/dir.c > index 7fbc18e..c391b60 100644 > --- a/drivers/staging/lustre/lustre/llite/dir.c > +++ b/drivers/staging/lustre/lustre/llite/dir.c >

[PATCH 6/6 v2] staging: comedi: addi_apci_1564: remove use of devpriv->s_EeParameters

2014-04-29 Thread Chase Southwood
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 Cc: Ian Abbott Cc: H Hartley Sweeten --- 2: Incorrect patch title fix

[PATCH 5/6 v2] staging: comedi: addi_apci_1564: remove unnecessary info from boardinfo

2014-04-29 Thread Chase Southwood
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: Chase Southwood Cc: Ian Abbott Cc: H Hartley Sweeten --- 2: Incorrect

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

2014-04-29 Thread Chase Southwood
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 --- 2: Bad PCI bar numbers corrected. drivers/staging/comedi/drivers/addi_apci_1564.c | 11 ++

[PATCH 3/6 v2] staging: comedi: addi_apci_1564: board has 32 digital inputs

2014-04-29 Thread Chase Southwood
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 directly in the subdevice init. Signed-off-by: Chase Southwood Cc: Ian Ab

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

2014-04-29 Thread Chase Southwood
Hartley and Ian, Yes, I had a feeling I should have gone with what was present, but my desire to follow the documentation I wasn't too familiar with won out :P I'll spin a new revision of this patchset ASAP with this changed back and all of my bad titles (oof...) fixed as well and I'll make sure

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

2014-04-29 Thread Chase Southwood
Hartley, Ah geez...my brain got all tangled looking at old git commits for other addi-data drivers. I apologize for this silly mistake. I'll fix that title and send a new version of the patchset tomorrow. Thanks, Chase On Mon, Apr 28, 2014 at 12:59 PM, Hartley Sweeten wrote: > On Saturday, Ap

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

2014-04-29 Thread Lee Jones
> 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 previo

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

2014-04-29 Thread Ulf Hansson
On 29 April 2014 03:54, 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 1/2] mmc: rtsx: Revert "mmc: rtsx: modify error handle and remove smatch warnings"

2014-04-29 Thread Ulf Hansson
On 29 April 2014 03:54, wrote: > 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

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

2014-04-29 Thread Dan Carpenter
On Tue, Apr 29, 2014 at 06:55:13AM +0530, navin patidar wrote: > 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 Looks nice. Thanks. :) Reviewed-by: Dan Carpenter rega