RE: [PATCH] pwm: add ep93xx PWM support

2013-10-15 Thread Hartley Sweeten
On Tuesday, October 15, 2013 3:40 AM, Thierry Reding wrote: On Mon, Oct 14, 2013 at 02:57:48PM -0700, H Hartley Sweeten wrote: Remove the non-standard EP93xx pwm driver in drivers/misc and add pwm - PWM OK a new driver for the PWM chips on the EP93xx platforms based on the PWM framework

RE: staging: comedi: drivers: use comedi_dio_update_state() for complex cases

2013-11-26 Thread Hartley Sweeten
: 97f4289ad08cffe55de06d4ac4f89ac540450aee Author: H Hartley Sweeten hswee...@visionengravers.com AuthorDate: Fri Aug 30 11:06:17 2013 -0700 Committer: Greg Kroah-Hartman gre...@linuxfoundation.org CommitDate: Tue Sep 17 07:47:40 2013 -0700 staging: comedi: drivers: use comedi_dio_update_state

RE: staging: comedi: Fix boolean/logical and mix-up.

2013-11-27 Thread Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: staging: comedi: Fix boolean/logical and mix-up.

2013-11-27 Thread Hartley Sweeten
On Wednesday, November 27, 2013 9:39 AM, Hartley Sweeten wrote: On Tuesday, November 26, 2013 7:57 PM, Dave Jones wrote: Introduced in commit b3ff824a81e8. Signed-off-by: Dave Jones da...@fedoraproject.org diff --git a/drivers/staging/comedi/drivers/pcl730.c b/drivers/staging/comedi

RE: [PATCH] ARM: ep93xx: remove deprecated IRQF_DISABLED

2013-10-14 Thread Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com Thanks -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH] usb: ohci: remove ep93xx bus glue platform driver

2013-10-14 Thread Hartley Sweeten
On Monday, October 14, 2013 3:01 PM, Ryan Mallon wrote: On 15/10/13 08:35, H Hartley Sweeten wrote: Convert ep93xx to use the OHCI platform driver and remove the ohci-ep93xx bus glue driver. Signed-off-by: H Hartley Sweeten hswee...@visionengravers.com Cc: Alan Stern st

RE: [PATCH] usb: ohci: remove ep93xx bus glue platform driver

2013-10-15 Thread Hartley Sweeten
On Tuesday, October 15, 2013 8:50 AM, Olof Johansson wrote: On Mon, Oct 14, 2013 at 2:35 PM, H Hartley Sweeten hartl...@visionengravers.com wrote: Convert ep93xx to use the OHCI platform driver and remove the ohci-ep93xx bus glue driver. Signed-off-by: H Hartley Sweeten hswee

RE: [PATCH 1/2] Staging: comedi: introduce outl_1564_* and inl_1564_* helper functions in hwdrv_apci1564.c

2014-03-03 Thread Hartley Sweeten
On Saturday, March 01, 2014 3:28 AM, Chase Southwood wrote: Subject: [PATCH 1/2] Staging: comedi: introduce outl_1564_* and inl_1564_* helper functions in hwdrv_apci1564.c This patch introduces a handful of outl and inl helper functions with the ultimate goal of improving code readability

RE: [PATCH v2 1/2] Staging: comedi: range: tidy up comedi_check_chanlist()

2014-03-06 Thread Hartley Sweeten
On Wednesday, March 05, 2014 11:57 PM, Fred Akers wrote: Refactor this function to remove an extra indent level Signed-off-by: Fred Akers kni...@botops.net Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com Thanks -- To unsubscribe from this list: send the line unsubscribe linux

RE: [PATCH v2 2/2] Staging: comedi: range: remove unnecessary sanity check

2014-03-06 Thread Hartley Sweeten
Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com Thanks -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org

RE: [PATCH 1/5] Staging: comedi: addi-data: tidy up digital input register map defines in hwdrv_apci1564.c

2014-03-06 Thread Hartley Sweeten
On Thursday, March 06, 2014 12:25 AM, Chase Southwood wrote: This patch for hwdrv_apci1564.c fixes the register map defines for the digital input registers such that they are all the real offsets to each register, rather than a mix of real offsets and adders to those offsets. Additionally, the

RE: [PATCH 2/5] Staging: comedi: addi-data: tidy up digital output register map defines in hwdrv_apci1564.c

2014-03-06 Thread Hartley Sweeten
On Thursday, March 06, 2014 12:26 AM, Chase Southwood wrote: This patch for hwdrv_apci1564.c fixes the register map defines for the digital output registers such that they are all the real offsets to each register, rather than a mix of real offsets and adders to those offsets. Additionally,

RE: [PATCH 3/5] Staging: comedi: addi-data: tidy up watchdog register map defines in hwdrv_apci1564.c

