Re: [PATCH 1/3] staging: dgnc: fix camelcase of SerialDriver and

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:02 GMT+09:00 Greg KH : > On Mon, Mar 14, 2016 at 01:28:01PM +0900, Daeseok Youn wrote: >> Signed-off-by: Daeseok Youn > > Your subject: does not make sense, and I can't take a patch without any > changelog entry :( ok. I will add comment to changelog entry and resend this. Thanks. r

Re: [PATCH 2/3] staging: dgnc: use pointer type of tty_struct

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:05 GMT+09:00 Greg KH : > On Mon, Mar 14, 2016 at 01:28:31PM +0900, Daeseok Youn wrote: >> For using tty_alloc_driver, SerialDriver has to be pointer type. > > Yes, but you aren't calling tty_alloc_driver, so this patch totally > breaks the working code :( yes.. my changelog was NOT goo

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread DaeSeok Youn
2016-03-22 6:05 GMT+09:00 Greg KH : > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: >> the tty_alloc_driver() can allocate memory for ttys and termios. >> And also it can release allocated memory easly with using >> put_tty_driver(). >> >> Signed-off-by: Daeseok Youn > > But you br

GANJARAN TELEKOM

2016-03-22 Thread Telekom Malaysia Berhad
Telekom Malaysia Berhad Level 51, North Wing, Menara TM, Jalan Pantai Baru, 50672, Kuala Lumpur, WP Kuala Lumpur, Malaysia. Hadiah Bonus Tahun Baru. Pihak Telekom Malaysia @Program Kemenangan yang telah diadakan pada 9th Mac 2016 di mana alamat email anda yang disertakan beraama Tiket Kemenanga

Re: [PATCH] staging: xgifb: Fix comment style

2016-03-22 Thread Bo Yu
On Mon, Mar 21, 2016 at 03:38:21PM -0400, Kroah-Hartman wrote: hi, On Sat, Mar 12, 2016 at 03:40:35AM -0500, YU Bo wrote: Fix comments to use trailing */ on separste lines. Signed-off-by: YU BO --- drivers/staging/xgifb/vb_init.c|3 ++- drivers/staging/xgifb/vb_setmode.c |3 ++- 2 fi

[PATCH] staging: dgnc: fix camelcase of SerialDriver and PrintDriver

2016-03-22 Thread Daeseok Youn
fix the checkpatch.pl warning about CamelCase. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_driver.h | 4 +- drivers/staging/dgnc/dgnc_tty.c| 118 ++--- 2 files changed, 61 insertions(+), 61 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_d

Re: [PATCH] Drivers: hv: vmbus: handle various crash scenarios

2016-03-22 Thread Vitaly Kuznetsov
KY Srinivasan writes: >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Monday, March 21, 2016 12:52 AM >> To: KY Srinivasan >> Cc: de...@linuxdriverproject.org; linux-ker...@vger.kernel.org; Haiyang >> Zhang ; Alex Ng (LIS) ; >> Radim Krcmar ; Cathy A

Re: [PATCH 3/5] Drivers: hv: vmbus: Fix a bug in hv_need_to_signal_on_read()

2016-03-22 Thread Vitaly Kuznetsov
KY Srinivasan writes: >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Monday, March 21, 2016 1:19 AM >> To: KY Srinivasan >> Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; >> de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical

Re: [PATCH] staging: dgnc: fix camelcase of SerialDriver and PrintDriver

2016-03-22 Thread walter harms
You have send this patch before, right ? then it is a good custom to have something like: [Patch V2] in the subject line. In the comment you should write somethink like v2: fix withspace damage v1: fix issue Otherwise none of the reviewer maintainer will see what was changes. Sometimes patch r

[PATCH] Skein:move macros into appropriate header files

2016-03-22 Thread Ming Li
hi, i move macros into appropriate header files. regards, Signed-off-by: Ming Li --- drivers/staging/skein/skein_block.c | 322 drivers/staging/skein/skein_block.h | 322 +++- 2 files changed, 321 insertions(+), 323 delet

[PATCH] staging:vt6656:Fixed multiple logical comparisions warnings

