RE: staging tree closed for 3.7

2012-09-26 Thread H Hartley Sweeten
On Wednesday, September 26, 2012 10:57 AM, Greg Kroah-Hartman wrote: On Wed, Sep 26, 2012 at 10:56:06AM -0700, Greg Kroah-Hartman wrote: With 3.6 about to be released, I've now closed the 3.7 staging-next tree for new features / cleanups. It's bug-fixes only now until 3.7-rc1 is out. Oh,

RE: staging tree closed for 3.7

2012-09-26 Thread H Hartley Sweeten
On Wednesday, September 26, 2012 1:05 PM, Greg Kroah-Hartman wrote: On Wed, Sep 26, 2012 at 01:47:11PM -0500, H Hartley Sweeten wrote: On Wednesday, September 26, 2012 10:57 AM, Greg Kroah-Hartman wrote: On Wed, Sep 26, 2012 at 10:56:06AM -0700, Greg Kroah-Hartman wrote: With 3.6 about

Q: Kconfig option VIRT_TO_BUS

2012-11-12 Thread H Hartley Sweeten
Hello all, Does anyone know what the Kconfig option VIRT_TO_BUS does? There are a number of depends on that option but it does not seem to directly enable any code in the kernel. Thanks for any reply. Regards, Hartley -- To unsubscribe from this list: send the line unsubscribe linux-kernel in

RE: Q: Kconfig option VIRT_TO_BUS

2012-11-12 Thread H Hartley Sweeten
On Monday, November 12, 2012 11:41 AM, Bjorn Helgaas wrote: On Mon, Nov 12, 2012 at 9:18 AM, H Hartley Sweeten wrote: Does anyone know what the Kconfig option VIRT_TO_BUS does? There are a number of depends on that option but it does not seem to directly enable any code in the kernel

[PATCH 0/2] staging: comedi: remove the devpriv and thisboard macros

2012-07-12 Thread H Hartley Sweeten
in Chapter 12: 2) macros that depend on having a local variable with a magic name: #define FOO(val) bar(index, val) might look like a good thing, but it's confusing as hell when one reads the code and it's prone to breakage from seemingly innocent changes. H Hartley Sweeten (2): staging: comedi

[PATCH 1/2] staging: comedi: dt282x: remove the outw wrapper macros

2012-07-12 Thread H Hartley Sweeten
The macros 'update_dacsr', 'update_adcsr', and 'update_supcsr' all use the 'devpriv' macro which uses a local variable of a specific name and yeilds a pointer derived from that name. They are also just wrappers around simple 'outw' calls. Remove the macros. Signed-off-by: H Hartley Sweeten hswee

[PATCH] staging: comedi: addi_data: remove pr_TTLRangelist

2012-07-13 Thread H Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- .../staging/comedi/drivers/addi-data/addi_common.c | 23 -- .../staging/comedi/drivers/addi-data/addi_common.h | 1 - .../comedi/drivers/addi-data

RE: [PATCH 01/30] staging: comedi: add pci_dev pointer to comedi_device

2012-07-16 Thread H Hartley Sweeten
On Monday, July 16, 2012 6:52 PM, Greg KH wrote: On Wed, Jul 11, 2012 at 02:49:14PM -0700, H Hartley Sweeten wrote: The pci_dev pointer in the private driver data is used by every comedi pci driver. Some of them only have the need for the private data because of this pointer. Introduce

RE: [PATCH 2/2] staging: comedi: remove the devpriv and thisboard macros

2012-07-16 Thread H Hartley Sweeten
On Monday, July 16, 2012 7:09 PM, Greg KH wrote: Because I didn't take your other large patch series, this one didn't apply :( Of course... ;-) Looking at using the hw_dev right now. I should have something tomorrow. Thanks. Hartley -- To unsubscribe from this list: send the line unsubscribe

RE: [PATCH 01/30] staging: comedi: add pci_dev pointer to comedi_device

2012-07-16 Thread H Hartley Sweeten
On Monday, July 16, 2012 7:01 PM, Greg KH wrote: On Mon, Jul 16, 2012 at 08:55:47PM -0500, H Hartley Sweeten wrote: On Monday, July 16, 2012 6:52 PM, Greg KH wrote: No, the field above this, hw_dev, should be used instead here, as that's what it is there for, right? The hw_dev pointer