2014-03-06 Thread Hartley Sweeten
On Thursday, March 06, 2014 12:26 AM, Chase Southwood wrote: This patch for hwdrv_apci1564.c fixes the register map defines for the watchdog registers such that they are all the real offsets to each register, rather than a mix of real offsets and adders to those offsets. Additionally, the

RE: [PATCH 4/5] Staging: comedi: addi-data: tidy up timer register map defines in hwdrv_apci1564.c

2014-03-06 Thread Hartley Sweeten
On Thursday, March 06, 2014 12:26 AM, Chase Southwood wrote: This patch for hwdrv_apci1564.c fixes the register map defines for the timer registers such that they are all the real offsets to each register, rather than a mix of real offsets and adders to those offsets. Additionally, the defines

RE: [PATCH 5/5] Staging: comedi: addi-data: tidy up counter register map defines in hwdrv_apci1564.c

2014-03-06 Thread Hartley Sweeten
On Thursday, March 06, 2014 12:26 AM, Chase Southwood wrote: This patch for hwdrv_apci1564.c fixes the register map defines for the digital input registers such that they are all the real offsets to each register, rather than a mix of real offsets and adders to those offsets. Signed-off-by:

RE: [PATCH 5/5] Staging: comedi: addi-data: tidy up counter register map defines in hwdrv_apci1564.c

2014-03-07 Thread Hartley Sweeten
On Friday, March 07, 2014 1:32 AM, Chase Southwood wrote: On Thursday, March 6, 2014 11:59 AM, Hartley Sweeten hartl...@visionengravers.com wrote: This one is incomplete and breaks the build. Be sure to do a build after each patch to make sure it works. Hartley, I'm sorry

RE: [PATCH v2 5/5] Staging: comedi: addi-data: tidy up counter register map defines in hwdrv_apci1564.c

2014-03-07 Thread Hartley Sweeten
On Friday, March 07, 2014 1:38 AM, Chase Southwood wrote: This patch fixes the register map defines for the counter registers such that they are all the real offsets to each register, rather than a mix of real offsets and adders to those offsets. Signed-off-by: Chase Southwood

RE: [PATCH v3 1/5] Staging: comedi: addi-data: tidy up digital input register map defines in hwdrv_apci1564.c

2014-03-07 Thread Hartley Sweeten
being used incorrectly in the i_APCI1564_Reset() function. Upon swapping the old defines out for the new ones in this function, their use has been corrected. Signed-off-by: Chase Southwood chase.southw...@yahoo.com --- Much better, thanks! For the 5 patch series: Reviewed-by: H Hartley

RE: [PATCH v2] Staging: comedi: addi-data: Fix long CamelCase function names

2014-03-11 Thread Hartley Sweeten
On Tuesday, March 11, 2014 10:33 AM, Fred Akers wrote: This patch fixes a few function names that are very long and are not in the correct naming style Signed-off-by: Fred Akers kni...@botops.net --- This is v2 of [PATCH] Staging: comedi: apci_1564: Fix long CamelCase function names

RE: [PATCH v2] Staging: comedi: addi-data: Fix long CamelCase function names

2014-03-11 Thread Hartley Sweeten
On Tuesday, March 11, 2014 10:49 AM, Joe Perches wrote: On Tue, 2014-03-11 at 17:42 +, Hartley Sweeten wrote: On Tuesday, March 11, 2014 10:33 AM, Fred Akers wrote: This patch fixes a few function names that are very long and are not in the correct naming style [] diff --git a/drivers

RE: [PATCH v3 1/2] Staging: comedi: addi-data: Fix long CamelCase function names

2014-03-11 Thread Hartley Sweeten
tree and you compile tested it, for both patches: Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

RE: [PATCH v3 1/2] Staging: comedi: addi-data: Fix long CamelCase function names

2014-03-11 Thread Hartley Sweeten
On Tuesday, March 11, 2014 3:19 PM, Fred Akers wrote: This patch fixes a few function names that are very long and are not in the correct naming style Signed-off-by: Fred Akers kni...@botops.net Fred, I pulled Greg's staging tree to see if your patches apply. Patch 1/2 is ok but patch 2/2

RE: [PATCH] Staging: comedi: clean up conditional statement in addi_apci_3xxx.c

2014-02-13 Thread Hartley Sweeten
On Wednesday, February 12, 2014 8:29 PM, Chase Southwood wrote: In this if-else conditional statement, if (chan 16), but (data[0] == INSN_CONFIG_DIO_QUERY), the function does not return early, but the else-branch does not get executed either. As a result, mask would be used uninitialized in

RE: [PATCH] Staging: comedi: clean up conditional statement in addi_apci_3xxx.c