2016-03-22 Thread Parth Sane
Using comparison to false and true is error prone. Fixed multiple warnings as per checkpatch guidelines. Signed-off-by: Parth Sane --- drivers/staging/vt6656/wcmd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656

Re: [PATCH 3/3] staging: dgnc: use tty_alloc_driver instead of kcalloc

2016-03-22 Thread Greg KH
On Tue, Mar 22, 2016 at 04:40:24PM +0900, DaeSeok Youn wrote: > 2016-03-22 6:05 GMT+09:00 Greg KH : > > On Mon, Mar 14, 2016 at 01:29:00PM +0900, Daeseok Youn wrote: > >> the tty_alloc_driver() can allocate memory for ttys and termios. > >> And also it can release allocated memory easly with using

Re: [PATCH] Staging: wlan-ng: moved memset() calls after copy_from_user() call

2016-03-22 Thread Greg KH
On Tue, Mar 22, 2016 at 03:02:00PM +0200, Claudiu Beznea wrote: > I was guided by the principle that every instruction counts, no matter the > execution context. But you have to be able to actually measure the difference, and here you can't. thanks, greg k-h _

Re: [PATCH] Drivers: hv: vmbus: handle various crash scenarios

2016-03-22 Thread Vitaly Kuznetsov
KY Srinivasan writes: >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Monday, March 21, 2016 12:52 AM >> To: KY Srinivasan >> Cc: de...@linuxdriverproject.org; linux-ker...@vger.kernel.org; Haiyang >> Zhang ; Alex Ng (LIS) ; >> Radim Krcmar ; Cathy A

RE: [PATCH] Drivers: hv: vmbus: handle various crash scenarios

2016-03-22 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, March 22, 2016 7:01 AM > To: KY Srinivasan > Cc: de...@linuxdriverproject.org; linux-ker...@vger.kernel.org; Haiyang > Zhang ; Alex Ng (LIS) ; > Radim Krcmar ; Cathy Avery > Subject: Re: [PATCH]

RE: [PATCH 3/5] Drivers: hv: vmbus: Fix a bug in hv_need_to_signal_on_read()

2016-03-22 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, March 22, 2016 2:56 AM > To: KY Srinivasan > Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com