[PATCH] staging: comedi: adl_pci6208: use the comedi_device hw_dev to hold the pci_dev

2012-07-16 Thread H Hartley Sweeten
Use the 'struct device *hw_dev' variable in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers

RE: [PATCH] staging: comedi: adl_pci6208: use the comedi_device hw_dev to hold the pci_dev

2012-07-16 Thread H Hartley Sweeten
On Monday, July 16, 2012 7:31 PM, Greg KH wrote: On Mon, Jul 16, 2012 at 07:26:22PM -0700, H Hartley Sweeten wrote: Use the 'struct device *hw_dev' variable in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee

[PATCH 00/90] staging: comedi: cleanup the pci_dev usage

2012-07-18 Thread H Hartley Sweeten
additional work before they can be converted cleanly. H Hartley Sweeten (90): staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper staging: comedi: adl_pci6208: store the pci_dev in the comedi_device staging: comedi: adl_pci7230: store the pci_dev in the comedi_device staging: comedi

[PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-18 Thread H Hartley Sweeten
Introduce a wrapper for to_pci_dev() to allow the comedi pci drivers to store the pci_dev pointer in the comedi_device hw_dev variable and retrieve it easily. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 03/90] staging: comedi: adl_pci7230: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 04/90] staging: comedi: adl_pci7230: remove the private data

2012-07-18 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove the struct, devpriv macro, and the allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 02/90] staging: comedi: adl_pci6208: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 05/90] staging: comedi: adl_pci7296: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 06/90] staging: comedi: adl_pci7296: remove the private data

2012-07-18 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove the struct, devpriv macro, and the allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 07/90] staging: comedi: adl_pci7432: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 08/90] staging: comedi: adl_pci7432: remove the private data

2012-07-18 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove the struct, devpriv macro, and the allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 09/90] staging: comedi: adl_pci8164: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 10/90] staging: comedi: adl_pci8164: remove the private data

2012-07-18 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove the struct, devpriv macro, and the allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 11/90] staging: comedi: adl_pci9111: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 12/90] staging: comedi: adl_pci9118: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 13/90] staging: comedi: adv_pci1723: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adv_pci1723.c | 42 +--- 1 file

[PATCH 14/90] staging: comedi: adv_pci1723: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Use for_each_pci_dev() instead of open-coding the loop using pci_get_device(). Drop the printk error messages. They just add noise. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers

[PATCH 15/90] staging: comedi: adv_pci1723: move comedi_pci_enable() into the attach

2012-07-18 Thread H Hartley Sweeten
Use pci_is_enabled() in the find pci device function to determine if the found pci device is not in use and move the comedi_pci_enable() call into the attach. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 16/90] staging: comedi: adv_pci1723: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 17/90] staging: comedi: adv_pci1710: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adv_pci1710.c | 42 ++-- 1 file

[PATCH 19/90] staging: comedi: adv_pci1710: move comedi_pci_enable() into the attach

2012-07-18 Thread H Hartley Sweeten
Use pci_is_enabled() in the find pci device function to determine if the found pci device is not in use and move the comedi_pci_enable() call into the attach. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 20/90] staging: comedi: adv_pci1710: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 21/90] staging: comedi: adv_pci_dio: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/adv_pci_dio.c | 48 +--- 1 file

[PATCH 22/90] staging: comedi: adv_pci_dio: remove CheckAndAllocCard()

2012-07-18 Thread H Hartley Sweeten
This driver creates a linked list of all the pci devices in the system while it's looking for a match. It's only use is to determine if a device is free to use. The pci_is_enabled() helper can give us the same information. Use that instead and remove the linked list. Signed-off-by: H Hartley

[PATCH 23/90] staging: comedi: adv_pci_dio: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Add a couple local variables to make the tests more concise. Reorder the tests to make the for() loop checking for a matching boardtype quicker. Drop the dev_dbg message for a match. It's just add noise. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo

[PATCH 24/90] staging: comedi: adv_pci_dio: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 25/90] staging: comedi: cb_pcidas: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 26/90] staging: comedi: cb_pcidio: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidio.c | 54 ++ 1 file