2014-02-14 Thread Hartley Sweeten
On Friday, February 14, 2014 4:50 AM, Ian Abbott wrote: On 2014-02-13 18:25, Hartley Sweeten wrote: On Wednesday, February 12, 2014 8:29 PM, Chase Southwood wrote: In this if-else conditional statement, if (chan 16), but (data[0] == INSN_CONFIG_DIO_QUERY), the function does not return early

RE: [PATCH 2/2 v4] usb: ohci: remove ep93xx bus glue platform driver

2013-10-21 Thread Hartley Sweeten
On Saturday, October 19, 2013 2:22 PM, Greg KH wrote: On Thu, Oct 17, 2013 at 01:29:11PM -0700, H Hartley Sweeten wrote: Convert ep93xx to use the OHCI platform driver and remove the ohci-ep93xx bus glue driver. Enable CONFIG_OHCI_HCD_PLATFORM in the ep93xx_defconfig so that USB is still

RE: [PATCH 2/2 v4] usb: ohci: remove ep93xx bus glue platform driver

2013-10-21 Thread Hartley Sweeten
On Saturday, October 19, 2013 2:22 PM, Greg KH wrote: On Thu, Oct 17, 2013 at 01:29:11PM -0700, H Hartley Sweeten wrote: Convert ep93xx to use the OHCI platform driver and remove the ohci-ep93xx bus glue driver. Enable CONFIG_OHCI_HCD_PLATFORM in the ep93xx_defconfig so that USB is still

RE: [PATCH 0/2] staging: comedi: addi_apci_1564: remove boardinfo

2014-05-07 Thread Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH 1/2] staging: comedi: addi_apci_1564: move apci1564_di_insn_bits() to addi_apci_1564.c

2014-05-22 Thread Hartley Sweeten
Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com Signed-off-by: Chase Southwood chase.southw...@gmail.com Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

RE: [PATCH 2/2] staging: comedi: addi_apci_1564: move apci1564_do_insn_bits() to addi_apci_1564.c

2014-05-22 Thread Hartley Sweeten
Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com Signed-off-by: Chase Southwood chase.southw...@gmail.com Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

RE: [PATCH 2/2 v2] staging: comedi: ni_daq_700: add AI range and input mode switching

2014-05-29 Thread Hartley Sweeten
. --- drivers/staging/comedi/drivers/ni_daq_700.c | 53 +++-- 1 file changed, 43 insertions(+), 10 deletions(-) Ian, I couple nitpicks on this patch but nothing big. Ignore all of these comments if you wish. Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com diff

RE: [PATCH 1/2] staging: comedi: ni_daq_700: update driver comment

2014-05-29 Thread Hartley Sweeten
analog inputs. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/ni_daq_700.c | 51 ++--- 1 file changed, 25 insertions(+), 26 deletions(-) Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send

RE: [PATCH 1/6] staging: comedi: addi_apci_1564: remove send_sig() use

2014-05-30 Thread Hartley Sweeten
the user. Remove the send_sig() usage in this driver. Signed-off-by: Chase Southwood chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com --- .../comedi/drivers/addi-data/hwdrv_apci1564.c | 23 -- 1 file

RE: [PATCH 2/6] staging: comedi: addi_apci_1564: remove use of devpriv-b_OutputMemoryStatus

2014-05-30 Thread Hartley Sweeten
...@mev.co.uk Cc: H Hartley Sweeeten hswee...@visionengravers.com --- drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c | 5 - 1 file changed, 5 deletions(-) Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux

RE: [PATCH 3/6] staging: comedi: addi_apci_1564: introduce apci1564_private struct

2014-05-30 Thread Hartley Sweeten
a private data struct specifically for addi_apci_1564 containing only the fields it will actually use. Signed-off-by: Chase Southwood chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com --- .../comedi/drivers/addi-data/hwdrv_apci1564

RE: [PATCH 4/6] staging: comedi: addi_apci_1564: add a subdevice for Change-of-State interrupt support

2014-05-30 Thread Hartley Sweeten
Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com --- drivers/staging/comedi/drivers/addi_apci_1564.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c b/drivers/staging/comedi/drivers

RE: [PATCH 5/6] staging: comedi: addi_apci_1564: hook-up the interrupt subdevice

2014-05-30 Thread Hartley Sweeten
chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com --- The structure of _much_ of this code was taken from/based on the similar code found in addi_apci_1032.c. As such, I would appreciate as much review I can get to make sure what

RE: [PATCH 6/6] staging: comedi: addi_apci_1564: cleanup v_ADDI_Interrupt()

2014-05-30 Thread Hartley Sweeten
ui_InterruptStatus_1564 to ctrl, and change the return from IRQ_RETVAL(1) to IRQ_HANDLED. We also check the device is asserting the shared interrupt line and check that interrupts have been enabled. Signed-off-by: Chase Southwood chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley

