Re: [PATCH v2] staging: comedi: ni_labpc: change VIRT_TO_BUS dependency

2013-06-27 Thread Ian Abbott
On 2013-06-27 17:08, Ian Abbott wrote: The "ni_labpc" module acts as a low-level comedi driver for various National Instruments Lab-PC ISA cards if `CONFIG_NI_LABPC_ISA` is enabled, and also as a common module depended on by the "ni_labpc_cs" and "ni_labpc_pci" modules. For ISA cards, it optiona

[PATCH v2] staging: comedi: ni_labpc: change VIRT_TO_BUS dependency

2013-06-27 Thread Ian Abbott
The "ni_labpc" module acts as a low-level comedi driver for various National Instruments Lab-PC ISA cards if `CONFIG_NI_LABPC_ISA` is enabled, and also as a common module depended on by the "ni_labpc_cs" and "ni_labpc_pci" modules. For ISA cards, it optionally supports the use of an ISA DMA channe

[PATCH 1/2] staging: comedi: return void from comedi_driver_unregister()

2013-06-27 Thread Ian Abbott
'Unregister' functions generally return `void`. `comedi_driver_unregister()` currently returns an `int` errno value. Nothing looks at the return value. Change the return type to `void`. Signed-off-by: Ian Abbott --- drivers/staging/comedi/comedidev.h | 2 +- drivers/staging/comedi/drivers.c |

[PATCH 0/2] staging: comedi: use mutex for driver list

2013-06-27 Thread Ian Abbott
A couple of patches to Comedi's driver list code. Patch 1 just changes the return type on an unregister function to `void`. Patch 2 uses a mutex for accessing the driver list. 1) staging: comedi: return void from comedi_driver_unregister() 2) staging: comedi: use a mutex when accessing driver li

[PATCH 2/2] staging: comedi: use a mutex when accessing driver list

2013-06-27 Thread Ian Abbott
Low-level comedi drivers registered with the comedi core by `comedi_driver_register()` are linked together into a simple linked list headed by the `comedi_drivers` variable and chained by the `next` member of `struct comedi_driver`. A driver is removed from the list by `comedi_driver_unregister()`

Re: [PATCH] staging: comedi: ii_pci20kc: this is an ISA board not a PCI board

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-26. Reposting to new driverdev-devel list.] On 2013-06-25 18:38, H Hartley Sweeten wrote: On Tuesday, June 25, 2013 2:16 AM, Ian Abbott wrote: On 2013-06-25 01:07, H Hartley Sweeten wrote: The Intelligent Instrumentation PCI-20001C board is a legacy PC/XT/AT 8-bit I

Re: [PATCH 1/3] staging: comedi: don't rely on comedidev.h to include headers

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-25. Reposting to new driverdev-devel list.] On 2013-06-25 01:04, H Hartley Sweeten wrote: comedidev.h is the main kernel header for comedi. Every comedi driver includes this header which then includes a number of headers. All the drivers need and some of them need .

Re: [PATCH 0/2] staging: comedi: introduce, and use, comedi_alloc_devpriv()

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-25. Reposting to new driverdev-devel list.] On 2013-06-25 00:54, H Hartley Sweeten wrote: The comedi core automatically kfree()'s the device private data during the (*detach) of the drivers. The kzalloc() in the drivers produces a smatch warning due to the missing kfr

Re: [PATCH 1/2] staging: comedi: unioxx5: fix unioxx5_detach()

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-25. Reposting to new driverdev-devel list.] On 2013-06-25 00:23, H Hartley Sweeten wrote: During the attach of this driver, it's possible for the allocation of the subdevice private data to fail. It's also possible that the io region was not successfully requested. V

Re: [PATCH] staging: comedi: range: tidy up comedi_check_chanlist()

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-25. Reposting to new driverdev-devel list.] On 2013-06-25 01:11, H Hartley Sweeten wrote: The only difference in the if() and else if() check of the chanlist is the source of the range table length. Consolidate the checks to make the function a bit more concise. Sign

Re: [PATCH] staging: comedi: pcl724: add support for the PCM-IO48 PC/104 board

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-25. Reposting to new driverdev-devel list.] On 2013-06-25 01:09, H Hartley Sweeten wrote: This driver can support the WinSystems PCM-IO48 PC/104 board. That board has two 8255 devices providing 48 digital I/O channels. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott

Re: [PATCH] staging: comedi: Fix typo in staging/comedi

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-24. Reposting to new driverdev-devel list.] On 2013-06-23 16:09, Masanari Iida wrote: Correct spelling typo in printk and comment within staging/comedi. Singed-off-by: Masanari Iida --- drivers/staging/comedi/drivers/addi-data/APCI1710_Tor.c | 8 drivers