[PATCH 27/90] staging: comedi: cb_pcidio: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Add a couple local variables to make the tests more concise. Reorder the tests to make the for() loop checking for a matching boardtype quicker. Drop the dev_dbg for a match. It's just add noise. Reword the dev_err when no match is found. Signed-off-by: H Hartley Sweeten hswee

[PATCH 28/90] staging: comedi: cb_pcidio: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 29/90] staging: comedi: amplc_dio200: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/amplc_dio200.c | 42 ++- 1 file changed, 15 insertions(+), 27 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 30/90] staging: comedi: amplc_dio200: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
device otherwise it's an ISA device. Using IS_ENABLED() to omit the code paths makes the code a bit confusing and doesn't save much. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 31/90] staging: comedi: amplc_pc236: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/amplc_pc236.c | 43 +++- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 32/90] staging: comedi: amplc_pc236: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
device otherwise it's an ISA device. Using IS_ENABLED() to omit the code paths makes the code a bit confusing and doesn't save much. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging

[PATCH 33/90] staging: comedi: amplc_pc263: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/amplc_pc263.c | 42 +++- 1 file changed, 16 insertions(+), 26 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 34/90] staging: comedi: amplc_pc263: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
device otherwise it's an ISA device. Using IS_ENABLED() to omit the code paths makes the code a bit confusing and doesn't save much. Since the pci_dev was the only thing in the private data, remove the struct, and it's allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian

[PATCH 35/90] staging: comedi: amplc_pci224: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/amplc_pci224.c | 43 ++- 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/drivers/staging/comedi

[PATCH 37/90] staging: comedi: amplc_pci230: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
For aesthetic reasons, rename the function and pass the comedi_devconfig struct instead of pre-parsing out the bus/slot information. Consolidate the dev_err messages when a pci device is not found. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc

[PATCH 38/90] staging: comedi: amplc_pci230: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 39/90] staging: comedi: cb_pcidas64: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidas64.c | 57 ++-- 1 file

[PATCH 40/90] staging: comedi: cb_pcidas64: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Add a couple local variables to make the tests more concise. Reorder the tests to make the for() loop checking for a matching boardtype quicker. Drop the dev_dbg for a match. It's just add noise. Reword the dev_err when no match is found. Signed-off-by: H Hartley Sweeten hswee

[PATCH 41/90] staging: comedi: cb_pcidas64: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Save the pci bar in dev-iobase so the detach is consistent with the other comedi pci drivers. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo

[PATCH 42/90] staging: comedi: cb_pcidda: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidda.c | 60 -- 1 file

[PATCH 43/90] staging: comedi: cb_pcidda: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Add a couple local variables to make the tests more concise. Reorder the tests to make the for() loop checking for a matching boardtype quicker. Drop the dev_dbg for a match. It's just add noise. Reword the dev_err when no match is found. Signed-off-by: H Hartley Sweeten hswee

[PATCH 44/90] staging: comedi: cb_pcidda: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Save the pci bar in dev-iobase so the detach is consistent with the other comedi pci drivers. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo

[PATCH 45/90] staging: comedi: cb_pcidio: store the iobase in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Save the pci bar in dev-iobase instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcidio.c | 11 --- 1 file

[PATCH 46/90] staging: comedi: cb_pcidio: remove the private data

2012-07-18 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove the struct, devpriv macro, and the allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 47/90] staging: comedi: cb_pcimdas: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcimdas.c | 61 +++-- 1 file

[PATCH 48/90] staging: comedi: cb_pcimdas: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
the dev_err when no match is found. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcimdas.c | 38 - 1 file changed, 15 insertions(+), 23

[PATCH 49/90] staging: comedi: cb_pcimdas: remove the debug print of the pci bars

2012-07-18 Thread H Hartley Sweeten
Remove the dev_dbg output of the pci addresses. It's just add noise. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcimdas.c | 6 -- 1 file changed, 6

[PATCH 50/90] staging: comedi: cb_pcimdas: cleanup the private data

2012-07-18 Thread H Hartley Sweeten
Remove the unused variables from the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcimdas.c | 9 - 1 file changed, 9 deletions(-) diff

[PATCH 51/90] staging: comedi: cb_pcimdas: remove BADR1 from the private data

2012-07-18 Thread H Hartley Sweeten
The pci resource bar 1 address is not used in the driver. Remove it from the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/cb_pcimdas.c | 3 --- 1