RE: [PATCH v4] Staging: comedi: convert while loop to timeout in ni_mio_common.c

2014-01-15 Thread Hartley Sweeten
On Tuesday, January 14, 2014 8:59 PM, Greg KH wrote: Sleep for at least 10, as I think that's the smallest time delay you can sleep for anyway (meaning it will be that long no matter what number you put there less than 10, depending on the hardware used of course.) A bit off topic here but I

RE: [PATCH v6] Staging: comedi: convert while loop to timeout in ni_mio_common.c

2014-01-15 Thread Hartley Sweeten
On Wednesday, January 15, 2014 10:52 AM, Chase Southwood wrote: This patch for ni_mio_common.c changes out a while loop for a timeout, which is preferred. Signed-off-by: Chase Southwood chase.southw...@yahoo.com --- 2: Changed from simple clean-up to swapping a timeout in for a while loop.

RE: [PATCH][Resend] Staging: comedi: replace printk() calls with dev_dbg() in pcmmio.c

2014-01-02 Thread Hartley Sweeten
/comedi/drivers/pcmmio.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) Hello Chase, This was already fixed, and merged into linux-next, by commit 4bb82d647dad7be06341ffdb9f07a56a387e213f Author: H Hartley Sweeten hswee...@visionengravers.com Date: Tue Nov 26 10

RE: [PATCH] comedi: Humusoft MF634 and MF624 DAQ cards driver

2014-01-02 Thread Hartley Sweeten
On Monday, December 30, 2013 6:37 PM, Rostislav Lisovy wrote: create mode 100644 drivers/staging/comedi/drivers/mf6x4.c Hello Rostislav, As pointed out by Dan Carpenter, you need to add a change log and Signed-off-by lines to this patch. Overall this looks pretty good. Comments below. diff

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

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

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

2014-04-29 Thread Hartley Sweeten
chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com --- 2: Incorrect patch title fixed. Ian and Hartley, The auto_attach() function is starting to look much better now. My next patchset will be geared towards only allocating subdevices

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

2014-04-30 Thread Hartley Sweeten
On Wednesday, April 30, 2014 12:52 AM, Chase Southwood wrote: Thanks so much, I greatly appreciate the review. I'll fix the changelog for patch 4 and send once more (as I assume that's easier for Greg). Also, I should know better about the cover letter as well...I was once told not to send

RE: [PATCH] staging/comedi: fix sparse warning: shift too big

2014-05-02 Thread Hartley Sweeten
On Friday, May 02, 2014 9:50 AM, Ian Abbott wrote: On 2014-05-02 15:57, Brilliantov Kirill Vladimirovich wrote: Signed-off-by: Brilliantov Kirill Vladimirovich brillian...@inbox.ru --- drivers/staging/comedi/drivers/ni_stc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

RE: [PATCH 0/4] staging: comedi: addi_apci_1564: Further cleanups

2014-05-05 Thread Hartley Sweeten
. Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH] staging: comedi: addi_apci_1564: separate from addi_common.c

2014-04-24 Thread Hartley Sweeten
-by: Chase Southwood chase.southw...@yahoo.com Cc: H Hartley Sweeten hswee...@visionengravers.com Cc: Ian Abbott abbo...@mev.co.uk --- Compile tested only. Looks good. Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux

RE: [PATCH 1/2] staging: comedi: addi_apci_1564: board does not have analog inputs

2014-04-25 Thread Hartley Sweeten
On Friday, April 25, 2014 1:17 AM, Chase Southwood wrote: This board does not have analog inputs. Remove the subdevice init for them. Signed-off-by: Chase Southwood chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com Looks good

RE: [PATCH 2/2] staging: comedi: addi_apci_1564: board does not have analog outputs

2014-04-25 Thread Hartley Sweeten
On Friday, April 25, 2014 1:18 AM, Chase Southwood wrote: The board supported by this driver does not have analog outputs. Remove the subdevice init for it. Signed-off-by: Chase Southwood chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee

RE: [PATCH 2/2 v4] staging: comedi: addi_apci_1564: tidy up apci1564_reset()

2014-04-23 Thread Hartley Sweeten
sure it's taken care of before I move on! Sorry, I thought I already responded to this... Looks good now. Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

RE: [PATCH 1/2] staging: comedi: addi_apci_1564: remove use of devpriv-iobase

2014-04-16 Thread Hartley Sweeten
the driver's use of the struct addi_private, so that it may eventually use a much slimmer specialized private struct instead, as the other addi_apci_* drivers do. Signed-off-by: Chase Southwood chase.southw...@yahoo.com Cc: H Hartley Sweeten hswee...@visionengravers.com --- This is a (small) first