Re: When and how to commit kerneldoc comments to staging/unisys/*

2016-03-22 Thread Greg KH
On Tue, Mar 22, 2016 at 03:41:04PM +, Kershner, David A wrote: Please resend without html so it goes to the mailing list... ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

When and how to commit kerneldoc comments to staging/unisys/*

2016-03-22 Thread Kershner, David A
Greg, we are looking at adding kerneldoc style comments for the drivers in staging/unisys/*. Should we be doing this in staging or outside of it? If we should, do we have one commit per file or one commit per function? Thanks, David Kershner ___ dev

Re: When and how to commit kerneldoc comments to staging/unisys/*

2016-03-22 Thread Greg KH
On Tue, Mar 22, 2016 at 03:51:59PM +, Kershner, David A wrote: > Greg, we are looking at adding kerneldoc style comments for the drivers in > staging/unisys/*. First off, why? > Should we be doing this in staging or outside of it? I don't understand what you mean by "outside of it"? > If

[PATCH 2/3] staging: comedi: dt282x: remove redundant comedi_check_trigger_arg_min()

2016-03-22 Thread H Hartley Sweeten
The 'convert_arg' sets the acquisition timing of the analog input command. The maximum speed (the minimum timing) depends on the board 'ai_speed' which if always >= 4000. Remove the redundant 'min' check, Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/stagin

[PATCH 0/3] staging: comedi: dt282x: minor cleanup

2016-03-22 Thread H Hartley Sweeten
Remove some unnecessary/redundant cruft from this driver. Patch 3 may have an issue due to the +/- symbols... H Hartley Sweeten (3): staging: comedi: dt282x: remove unnecessary comedi_check_trigger_arg_max() staging: comedi: dt282x: remove redundant comedi_check_trigger_arg_min() staging: c

[PATCH 1/3] staging: comedi: dt282x: remove unnecessary comedi_check_trigger_arg_max()

2016-03-22 Thread H Hartley Sweeten
Step 4 of the (*do_cmdtest) calls dt282x_ns_to_timer() to work out the divisor needed to generate the 'convert_arg' timing. If the 'convert_arg' timing can not be generated, the function returns the max timing that can be generated. The Step 3 'max' check of the 'convert_arg' isn't necessary. Sig

[PATCH 3/3] staging: comedi: dt282x: remove unnecessary comment

2016-03-22 Thread H Hartley Sweeten
The "Configuration options" are documented in the comedi driver comment block. Remove the redundant comment before the drivers (*attach) function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/dt282x.c | 14 -- 1 file chan

Re: [PATCH] Staging: most: Remove volatile usage

2016-03-22 Thread Christian Gromm
On Mon, 21 Mar 2016 15:36:54 -0400 Greg KH wrote: > On Mon, Mar 21, 2016 at 03:08:41PM +0530, PrasannaKumar Muralidharan wrote: > > > Are you sure you can just remove these markings? Does the code work the > > > same? What is properly locking these values? Why were they marked this > > > way i

[PATCH v2] staging: comedi: ni_mio_common: fix the ni_write[blw]() functions

2016-03-22 Thread H Hartley Sweeten
Memory mapped io (dev->mmio) should not also be writing to the ioport (dev->iobase) registers. Add the missing 'else' to these functions. Fixes: 0953ee4acca0 ("staging: comedi: ni_mio_common: checkpatch.pl cleanup (else not useful)") Cc: # 3.17+ Signed-off-by: H Hartley Sweeten Reviewed-by: Ian

RE: [PATCH 3/5] Drivers: hv: vmbus: Fix a bug in hv_need_to_signal_on_read()

2016-03-22 Thread KY Srinivasan
> -Original Message- > From: KY Srinivasan > Sent: Tuesday, March 22, 2016 7:37 AM > To: 'Vitaly Kuznetsov' > Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; > jasow...@redhat.com; sta...@vger.kernel.org >

RE: When and how to commit kerneldoc comments to staging/unisys/*

2016-03-22 Thread Kershner, David A
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, March 22, 2016 11:59 AM > To: Kershner, David A > Cc: driverdev-devel@linuxdriverproject.org; *S-Par-Maintainer > > Subject: Re: When and how to commit kerneldoc comments to > staging/unisys/* > > O

Re: When and how to commit kerneldoc comments to staging/unisys/*

2016-03-22 Thread Greg KH
On Tue, Mar 22, 2016 at 05:18:50PM +, Kershner, David A wrote: > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: Tuesday, March 22, 2016 11:59 AM > > To: Kershner, David A > > Cc: driverdev-devel@linuxdriverproject.org; *S-Par-Maintainer > > > > Su

[PATCH v2] Drivers: hv: vmbus: handle various crash scenarios

2016-03-22 Thread Vitaly Kuznetsov
Kdump keeps biting. Turns out CHANNELMSG_UNLOAD_RESPONSE is always delivered to the CPU which was used for initial contact or to CPU0 depending on host version. vmbus_wait_for_unload() doesn't account for the fact that in case we're crashing on some other CPU we won't get the CHANNELMSG_UNLOAD_RESP

[PATCH 3/6] staging: comedi: ni_labpc_common: tidy up block comments

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_common.c | 59 ++-- drivers/staging/comedi/drivers/z8536.h | 89 ++

[PATCH 2/6] staging: comedi: ni_labpc_regs.h: tidy up bit defines

2016-03-22 Thread H Hartley Sweeten
As suggested by checkpatch.pl: CHECK: Prefer using the BIT macro Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_regs.h | 82 +- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/st

[PATCH 1/6] staging: comedi: ni_labpc: remove some unnecessary defines

2016-03-22 Thread H Hartley Sweeten
The EEPROM_SIZE and NUM_AO_CHAN defines are only used once and they don't add any significant clarity to the driver. They are also pretty generic symbol names. Remove them and just open code the values. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/

[PATCH 6/6] staging: comedi: ni_labpc.h: fix block comment issues

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc.h | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --gi

[PATCH 4/6] staging: comedi: ni_labpc_cs: fix block comment issues

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines WARNING: line over 80 characters Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_cs.c | 95 +--- 1 file changed, 44 inserti

[PATCH 0/6] staging: comedi: ni_labpc: minor cleanup

2016-03-22 Thread H Hartley Sweeten
Fix all the checkpatch.pl issues. H Hartley Sweeten (6): staging: comedi: ni_labpc: remove some unnecessary defines staging: comedi: ni_labpc_regs.h: tidy up bit defines staging: comedi: ni_labpc_common: tidy up block comments staging: comedi: ni_labpc_cs: fix block comment issues stagin

[PATCH 5/6] staging: comedi: ni_labpc_pci: tidy up bit define

2016-03-22 Thread H Hartley Sweeten
As suggested by checkpatch.pl: CHECK: Prefer using the BIT macro Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_la

[PATCH v2 01/43] staging: comedi: ni_660x: change IOConfigReg() into a macro

2016-03-22 Thread H Hartley Sweeten
The BUG_ON() in this function is unnecessary. The 'pfi_channel' will always be in range of the subdevice 'n_chan' (NUM_PFI_CHANNELS) which will return a valid 'reg'. Convert the inline function into a simple macro. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- dri

[PATCH v2 20/43] staging: comedi: ni_660x: Prefer kernel type 'u64' over 'uint64_t'

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comedi/drivers

[PATCH v2 08/43] staging: comedi: ni_660x: remove enum clock_config_register_bits

2016-03-22 Thread H Hartley Sweeten
Remove this enum and add a define for the bit. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/st

[PATCH v2 16/43] staging: comedi: ni_660x: fix block comment issues

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues about: WARNING: Block comments use * on subsequent lines WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 17 +++-- 1 file

[PATCH v2 02/43] staging: comedi: ni_660x: remove struct NI_660xRegisterData 'name'

2016-03-22 Thread H Hartley Sweeten
This member of the struct is not used, and just takes up space. Remove it. Instead, add the enum ni_660x_register indexes to the table to clarify, and document, the entries. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 19

[PATCH v2 04/43] staging: comedi: ni_660x: remove enum ni_660x_register_direction

2016-03-22 Thread H Hartley Sweeten
This enum is used to define the, unused, 'direction' of each register in struct NI_660xRegisterData. Remove the unused member, as well as the enum. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 203 +++-

[PATCH v2 35/43] staging: comedi: ni_660x: allocate counters early in (*auto_attach)

2016-03-22 Thread H Hartley Sweeten
The ni_gpct_device_construct() could fail allocating the memory for device and its counters. For aesthetics, call the function before initializing the subdevices. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 20 ++

[PATCH v2 29/43] staging: comedi: ni_660x: tidy up the counter subdevices init

2016-03-22 Thread H Hartley Sweeten
For aesthetics, add some whitespace to the subdevice init and use a couple local variables to make the code easier to follow. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 59 +--- 1 file change

[PATCH v2 19/43] staging: comedi: ni_660x: Prefer 'unsigned int' to bare use of 'unsigned'

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/d

[PATCH v2 10/43] staging: comedi: ni_660x: cleanup the NI660X_GLOBAL_INT_{STATUS, CFG}

2016-03-22 Thread H Hartley Sweeten
Remove the enums global_interrupt_{status,config}_register_bits and add defines for the CamelCase values. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 27 ++- 1 file changed, 10 insertions(+), 17 d

[PATCH v2 30/43] staging: comedi: ni_tio: make ni_gpct_device_destroy() NULL pointer safe

2016-03-22 Thread H Hartley Sweeten
Modify the pointer check to make this function NULL pointer safe. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_tio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_tio.c b/dr

[PATCH v2 34/43] staging: comedi: ni_660x: init TIO chips before subdevice init

2016-03-22 Thread H Hartley Sweeten
For aesthetics, initialize the TIO chips before the subdevices are allocated and initialized. Refactor the function to initialize all the TIO chips and move it to a better place in the driver. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/dr

[PATCH v2 38/43] staging: comedi: ni_660x: remove inline mite_ring()

2016-03-22 Thread H Hartley Sweeten
This fuction just returns a pointer from the private data. The name might provide some confusion since it appears to be an exported function from the mite driver. Just remove it and get the pointer directly where needed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --

[PATCH v2 31/43] staging: comedi: ni_660x: ni_gpct_device_destroy() can handle a NULL pointer

2016-03-22 Thread H Hartley Sweeten
Remove the unnecessary NULL pointer check. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/drivers/staging/comed

[PATCH v2 23/43] staging: comedi: ni_660x: tidy up ni_660x_set_pfi_routing()

2016-03-22 Thread H Hartley Sweeten
Use the comedi.h provided constants (enum ni_660x_pfi_routing) instead of defining new ones for the output sources. Use a switch to clarify the channel/source validation. For aesthetics, rename the private data members 'pfi_output_selects' and 'pfi_direction_bits'. Remove the 'min_counter_pfi_ch

[PATCH v2 32/43] staging: comedi: ni_mio_common: ni_gpct_device_destroy() can handle a NULL pointer

2016-03-22 Thread H Hartley Sweeten
Remove the unnecessary NULL pointer check. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_mio_common.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_mio_common.c b/drive

[PATCH v2 13/43] staging: comedi: ni_660x: tidy up ni_gpct_{write, read}_register()

2016-03-22 Thread H Hartley Sweeten
Rename these functions so they have namespace associated with the driver. Fix the checkpatch.pl issues: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 16 +++---

[PATCH v2 21/43] staging: comedi: ni_660x: tidy up Digital I/O subdevice init

2016-03-22 Thread H Hartley Sweeten
Add some whitespace to the Digital I/O subdevice init and add a comment about the channels. This driver is a bit goofy, only 32 of the 40 channels can actually be used for Digital I/Os and 32 of them can be routed to the counters for alternate use. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott

[PATCH v2 40/43] staging: comedi: ni_660x: remove ni_gpct_to_660x_register[]

2016-03-22 Thread H Hartley Sweeten
enum ni_gpct_register and enum ni_660x_register now have a 1:1 relationship for the NITIO_* registers. The static const array is no longer necessary to find the proper NI660X_* register for a given NITIO_*. Remove it and refactor the register read/write functions. Use the NITIO_* values to init th

[PATCH v2 26/43] staging: comedi: ni_660x: add comments for the spinlock_t definitions

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: CHECK: spinlock_t definition without comment For aesthetics, rename the 'soft_reg_copy_lock' to clarify what it's used for. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 16 +---

[PATCH v2 06/43] staging: comedi: ni_660x: cleanup the NI660X_IO_CFG register helpers

2016-03-22 Thread H Hartley Sweeten
Convert the inline functions used to set the bits in the NI600X_IO_CFG registers into macros. Also convert the enum ni_660x_pfi_output_select into defines. This clarifies the association with the register. This also fixes a number of checkpatch.pl issues about: WARNING: Prefer 'unsigned int' to b

[PATCH v2 39/43] staging: comedi: ni_660x: sort enum ni_660x_register

2016-03-22 Thread H Hartley Sweeten
Sort this enum so that it has a 1:1 relationship with the ni_tio.h enum ni_gpct_register. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 95 1 file changed, 48 insertions(+), 47 deletions(-)

[PATCH v2 18/43] staging: comedi: ni_660x: remove ni_660x_num_counters()

2016-03-22 Thread H Hartley Sweeten
This inline function is only used by the (*auto_attach). Remove it and just use a local variable for the calculation. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 16 +--- 1 file changed, 5 insertions(+), 11 d

[PATCH v2 33/43] staging: comedi: ni_660x: disable interrupts when detaching driver

2016-03-22 Thread H Hartley Sweeten
Make sure the interrupts are disabled before freeing the irq. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c b/d

[PATCH v2 15/43] staging: comedi: ni_660x: remove BUG_ON() in ni_660x_request_mite_channel()

2016-03-22 Thread H Hartley Sweeten
This BUG_ON() happens if a mite DMA channel is already requested when an ansynchronous command is started for one of the counter subdevices. The comedi core will only call the (*do_cmd) if the subdevice is not busy. In this driver, the (*cancel) for the subdevice will always release any requested

[PATCH v2 11/43] staging: comedi: ni_660x: tidy up ni_660x_write_register()

2016-03-22 Thread H Hartley Sweeten
Rename this function to help shorten some of the long lines. Remove the inline, let the compiler figure it out. Change the 'unsigned' parameters to 'unsigned int' to fix the checkpatch.pl issues: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: H Hartley Sweeten Cc: Ian

[PATCH v2 36/43] staging: comedi: ni_660x: initialize the counter with the subdevice init

2016-03-22 Thread H Hartley Sweeten
Remove the extra for loop and just initialize the counter as the subdevices are created. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/

[PATCH v2 28/43] staging: comedi: ni_660x: tidy up the misc. constants

2016-03-22 Thread H Hartley Sweeten
Remove enum ni_660x_constants and just #define the value. Move all the constant #defines so they are in one place and rename them so they are more conesistent. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 49

[PATCH v2 03/43] staging: comedi: ni_660x: remove enum ni_register_width

2016-03-22 Thread H Hartley Sweeten
All the registers are defined struct NI_660xRegisterData and they are either 2 or 4 bytes in size. Remove the enum and just use a char member to define the size as 2 or 4 bytes. Simplify the ni_660x_{write,read}_register() functions and remove the unnecessary BUG() in each. Signed-off-by: H Hartl

[PATCH v2 09/43] staging: comedi: ni_660x: cleanup the NI660X_DMA_CFG register helpers

2016-03-22 Thread H Hartley Sweeten
The BUG_ON() checks in the helper functions are not necessary. The mite driver quiries the PCI chip to determine the number of DMA channels. This is then used when a DMA channel is requested so the channel will always be in range. Convert the inline functions used to set the bits in the NI600X_DMA

[PATCH v2 27/43] staging: comedi: ni_660x: fix memory barrier without comment

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issue. Move the memory barrier to a better place. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_6

[PATCH v2 25/43] staging: comedi: ni_660x: refactor ni_gpct_to_660x_register()

2016-03-22 Thread H Hartley Sweeten
Convert this big switch into an array and refactor ni_660x_gpct_{write,read}() functions to use the array to find the register offset. All the TIO (GPCT) registers are included in the array except for NITIO_G0_ABZ and NITIO_G1_ABZ. These registers only exist on the ni_pcimio m-series boards and th

[PATCH v2 41/43] staging: comedi: ni_660x: remove spinlock 'dma_cfg_lock'

2016-03-22 Thread H Hartley Sweeten
This spinlock is only used to protect changes to the private data 'dma_cfg'. Before calling any function that would change the 'dma_cfg' the spinlock 'mite_channel_lock' is also locked. That spinlock is not unlocked until after the 'dma_cfg' change. Remove the redundant spinlock. Signed-off-by:

[PATCH v2 42/43] staging: comedi: ni_660x: refactor GPCT_OFFSET

2016-03-22 Thread H Hartley Sweeten
This driver supports boards that have 1 or 2 TIO chips with base addresses 0x800 apart. Replace the static const array 'GPCT_OFFSET' with a define and calculate the base address based on the chip index. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/

[PATCH v2 37/43] staging: comedi: ni_660x: default DIO channels with subdevice init

2016-03-22 Thread H Hartley Sweeten
For aesthetics, move the initialization of the default routing for the DIO channels so it happens when the subdevice is initialized. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 27 +-- 1 file chan

[PATCH v2 43/43] staging: comedi: ni_660x: update the MODULE_DESCRIPTION

2016-03-22 Thread H Hartley Sweeten
Change the generic MODULE_DESCRIPTION text to something more useful. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_660x.c

[PATCH v2 07/43] staging: comedi: ni_660x: tidy up multi-line comment

2016-03-22 Thread H Hartley Sweeten
Reformat the multi-line comment in the kernel CodingStyle. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/staging/comedi/

RE: [PATCH 3/6] staging: comedi: ni_labpc_common: tidy up block comments

2016-03-22 Thread Hartley Sweeten
On Tuesday, March 22, 2016 10:51 AM, H Hartley Sweeten wrote: > Fix the checkpatch.pl issues: > WARNING: Block comments use a trailing */ on a separate line > > Signed-off-by: H Hartley Sweeten > Cc: Ian Abbott > Cc: Greg Kroah-Hartman > --- > drivers/staging/comedi/drivers/ni_labpc_common.c |