[PATCH 52/90] staging: comedi: cb_pcimdas: remove BADR4 from the private data

2012-07-18 Thread H Hartley Sweeten
The pci resource bar 4 address is only needed to initialize the 8255 subdevice. Use a local variable to hold it and remove it from the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org

[PATCH 53/90] staging: comedi: cb_pcimdas: remove BADR2 from the private data

2012-07-18 Thread H Hartley Sweeten
The pci resource bar 2 address is the primary i/o address used by this device. Store it in dev-iobase and remove it from the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers

[PATCH 54/90] staging: comedi: cb_pcimdas: remove BADR0 from the private data

2012-07-18 Thread H Hartley Sweeten
The pci resource bar 0 address is only used as a flag to let the datach function know that the pci device has been enabled. Use dev-iobase in the detach instead and remove BADR0 from the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk

[PATCH 55/90] staging: comedi: cb_pcimdas: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 56/90] staging: comedi: contec_pci_dio: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/contec_pci_dio.c | 92 ++--- 1 file

[PATCH 57/90] staging: comedi: contec_pci_dio: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Add a couple local variables and reorder the tests to make to make the more concise. Change the printk to a dev_err when no match is found and reword the message. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 58/90] staging: comedi: contec_pci_dio: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 59/90] staging: comedi: contec_pci_dio: remove the private data

2012-07-18 Thread H Hartley Sweeten
The private data is no longer needed by this driver. Remove the struct, devpriv macro, and the allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 60/90] staging: comedi: daqboard2000: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/daqboard2000.c | 68 +++ 1 file

[PATCH 61/90] staging: comedi: daqboard2000: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
the dev_err messages when a device is not found into a single message. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/daqboard2000.c | 56 ++- 1 file

[PATCH 62/90] staging: comedi: daqboard2000: remove 'got_regions' from private data

2012-07-18 Thread H Hartley Sweeten
The 'got_regions' variable in the private data is used as a flag for the detach to know if the pci device has been enabled. Typically the dev-iobase variable is used to indicate this in all the other comedi drivers. Do the same here for consistancy. Signed-off-by: H Hartley Sweeten hswee

[PATCH 63/90] staging: comedi: daqboard2000: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 64/90] staging: comedi: daqboard2000: void *plx should be a void __iomem *

2012-07-18 Thread H Hartley Sweeten
The private data variable 'plx' is an ioremap'ed pci resource and should be a void __iomem *. This quiets a number of sparse warnings about different address spaces. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre

[PATCH 65/90] staging: comedi: dt3000: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
The find pci device code for this driver was split between two functions which could cause the driver to walk the pci bus multiple times while looking for a match. Consolidate the functions into the format that is more standard for the comedi pci drivers. Signed-off-by: H Hartley Sweeten hswee

[PATCH 66/90] staging: comedi: dt3000: move the setup_pci() code into the attach

2012-07-18 Thread H Hartley Sweeten
The setup_pci() function simply calls comedi_pci_enable() to enable the device then ioremaps the pci address. Move the code directly into the attach function as is more typical for the comedi pci drivers. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo

[PATCH 67/90] staging: comedi: dt3000: remove 'phys_addr' from the private data

2012-07-18 Thread H Hartley Sweeten
The 'phys_addr' variable in the private data is simply used as a flag for the detach function to know that the pci device has been enabled. Use the 'dev-iobase' variable instead as is more typical for other comedi pci drivers. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian

[PATCH 68/90] staging: comedi: dt3000: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 71/90] staging: comedi: dyna_pci10xx: remove the 'start_stop_sem' mutex

2012-07-18 Thread H Hartley Sweeten
The comedi core already has a mutex protecting the attach/detach of the comedi drivers. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 15

[PATCH 72/90] staging: comedi: dyna_pci10xx: remove 'valid' from the private data

2012-07-18 Thread H Hartley Sweeten
This variable is set at the end of the attach but never used in the driver. Remove it. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/dyna_pci10xx.c | 3 --- 1

[PATCH 73/90] staging: comedi: dyna_pci10xx: remove unused bars from the private data

2012-07-18 Thread H Hartley Sweeten
All of the pci device base address registers are saved in the private data but only bar2 and bar3 are used by the driver. Remove the others. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org

[PATCH 74/90] staging: comedi: dyna_pci10xx: use dev-iobase