RE: [PATCH 2/2 v2] staging: comedi: addi_apci_1564: fixup and absorb apci1564_reset()

2014-04-16 Thread Hartley Sweeten
On Tuesday, April 15, 2014 11:58 PM, Chase Southwood wrote: We can remove this function from the boardinfo and move the code from hwdrv_apci1564.c into addi_apci_1564.c since it is the only reset function used by the driver. The function was also messy and failed to reset a few registers,

RE: [PATCH 2/2 v3] staging: comedi: addi_apci_1564: fixup and absorb apci1564_reset()

2014-04-16 Thread Hartley Sweeten
On Wednesday, April 16, 2014 4:34 PM, Chase Southwood wrote: Move apci1564_reset() from hwdrv_apci1564.c to addi_apci_1564.c. The function was very messy and failed to reset a couple registers, these issues were fixed on the move. The commit message needs updated. You are no longer moving

RE: [PATCH 2/2 v3] staging: comedi: addi_apci_1564: fixup and absorb apci1564_reset()

2014-04-16 Thread Hartley Sweeten
On Wednesday, April 16, 2014 4:53 PM, Chase Southwood wrote: On Wednesday, April 16, 2014 6:36 PM, Hartley Sweeten hartl...@visionengravers.com wrote: On Wednesday, April 16, 2014 4:34 PM, Chase Southwood wrote: Move apci1564_reset() from hwdrv_apci1564.c to addi_apci_1564.c.  The function

RE: [-next] comedi I/O accessor name clashes

2014-06-20 Thread Hartley Sweeten
On Friday, June 20, 2014 4:20 AM, Geert Uytterhoeven wrote: On Fri, Jun 20, 2014 at 1:12 PM, Ian Abbott abbo...@mev.co.uk wrote: drivers/staging/comedi/drivers/ni_atmio.c:318:38: error: macro writew passed 3 arguments, but takes just 2 Thanks, but Hartley has already fixed it and Greg has

RE: checkpatch.pl false positive

2014-07-22 Thread Hartley Sweeten
On Tuesday, July 22, 2014 12:23 PM, Joe Perches wrote: On Tue, 2014-07-22 at 17:30 +, Hartley Sweeten wrote: Joe, I think this is a false positive, at least the check message appears incorrect: CHECK: No space is necessary after a cast #66: FILE: arch/arm/mach-ep93xx/include/mach

RE: [PATCH 2/2] staging: comedi: addi_apci_1564: use addi_watchdog module to init watchdog subdevice

2014-07-13 Thread Hartley Sweeten
by timer/counter/watchdog subdevices is the new order. Signed-off-by: Chase Southwood chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com --- drivers/staging/comedi/drivers/addi_apci_1564.c | 34 +++-- 1 file

RE: [PATCH 1/3] staging: comedi: amplc_dio200_common: prevent extra free_irq()

2014-07-28 Thread Hartley Sweeten
On Sunday, July 27, 2014 11:45 AM, Greg Kroah-Hartman wrote: On Fri, Jul 25, 2014 at 06:23:10PM +, Hartley Sweeten wrote: On Friday, July 25, 2014 10:07 AM, Ian Abbott wrote: `dio200_detach()` in amplc_dio200.c calls `amplc_dio200_common_detach()` in amplc_dio200_common.c, followed

RE: [PATCH 13/19] staging: comedi: amplc_pci230: remove unnecessary braces

2014-07-29 Thread Hartley Sweeten
On Tuesday, July 29, 2014 4:58 AM, Ian Abbott wrote: Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/amplc_pci230.c | 151 ++ 1 file changed, 58 insertions(+), 93 deletions(-) diff --git

RE: [PATCH 00/19] staging: comedi: amplc_pci230: tidy up a bit

2014-07-29 Thread Hartley Sweeten
deletions(-) Other than my comment about patch 13, this looks ok. Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

RE: [PATCH 13/19 v2] staging: comedi: amplc_pci230: remove unnecessary braces

2014-07-30 Thread Hartley Sweeten
On Wednesday, July 30, 2014 7:28 AM, Ian Abbott wrote: On 2014-07-30 15:09, Dan Carpenter wrote: On Wed, Jul 30, 2014 at 03:04:03PM +0100, Ian Abbott wrote: On 2014-07-30 14:41, Dan Carpenter wrote: On Wed, Jul 30, 2014 at 12:53:47PM +0100, Ian Abbott wrote: Signed-off-by: Ian Abbott

RE: [PATCH] staging: comedi: ii_pci20kc: request and ioremap memory