[PATCH v2 05/43] staging: comedi: ni_660x: rename CamelCase 'NI_660xRegisterData'

2016-03-22 Thread H Hartley Sweeten
Rename this CamelCase struct and the associated 'registerData' variable. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/comedi/d

[PATCH v2 17/43] staging: comedi: ni_660x: remove enum ni_660x_subdevices

2016-03-22 Thread H Hartley Sweeten
Hard-coding the subdevice order is normally a bad idea. If a new subdevice is added, or removed, it could potentially break pretty badly. Remove the enum and associated NI_660X_GPCT_SUBDEV() helper that hard-code the subdevice order. Fix the (*auto_attach) so it initializes all the subdevices wit

[PATCH v2 00/43] staging: comedi: ni_660x: big driver cleanup

2016-03-22 Thread H Hartley Sweeten
This driver has a lot of checkpatch.pl issues: total: 0 errors, 71 warnings, 27 checks, 1222 lines checked There is also a lot of cruft that bloats the driver and makes it harder to follow. This series fixes all the checkpatch.pl issues: total: 0 errors, 0 warnings, 0 checks, 944 lines checked A

[PATCH v2 22/43] staging: comedi: ni_660x: tidy up ni_660x_dio_insn_bits()

2016-03-22 Thread H Hartley Sweeten
Use some local variables to clarify this function. This (*insn_bits) function is a bit different from most comedi drivers. Add some comments to clarify why the shifts are used. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c