2012-07-18 Thread H Hartley Sweeten
Use dev-iobase to hold one of the pci base addresses used by the driver instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 75/90] staging: comedi: dyna_pci10xx: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 76/90] staging: comedi: dyna_pci10xx: fix detach

2012-07-18 Thread H Hartley Sweeten
The detach for this driver is missing the check to make sure that the pci device is enabled before disabling it. It's also missing the pci_dev_put(). Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org

[PATCH 77/90] staging: comedi: ke_counter: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ke_counter.c | 37 - 1 file

[PATCH 78/90] staging: comedi: ke_counter: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Cleanup the find pci device code so that it follows the style of the other comedi pci drivers. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ke_counter.c | 60

[PATCH 79/90] staging: comedi: ke_counter: minor cleanup of cnt_attach()

2012-07-18 Thread H Hartley Sweeten
Cleanup the attach function a bit to follow the style of the other comedi pci drivers. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ke_counter.c | 16

[PATCH 80/90] staging: comedi: ke_counter: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Since the pci_dev was the only thing in the private data, remove the struct, the devpriv macro, and it's allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc

[PATCH 81/90] staging: comedi: ke_counter: remove the cnt_board_nbr macro

2012-07-18 Thread H Hartley Sweeten
This macro is an open-coded version of ARRAY_SIZE(). Use that instead. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/ke_counter.c | 4 +--- 1 file changed, 1

[PATCH 82/90] staging: comedi: me_daq: factor out the find pci device code

2012-07-18 Thread H Hartley Sweeten
Factor the find pci device code out of the attach function. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/me_daq.c | 49 - 1 file

[PATCH 83/90] staging: comedi: me_daq: cleanup find pci device code

2012-07-18 Thread H Hartley Sweeten
Cleanup the find pci device code so that it follows the style of the other comedi pci drivers. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/me_daq.c | 63

[PATCH 84/90] staging: comedi: me_daq: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Since the pci_dev was the only thing in the private data, remove the struct, the devpriv macro, and it's allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc

[PATCH 85/90] staging: comedi: rtd520: remove the debug print of the pci addresses

2012-07-18 Thread H Hartley Sweeten
This is just noise. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/rtd520.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/comedi/drivers

[PATCH 86/90] staging: comedi: rtd520: remove 'got_regions' from private data

2012-07-18 Thread H Hartley Sweeten
The 'got_regions' variable in the private data is used as a flag for the detach to know if the pci device has been enabled. Typically the dev-iobase variable is used to indicate this in all the other comedi drivers. Do the same here for consistancy. Signed-off-by: H Hartley Sweeten hswee

[PATCH 87/90] staging: comedi: rtd520: remove the '#if 0' code in the attach

2012-07-18 Thread H Hartley Sweeten
This driver has code #if 0'ed out that would allow cleaning up the attach if there was an error. The comedi core currently calls the detach function to do this if the attach fails. Remove the #if 0'ed out code. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo

[PATCH 88/90] staging: comedi: rtd520: store the pci_dev in the comedi_device

2012-07-18 Thread H Hartley Sweeten
Use the hw_dev pointer in the comedi_device struct to hold the pci_dev instead of carrying it in the private data. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers

[PATCH 89/90] staging: comedi: aio_iiro_16: remove the private data

2012-07-18 Thread H Hartley Sweeten
The private data is not used by this driver. Remove the struct, devpriv macro, and the allocation. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/staging/comedi/drivers/aio_iiro_16.c

[PATCH 90/90] staging: comedi: s526: remove unused variables in the private data

2012-07-18 Thread H Hartley Sweeten
The 'data' and 'pci_dev' variables in the private data are not used. They appear to be cut-and-paste from the skel driver. Remove them. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers

RE: [PATCH 01/90] staging: comedi: comedidev.h: introduce comedi_to_pci_dev() helper

2012-07-19 Thread H Hartley Sweeten
On Thursday, July 19, 2012 2:23 AM, Ian Abbott wrote: On 2012-07-19 02:24, H Hartley Sweeten wrote: Introduce a wrapper for to_pci_dev() to allow the comedi pci drivers to store the pci_dev pointer in the comedi_device hw_dev variable and retrieve it easily. Signed-off-by: H Hartley Sweeten

  1   2   3   4   5   6   7   8   9   10   >