2014-07-31 Thread Hartley Sweeten
--- drivers/staging/comedi/drivers/ii_pci20kc.c | 32 ++--- 1 file changed, 29 insertions(+), 3 deletions(-) Thanks for fixing this! Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel

RE: [PATCH 00/18] staging: comedi: amplc_pci224: remove legacy stuff

2014-07-31 Thread Hartley Sweeten
positions. Change the range tables to include all possible ranges, regardless of jumper positions. Then there is no need to have options to control setting up the range tables and the legacy attach mechanism can be removed. Also, tidy the code up a bit. Looks good. Reviewed-by: H Hartley

RE: [PATCH 00/18] staging: comedi: amplc_pci224: remove legacy stuff

2014-07-31 Thread Hartley Sweeten
On Thursday, July 31, 2014 1:28 PM, Hartley Sweeten wrote: On Thursday, July 31, 2014 6:48 AM, Ian Abbott wrote: The amplc_pci224 driver retains a legacy attach mechanism via the `COMEDI_DEVCONFIG` ioctl and the comedi driver attach hook, but usually attaches PCI devices automatically via

RE: [PATCH 01/12] staging: comedi: amplc_pc236: reformat header comments

2014-07-25 Thread Hartley Sweeten
On Friday, July 25, 2014 2:05 AM, Ian Abbott wrote: Use preferred style for copyright and driver description comments. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers/amplc_pc236.c | 92 ++-- 1 file changed, 46 insertions(+), 46

RE: [PATCH 00/12] staging: comedi: amplc_pc236: remove legacy PCI attach and tidy up

2014-07-25 Thread Hartley Sweeten
On Friday, July 25, 2014 2:05 AM, Ian Abbott wrote: The amplc_pc236 driver supports both ISA cards (Amplicon PC36AT) and PCI cards (PCI236). I plan to split it into separate drivers with a module for common code, but let's reorganise it a bit first. The driver still supports manual

RE: [PATCH 00/12] staging: comedi: amplc_pc236: remove legacy PCI attach and tidy up

2014-07-25 Thread Hartley Sweeten
On Friday, July 25, 2014 10:37 AM, Hartley Sweeten wrote: On Friday, July 25, 2014 2:05 AM, Ian Abbott wrote: The amplc_pc236 driver supports both ISA cards (Amplicon PC36AT) and PCI cards (PCI236). I plan to split it into separate drivers with a module for common code, but let's reorganise

RE: [PATCH 0/3] staging: comedi: amplc_dio200 detach cleanups

2014-07-25 Thread Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH 1/3] staging: comedi: amplc_dio200_common: prevent extra free_irq()

2014-07-25 Thread Hartley Sweeten
On Friday, July 25, 2014 10:07 AM, Ian Abbott wrote: `dio200_detach()` in amplc_dio200.c calls `amplc_dio200_common_detach()` in amplc_dio200_common.c, followed by `comedi_legacy_detach()` in ../drivers.c. Both of those functions call `free_irq()` if `dev-irq` is non-zero. The second call

RE: [PATCH 15/18 v2] staging: comedi: amplc_pci224: put board indices in PCI driver_data

2014-08-04 Thread Hartley Sweeten
...@mev.co.uk --- v2: Use C99 syntax for amplc_pci224_pci_table[] initializer. Thanks to Hartley for finding that! Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com Thanks, Hartley -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

RE: [PATCH] staging: comedi: introduce some sample size manipulation functions

2014-10-23 Thread Hartley Sweeten
? sizeof(int) : sizeof(short); The samples are really 'unsigned' types but I guess it doesn't matter here. +} Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

RE: [PATCH] staging: comedi: fix memory leak / bad pointer freeing for chanlist

2014-10-20 Thread Hartley Sweeten
On Monday, October 20, 2014 7:11 AM, Ian Abbott wrote: As a follow-up to commit 6cab7a37f5c04 (staging: comedi: (regression) channel list must be set for COMEDI_CMD ioctl), Hartley Sweeten pointed out another couple of bugs stemming from commit 6cab7a37f5c04 (staging: comedi: comedi_fops

RE: [PATCH] staging: comedi: amplc_pci230: fix DACOUT write

2014-09-08 Thread Hartley Sweeten
On Monday, September 08, 2014 12:15 PM, Greg Kroah-Hartman wrote: On Tue, Aug 19, 2014 at 12:32:36PM +0100, Ian Abbott wrote: Commit 4f9c63fe5333b27ab23ed399830c7977f6970744 (staging: comedi: amplc_pci230: refactor iobase addresses) removed some parentheses (presumably to keep the line withing

RE: [PATCH 00/48] staging: comedi: avoid using comedi_board()

2014-09-11 Thread Hartley Sweeten
On Thursday, September 11, 2014 2:38 PM, Greg Kroah-Hartman wrote: On Thu, Sep 11, 2014 at 05:57:34PM +, Hartley Sweeten wrote: Just wanted to give you a heads up on this series and the ones I have posted. The series are: From Ian, [PATCH 00/48] staging: comedi: avoid using comedi_board

RE: [PATCH 0/3] staging: comedi: adl_pci9118: redo DMA buffer allocation

2014-09-15 Thread Hartley Sweeten
()... ;-) Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH] staging: comedi: remove comedi_board()