Re: [PATCH] staging: comedi: ii_pci20kc: this is an ISA board not a PCI board

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-25. Reposting to new driverdev-devel list.] On 2013-06-25 01:07, H Hartley Sweeten wrote: The Intelligent Instrumentation PCI-20001C board is a legacy PC/XT/AT 8-bit ISA board not a PCI board. The "PCI" appears to mean "Personal Computer Instrumentation". Move the K

Re: [PATCH 00/21] staging: comedi: pcmuio: clean up driver

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-20. Reposting to new driverdev-devel list.] On 2013-06-20 10:44, Ian Abbott wrote: On 2013/06/19 09:43 PM, H Hartley Sweeten wrote: On Wednesday, June 19, 2013 10:28 AM, Ian Abbott wrote: On 2013-06-19 17:22, H Hartley Sweeten wrote: On Wednesday, June 19, 2013 9:0

Re: [PATCH] staging: comedi: have comedi_set_spriv() allocate the memory

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-21. Reposting to new driverdev-devel list.] On 2013-06-20 18:07, H Hartley Sweeten wrote: On Thursday, June 20, 2013 2:50 AM, Ian Abbott wrote: On 2013/06/19 11:24 PM, H Hartley Sweeten wrote: As suggested by Ian Abbott, comedi_set_spriv() can only be used to set th

Re: [PATCH] staging: comedi: have comedi_set_spriv() allocate the memory

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-20. Reposting to new driverdev-devel list.] On 2013/06/19 11:24 PM, H Hartley Sweeten wrote: As suggested by Ian Abbott, comedi_set_spriv() can only be used to set the subdevice->private pointer to something that can be kfree()'d. Rename the function to comedi_alloc_s

Re: [PATCH 00/21] staging: comedi: pcmuio: clean up driver

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-20. Reposting to new driverdev-devel list.] On 2013/06/19 09:43 PM, H Hartley Sweeten wrote: On Wednesday, June 19, 2013 10:28 AM, Ian Abbott wrote: On 2013-06-19 17:22, H Hartley Sweeten wrote: On Wednesday, June 19, 2013 9:09 AM, Ian Abbott wrote: On 2013-06-18 2

Re: [PATCH 00/21] staging: comedi: pcmuio: clean up driver

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-19. Reposting to new driverdev-devel list.] On 2013-06-19 17:22, H Hartley Sweeten wrote: On Wednesday, June 19, 2013 9:09 AM, Ian Abbott wrote: On 2013-06-18 21:20, H Hartley Sweeten wrote: Clean up and simplify this legacy driver. The async command support (inter

Re: [PATCH 04/21] staging: comedi: pcmuio: introduce pcmuio_write()

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-19. Reposting to new driverdev-devel list.] On 2013-06-19 14:47, Ian Abbott wrote: On 2013-06-18 21:21, H Hartley Sweeten wrote: Introduce a helper function to handle writing a 24-bit value to the three 8-bit registers associated with a "port" or "page". Signed-off-

Re: [PATCH 00/21] staging: comedi: pcmuio: clean up driver

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-19. Reposting to new driverdev-devel list.] On 2013-06-18 21:20, H Hartley Sweeten wrote: Clean up and simplify this legacy driver. The async command support (interrupts) still needs a bit of work. The command support is a bit goofy and does not really follow the com

Re: [PATCH 0/6] staging: comedi: addi-data: cleanup "common" code

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-19. Reposting to new driverdev-devel list.] On 2013-06-18 20:13, H Hartley Sweeten wrote: Due to the cleanup of the add-data drivers some of the "common" code is no longer needed. Tidy it up a bit. H Hartley Sweeten (6): staging: comedi: addi-data: remove unused v

Re: [PATCH 11/21] staging: comedi: pcmuio: simplify 'n_subdevs' and 's->n_chan'

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-19. Reposting to new driverdev-devel list.] On 2013-06-19 16:10, Ian Abbott wrote: On 2013-06-18 21:23, H Hartley Sweeten wrote: The number of subdevices needed by the driver is based on the 'num_asics' reported by the boardinfo and each subdevice always has 24 chann

Re: [PATCH 11/21] staging: comedi: pcmuio: simplify 'n_subdevs' and 's->n_chan'

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-19. Reposting to new driverdev-devel list.] On 2013-06-18 21:23, H Hartley Sweeten wrote: The number of subdevices needed by the driver is based on the 'num_asics' reported by the boardinfo and each subdevice always has 24 channels. Simplify the attach a bit. We cou

Re: [PATCH 14/21] staging: comedi: pcmuio: simplify interrupt subdevice init

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-19. Reposting to new driverdev-devel list.] On 2013-06-18 21:24, H Hartley Sweeten wrote: Only subdevices 0 and 2 support interrupts. Simplify the attach a bit. Again, could define SUBDEVS_PER_ASIC as 2. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Greg K