[PATCH v2 14/43] staging: comedi: ni_660x: tidy up ni_660x_select_pfi_output()

2016-03-22 Thread H Hartley Sweeten
Tidy up this function to fix the checkpatch.pl issues: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' For aesthetics, remove the static const local variables. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 54 ++

[PATCH v2 24/43] staging: comedi: ni_660x: add a comment about the initial DIO state

2016-03-22 Thread H Hartley Sweeten
The (*auto_attach) initializes all the DIO channels to a default state. Add a comment for clarity. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_660x.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/comedi

[PATCH v2 12/43] staging: comedi: ni_660x: tidy up ni_660x_read_register()

2016-03-22 Thread H Hartley Sweeten
Rename this function to help shorten some of the long lines. Remove the inline, let the compiler figure it out. Change the 'unsigned' parameters to 'unsigned int' to fix the checkpatch.pl issues: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: H Hartley Sweeten Cc: Ian

[PATCH v2 0/6] staging: comedi: ni_labpc: minor cleanup

2016-03-22 Thread H Hartley Sweeten
Fix all the checkpatch.pl issues. v2: remove the changes to z8536.h H Hartley Sweeten (6): staging: comedi: ni_labpc: remove some unnecessary defines staging: comedi: ni_labpc_regs.h: tidy up bit defines staging: comedi: ni_labpc_common: tidy up block comments staging: comedi: ni_labpc_cs