2014-09-15 Thread Hartley Sweeten
); }; -static inline const void *comedi_board(const struct comedi_device *dev) -{ - return dev-board_ptr; -} - /* * function prototypes */ Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel

RE: [PATCH 0/4] staging: comedi: addi_apci_3120: redo DMA buffer allocation

2014-09-15 Thread Hartley Sweeten
++ 3 files changed, 22 insertions(+), 27 deletions(-) Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

RE: [PATCH 11/11] staging: comedi: remove comedi_fc module

2014-09-15 Thread Hartley Sweeten
On Monday, September 15, 2014 5:46 AM, Ian Abbott wrote: All the exported functions in the comedi_fc module have been migrated to the core comedi module and renamed, so it is now just a dummy module. Remove it. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/Kconfig

RE: [PATCH 01/11] staging: comedi: add comedi_bytes_per_scan()

2014-09-15 Thread Hartley Sweeten
On Monday, September 15, 2014 5:46 AM, Ian Abbott wrote: The comedi_fc module contains a few functions useful to Comedi drivers. Their functionality is being migrated to the core comedi module and renamed to start with the prefix `comedi_`. As part of this migration, move

RE: [PATCH 03/11] staging: comedi: add comedi_inc_scan_progress()

2014-09-15 Thread Hartley Sweeten
On Monday, September 15, 2014 5:46 AM, Ian Abbott wrote: The comedi_fc module contains a few functions useful to Comedi drivers. Their functionality is being migrated to the core comedi module and renamed to start with the prefix `comedi_`. As part of this migration, move

RE: [PATCH 05/11] staging: comedi: add comedi_handle_events()

2014-09-15 Thread Hartley Sweeten
On Monday, September 15, 2014 5:46 AM, Ian Abbott wrote: The comedi_fc module contains a few functions useful to Comedi drivers. Their functionality is being migrated to the core comedi module and renamed to start with the prefix `comedi_`. As part of this migration, move

RE: [PATCH 00/11] staging: comedi: move comedi_fc functionality into core

2014-09-15 Thread Hartley Sweeten
not problems with this. And, patch 11 does have a conflict with your ... use dma_alloc_coherent... patches. But, Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

RE: [PATCH] staging: comedi: (regression) channel list must be set for COMEDI_CMD ioctl

2014-10-08 Thread Hartley Sweeten
On Wednesday, October 08, 2014 8:09 AM, Ian Abbott wrote: `do_cmd_ioctl()`, the handler for the `COMEDI_CMD` ioctl can incorrectly call the Comedi subdevice's `do_cmd()` handler with a NULL channel list pointer. This is a regression as the `do_cmd()` handler has never been expected to deal

RE: [PATCH] drivers/staging/comedi/Kconfig: Let COMEDI_II_PCI20KC depend on HAS_IOMEM

2014-10-02 Thread Hartley Sweeten
Instruments PCI-20001C carrier PCI-20001, PCI-20006 and PCI-20341 This seems appropriate. Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com N�r��yb�X��ǧv�^�)޺{.n�+{zX����ܨ}���Ơz�j:+v���zZ+��+zf���h���~i���z��w���?��)ߢf��^jǫy�m��@A�a��� 0��h���i

RE: [PATCH] drivers/staging/comedi/Kconfig: Let COMEDI_II_PCI20KC depend on HAS_IOMEM

2014-10-02 Thread Hartley Sweeten
On Thursday, October 02, 2014 10:26 AM, Rostislav Lisovy wrote: Since egrep -irn ioremap drivers/staging/comedi/drivers | wc -l shows 39 does it mean that this should be added to all the other drivers as well? The others are actually pci_ioremap_bar() and those drivers depend on PCI. I don't

RE: [PATCH 4/7] staging: comedi: don't allow read() on async command set up for write

2014-10-30 Thread Hartley Sweeten
On Thursday, October 30, 2014 5:42 AM, Ian Abbott wrote: If a Comedi asynchronous command has been set up for data transfer in the write direction on the current read subdevice (for those subdevices that support both directions), don't allow the read file operation as that would mess with the

RE: [PATCH 5/7] staging: comedi: don't allow write() on async command set up for read