Re: [PATCH 04/21] staging: comedi: pcmuio: introduce pcmuio_write()

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-19. Reposting to new driverdev-devel list.] On 2013-06-18 21:21, H Hartley Sweeten wrote: Introduce a helper function to handle writing a 24-bit value to the three 8-bit registers associated with a "port" or "page". Signed-off-by: H Hartley Sweeten Cc: Ian Abbott C

Re: [PATCH 00/53] staging: comedi: addi_apci_3xxx: cleanup driver

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-17. Reposting to new driverdev-devel list.] On 2013-06-13 00:03, H Hartley Sweeten wrote: Separate this driver from the addi-data "common" code so the bloat can be removed. Cleanup all the subdevice support functions and fix the analog input subdevice so it works cor

Re: [PATCH v3] staging: comedi: drivers: let core handle freeing s->private

2013-06-27 Thread Ian Abbott
[Originally posted 2013-06-13. Reposting to new driverdev-devel list.] On 2013-06-11 19:32, H Hartley Sweeten wrote: Introduce a new subdevice runflags, SRF_FREE_SPRIV, and a new helper function, comedi_set_spriv(), that the drivers can use to set the comedi_subdevice private data pointer. The

RE: [PATCH 3/3] tools: hv: Check return value of poll call

2013-06-27 Thread KY Srinivasan
> -Original Message- > From: Tomas Hozza [mailto:tho...@redhat.com] > Sent: Thursday, June 27, 2013 7:53 AM > To: gre...@linuxfoundation.org > Cc: jasow...@redhat.com; de...@linuxdriverproject.org; KY Srinivasan; Haiyang > Zhang; Tomas Hozza > Subject: [PATCH 3/3] tools: hv: Check return

RE: [PATCH 2/3] tools: hv: Check return value of setsockopt call

2013-06-27 Thread KY Srinivasan
> -Original Message- > From: Tomas Hozza [mailto:tho...@redhat.com] > Sent: Thursday, June 27, 2013 7:53 AM > To: gre...@linuxfoundation.org > Cc: jasow...@redhat.com; de...@linuxdriverproject.org; KY Srinivasan; Haiyang > Zhang; Tomas Hozza > Subject: [PATCH 2/3] tools: hv: Check return

RE: [PATCH 1/3] tools: hv: Improve error logging in VSS daemon.

2013-06-27 Thread KY Srinivasan
> -Original Message- > From: Tomas Hozza [mailto:tho...@redhat.com] > Sent: Thursday, June 27, 2013 7:53 AM > To: gre...@linuxfoundation.org > Cc: jasow...@redhat.com; de...@linuxdriverproject.org; KY Srinivasan; Haiyang > Zhang; Tomas Hozza > Subject: [PATCH 1/3] tools: hv: Improve error

Re: [PATCH 3/3] tools: hv: Check return value of poll call

2013-06-27 Thread Tomas Hozza
- Original Message - > On Thu, Jun 27, 2013 at 5:22 PM, Tomas Hozza wrote: > > Check return value of poll call and if it fails print error to the > > system log. If errno is EINVAL then exit with non-zero value otherwise > > continue the while loop and call poll again. > > > > Signed-off-b

Re: [PATCH 3/3] tools: hv: Check return value of poll call

2013-06-27 Thread Santosh Y
On Thu, Jun 27, 2013 at 5:22 PM, Tomas Hozza wrote: > Check return value of poll call and if it fails print error to the > system log. If errno is EINVAL then exit with non-zero value otherwise > continue the while loop and call poll again. > > Signed-off-by: Tomas Hozza > --- > tools/hv/hv_vss_

[PATCH 3/3] tools: hv: Check return value of poll call

2013-06-27 Thread Tomas Hozza
Check return value of poll call and if it fails print error to the system log. If errno is EINVAL then exit with non-zero value otherwise continue the while loop and call poll again. Signed-off-by: Tomas Hozza --- tools/hv/hv_vss_daemon.c | 11 ++- 1 file changed, 10 insertions(+), 1 del

[PATCH 2/3] tools: hv: Check return value of setsockopt call

2013-06-27 Thread Tomas Hozza
Check return value of setsockopt call and if it fails print error to the system log and exit with non-zero value. Signed-off-by: Tomas Hozza --- tools/hv/hv_vss_daemon.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c i

[PATCH 1/3] tools: hv: Improve error logging in VSS daemon.

2013-06-27 Thread Tomas Hozza
Use errno and strerror() when logging errors to provide more information. Signed-off-by: Tomas Hozza --- tools/hv/hv_vss_daemon.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c index fea03a3..64112e1 100644 --- a

RE: [PATCH 3/5] Drivers: scsi: storvsc: Implement multi-channel support

2013-06-27 Thread KY Srinivasan
> -Original Message- > From: James Bottomley [mailto:jbottom...@parallels.com] > Sent: Wednesday, June 26, 2013 11:22 PM > To: KY Srinivasan > Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; oher...@suse.com; h...@infradead.org; linux- > s...@