[PATCH v2 1/6] staging: comedi: ni_labpc: remove some unnecessary defines

2016-03-22 Thread H Hartley Sweeten
The EEPROM_SIZE and NUM_AO_CHAN defines are only used once and they don't add any significant clarity to the driver. They are also pretty generic symbol names. Remove them and just open code the values. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/

[PATCH v2 3/6] staging: comedi: ni_labpc_common: tidy up block comments

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use a trailing */ on a separate line Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_common.c | 59 +++- 1 file changed, 37 insertions(+), 22 deletions(-

[PATCH v2 5/6] staging: comedi: ni_labpc_pci: tidy up bit define

2016-03-22 Thread H Hartley Sweeten
As suggested by checkpatch.pl: CHECK: Prefer using the BIT macro Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_la

[PATCH v2 6/6] staging: comedi: ni_labpc.h: fix block comment issues

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc.h | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --gi

[PATCH v2 2/6] staging: comedi: ni_labpc_regs.h: tidy up bit defines

2016-03-22 Thread H Hartley Sweeten
As suggested by checkpatch.pl: CHECK: Prefer using the BIT macro Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_regs.h | 82 +- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/drivers/st

[PATCH v2 4/6] staging: comedi: ni_labpc_cs: fix block comment issues

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines WARNING: line over 80 characters Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_labpc_cs.c | 95 +--- 1 file changed, 44 inserti

[PATCH] staging: comedi: z8536: tidy up bit defines

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: CHECK: Prefer using the BIT macro Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/z8536.h | 89 ++ 1 file changed, 48 insertions(+), 41 deletions(-) diff --git a/drivers/sta

[PATCH 0/2] staging: comedi: plx9052.h: minor cleanup

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues. H Hartley Sweeten (2): staging: comedi: plx9052.h: tidy up bit defines staging: comedi: plx9052.h: fix block comment issues drivers/staging/comedi/drivers/plx9052.h | 122 +++ 1 file changed, 61 insertions(+), 61 deletions(-) -- 2.6

[PATCH 1/2] staging: comedi: plx9052.h: tidy up bit defines

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: CHECK: Prefer using the BIT macro Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/plx9052.h | 87 1 file changed, 44 insertions(+), 43 deletions(-) diff --git a/drivers/sta

[PATCH 2/2] staging: comedi: plx9052.h: fix block comment issues

2016-03-22 Thread H Hartley Sweeten
Fix the checkpatch.pl issues: WARNING: Block comments use * on subsequent lines Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/plx9052.h | 35 1 file changed, 17 insertions(+), 18 deletions(-) diff --g

RE: [PATCH 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V

2016-03-22 Thread KY Srinivasan
> -Original Message- > From: KY Srinivasan > Sent: Sunday, March 20, 2016 11:59 AM > To: 'James Bottomley' ; Martin > K. Petersen > Cc: Christoph Hellwig ; gre...@linuxfoundation.org; > linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; > oher...@suse.com; jbottom...@parallels.c

[PATCH] Revert "Staging: lustre: o2iblnd: Use sizeof type *pointer instead of sizeof type."

2016-03-22 Thread James Simmons
Latest testing fails when using ko2iblnd. It was tracked down to commit 4671a026616df26000f7d8ad2f2ea4b6de79263c. This reverts commit 4671a026616df26000f7d8ad2f2ea4b6de79263c. --- .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c|4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) dif

[PATCH] staging: android: ion_test: fix check of platform_device_register_simple() error code

2016-03-22 Thread Vladimir Zapolskiy
On error platform_device_register_simple() returns ERR_PTR() value, check for NULL always fails. The change corrects the check itself and propagates the returned error upwards. Fixes: 81fb0b901397 ("staging: android: ion_test: unregister the platform device") Signed-off-by: Vladimir Zapolskiy --

[RFC 0/2] staging: ion: of_ion_device_get

2016-03-22 Thread Moritz Fischer
Hi all, probably I'm doing this all wrong. I'm playing around with a bunch of accelerators and I need to share buffers between them. I have my heaps implemented as a platform device and from what I understand I'll need a reference to the struct ion_device in each of them. I couldn't find a way to

[RFC 1/2] misc: Add of_get_misc get a reference from devicetree

2016-03-22 Thread Moritz Fischer
This commit enables access to a miscdevice via a reference obtained from devicetree. This allows to implement a of_ion_device_get() in the next step. Signed-off-by: Moritz Fischer --- drivers/char/misc.c| 38 ++ include/linux/miscdevice.h | 3 +++ 2 f

[RFC 2/2] staging: android: ion: Add of_ion_device_get function

2016-03-22 Thread Moritz Fischer
Allows to obtain a reference to the global /dev/ion backing struct ion_device via devicetree. Signed-off-by: Moritz Fischer --- drivers/staging/android/ion/ion.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c

Re: [RFC 0/2] staging: ion: of_ion_device_get

2016-03-22 Thread Laura Abbott
On 03/22/2016 03:33 PM, Moritz Fischer wrote: Hi all, probably I'm doing this all wrong. I'm playing around with a bunch of accelerators and I need to share buffers between them. I have my heaps implemented as a platform device and from what I understand I'll need a reference to the struct ion_

Re: [RFC 2/2] staging: android: ion: Add of_ion_device_get function

2016-03-22 Thread Moritz Fischer
Derp, On Tue, Mar 22, 2016 at 3:33 PM, Moritz Fischer wrote: > Allows to obtain a reference to the global /dev/ion backing > struct ion_device via devicetree. > > Signed-off-by: Moritz Fischer > --- > drivers/staging/android/ion/ion.c | 10 ++ > 1 file changed, 10 insertions(+) > > diff

  1   2   >