2014-10-30 Thread Hartley Sweeten
On Thursday, October 30, 2014 5:43 AM, Ian Abbott wrote: If a Comedi asynchronous command has been set up for data transfer in the read direction on the current write subdevice (for those subdevices that support both directions), don't allow the write file operation as that would mess with the

RE: [PATCH 4/7] staging: comedi: don't allow read() on async command set up for write

2014-10-30 Thread Hartley Sweeten
On Thursday, October 30, 2014 1:28 PM, Ian Abbott wrote: On 30/10/14 18:05, Hartley Sweeten wrote: On Thursday, October 30, 2014 5:42 AM, Ian Abbott wrote: [snip] add_wait_queue(async-wait_head, wait); while (nbytes 0 !retval) { @@ -2249,6 +2253,10 @@ static ssize_t comedi_read

RE: [PATCH 0/7] staging: comedi: enforce data transfer direction

2014-10-30 Thread Hartley Sweeten
. The current test used the `SDF_CMD_READ` and `SDF_CMD_WRITE` subdevice flags to check the direction, which is ambiguous if both flags are set. Update it to use the `CMDF_WRITE` command flag instead. Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list

RE: [PATCH 0/2] staging: comedi: das16: fix some timer sync issues

2014-10-31 Thread Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH] staging: comedi: icp_multi: correct insn_bits returned data for DO

2014-10-31 Thread Hartley Sweeten
(s, data)) writew(s-state, dev-mmio + ICP_MULTI_DO); - data[1] = readw(dev-mmio + ICP_MULTI_DI); + data[1] = s-state; return insn-n; } Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe

RE: [PATCH 0/5] staging: comedi: split bus support into separate modules

2014-10-31 Thread Hartley Sweeten
On Friday, October 31, 2014 10:48 AM, Ian Abbott wrote: The Comedi core module doesn't need support for PCI, USB or PCMCIA. Only the low-level Comedi drivers need it. Split the support for these bus types out of the core comedi module and into new modules, comedi_pci, comedi_usb, and

RE: [PATCH 00/48] staging: comedi: avoid using comedi_board()

2014-09-09 Thread Hartley Sweeten
made the drivers hard to read... Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

RE: [PATCH 00/48] staging: comedi: avoid using comedi_board()

2014-09-11 Thread Hartley Sweeten
On Tuesday, September 09, 2014 3:26 AM, Ian Abbott wrote: The `comedi_board` inline function takes a single parameter of type `struct comedi_device *` and merely returns the value of the `board_ptr` member therein. This is somewhat superfluous as the member can be accessed directly. Replace

RE: [PATCH 00/28] staging: comedi: more clean-up and remove legacy attach

2014-09-02 Thread Hartley Sweeten
On Monday, September 01, 2014 4:04 AM, Ian Abbott wrote: Continue to clean up the amplc_pci230 driver code and remove the legacy attach mechanism, since it isn't very useful for this driver (see PATCH 05/28). Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from

RE: [PATCH] staging: comedi: ni_at_a2150: range check board index

2014-09-03 Thread Hartley Sweeten
entries. Return an error from the Comedi driver attach handler `a2150_attach()` if the probed board index is beyond the end of the array. Signed-off-by: Ian Abbott abbo...@mev.co.uk Reviewed-by: H Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line

RE: [PATCH 00/37] staging: comedi: rename command flags for consistency

2014-09-03 Thread Hartley Sweeten
Hartley Sweeten hswee...@visionengravers.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

RE: [PATCH] staging: comedi: hwdrv_apci1500: use dev-class_dev in calls to dev_warn()

2014-09-03 Thread Hartley Sweeten
to use dev-class_dev as well, for consistency. Signed-off-by: Chase Southwood chase.southw...@gmail.com Cc: Ian Abbott abbo...@mev.co.uk Cc: H Hartley Sweeten hswee...@visionengravers.com Hmm.. I thought I caught all of these. Thanks Reviewed-by: H Hartley Sweeten hswee

RE: [PATCH 00/11] staging: comedi: move comedi_fc functionality into core

2014-09-16 Thread Hartley Sweeten
On Tuesday, September 16, 2014 12:44 AM, Ian Abbott wrote: On 15/09/14 19:21, Hartley Sweeten wrote: Other than I think the comedi_fc.c functions should be migrated to comedi_buf.c instead of drivers.c I have not problems with this. I think it's debatable. The only one of the three functions

RE: [PATCH] staging: comedi: fix scan_end_arg == chanlist_len assumption

2014-11-12 Thread Hartley Sweeten
only have the current scan position in bytes currently, so convert that to a sample position.) Signed-off-by: Ian Abbott abbo...@mev.co.uk --- drivers/staging/comedi/drivers.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) Reviewed-by: H Hartley Sweeten hswee

  1   2   3   4   5   6   7   8   9   10   >