[PATCH 0/2] Enable PPS reporting for USB serial devices (v3)

2013-09-15 Thread Paul Chavent
Hi. This series enable the PPS reporting for USB serial devices. This third submission improve commit messages, and fix some coding guidelines. The last patch of the v2 will be integrated in an more global reworking of the pl2303 driver. Paul Chavent (2): USB : serial : call handle_dcd_change

[PATCH 1/2] USB : serial : call handle_dcd_change in ftdi driver.

2013-09-15 Thread Paul Chavent
When the device receive a DCD status change, forward the signal to the USB serial system. This way, we can detect, for instance, PPS pulses. Signed-off-by: Paul Chavent --- drivers/usb/serial/ftdi_sio.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb

[PATCH 2/2] USB : serial : invoke dcd_change ldisc's handler.

2013-09-15 Thread Paul Chavent
The DCD pin of the serial port can receive a PPS signal. By calling the port line discipline dcd handle, this patch allow to monitor PPS through USB serial devices. However the performance aren't as good as the uart drivers, so document this point too. Signed-off-by: Paul Ch

[PATCH] pps : add non blocking option to PPS_FETCH ioctl.

2013-09-04 Thread Paul Chavent
Signed-off-by: Paul Chavent --- drivers/pps/pps.c | 57 +-- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/drivers/pps/pps.c b/drivers/pps/pps.c index 7173e3a..86ff57e 100644 --- a/drivers/pps/pps.c +++ b/drivers/pps/pps.c

[PATCH 4/5] USB : serial : invoke dcd_change ldisc's handler.

2013-09-09 Thread Paul Chavent
In order to have the PPS line discipline to work with usb devices. Signed-off-by: Paul Chavent --- drivers/usb/serial/generic.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/serial/generic.c b/drivers/usb/serial/generic.c index 91f0592..a18a086 100644 --- a/drivers/usb

[PATCH 5/5] USB : serial : pl2303 wake up after dcd status check.

2013-09-09 Thread Paul Chavent
Seems to be done this way in other drivers (ch341, 8250, ...). Signed-off-by: Paul Chavent --- drivers/usb/serial/pl2303.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 3299f3a..6bb405b 100644 --- a

[PATCH 3/5] USB : serial : call handle_dcd_change in ftdi driver.

2013-09-09 Thread Paul Chavent
Signed-off-by: Paul Chavent --- drivers/usb/serial/ftdi_sio.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index c45f9c0..2d3d3a0 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial

[PATCH 1/5] USB : serial : remove tty arg of handle_dcd_change.

2013-09-09 Thread Paul Chavent
Do the same way as in serialcore.c for uart_handle_dcd_change. It removes duplicated code around the usb_serial_handle_dcd_change calls. Signed-off-by: Paul Chavent --- drivers/usb/serial/ch341.c | 7 ++- drivers/usb/serial/generic.c | 4 ++-- drivers/usb/serial/pl2303.c | 7

[PATCH 2/5] USB : serial : get protected tty in handle_dcd_change.

2013-09-09 Thread Paul Chavent
This patch depends on 72df17e... (PATCH 1). It restores the retreiving of a protected instance of tty. As opposed to the serialcore.c dcd_change implementation, the callers of dcd_change used to get protected tty instance. Signed-off-by: Paul Chavent --- drivers/usb/serial/generic.c | 4

[PATCH 0/5] Enable PPS reporting for USB serial devices

2013-09-09 Thread Paul Chavent
comments. Cheers. Paul. Paul Chavent (5): USB : serial : remove tty arg of handle_dcd_change. USB : serial : get protected tty in handle_dcd_change. USB : serial : call handle_dcd_change in ftdi driver. USB : serial : invoke dcd_change ldisc's handler. USB : serial : pl2303 wake up

Re: [PATCH 0/5] Enable PPS reporting for USB serial devices

2013-09-10 Thread Paul Chavent
he usb, and see if it is constant. Perhaps we could introduce parameters to add offset to the pps signal used by the kernel consumer (the same way we can add the offset with PPS_FETCH ioctl) later. Regards. Paul. On 09/10/2013 09:31 AM, Rodolfo Giometti wrote: On Mon, Sep 09, 2013 at 06:01

Re: [PATCH 1/5] USB : serial : remove tty arg of handle_dcd_change.

2013-09-10 Thread Paul Chavent
On 09/09/2013 07:45 PM, Johan Hovold wrote: On Mon, Sep 09, 2013 at 06:01:16PM +0200, Paul Chavent wrote: Do the same way as in serialcore.c for uart_handle_dcd_change. It removes duplicated code around the usb_serial_handle_dcd_change calls. Signed-off-by: Paul Chavent --- drivers/usb

[PATCH 3/3] USB : serial : pl2303 wake up after dcd status check.

2013-09-13 Thread Paul Chavent
Seems to be done this way in other drivers (ch341, 8250, ...). And get tty reference only if dcd_change need to be called. Signed-off-by: Paul Chavent --- drivers/usb/serial/pl2303.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/usb/serial/pl2303

[PATCH 2/3] USB : serial : invoke dcd_change ldisc's handler.

2013-09-13 Thread Paul Chavent
Signed-off-by: Paul Chavent --- Documentation/pps/pps.txt| 15 +++ drivers/usb/serial/generic.c | 9 + 2 files changed, 24 insertions(+) diff --git a/Documentation/pps/pps.txt b/Documentation/pps/pps.txt index d35dcdd..67b9a94 100644 --- a/Documentation/pps/pps.txt

[PATCH 0/3] Enable PPS reporting for USB serial devices V2

2013-09-13 Thread Paul Chavent
erruptible was often called after status processing (ch341, 8250, ...). So i suggest to move this one. Thank for your comments. Regards. Paul. Paul Chavent (3): USB : serial : call handle_dcd_change in ftdi driver. USB : serial : invoke dcd_change ldisc's handler. USB : serial : pl230

[PATCH 1/3] USB : serial : call handle_dcd_change in ftdi driver.

2013-09-13 Thread Paul Chavent
Signed-off-by: Paul Chavent --- drivers/usb/serial/ftdi_sio.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index c45f9c0..df66495 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial

Re: [PATCH 3/3] USB : serial : pl2303 wake up after dcd status check.

2013-09-13 Thread Paul Chavent
Hi. This patch was just a suggestion. Don't bother with rebasing. I will wait your changes and remove this patch from the next submission. Cheers. Paul. On 09/13/2013 06:23 PM, Johan Hovold wrote: On Fri, Sep 13, 2013 at 05:35:13PM +0200, Paul Chavent wrote: Seems to be done this w

[PATCH] ARM: davinci: usb: provide minimal support for da850.

2013-09-24 Thread Paul Chavent
implementation. Signed-off-by: Paul Chavent --- arch/arm/mach-davinci/board-da850-evm.c | 153 1 file changed, 153 insertions(+) diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index dd1fb24..f0bee9d 100644 --- a/arch/arm/mach

Usb generic serial.

2008-01-10 Thread Paul Chavent
Hello and happy new year 2008. In drivers/usb/serial/usb-serial.c there is a function (fixup_generic / set_to_generic_if_null) that hooks null fops to the generic driver ones. The drivers/usb/serial/generic.c implements throttle, unthrottle and resume, but those aren't used by default in fixu

Re: [PATCH] pps : add non blocking option to PPS_FETCH ioctl.

2013-10-16 Thread Paul Chavent
On 10/15/2013 09:55 PM, Andrew Morton wrote: On Tue, 15 Oct 2013 12:43:50 +0200 Rodolfo Giometti wrote: On Fri, Oct 11, 2013 at 12:47:20PM -0700, Andrew Morton wrote: On Fri, 11 Oct 2013 14:40:32 +0200 Paul Chavent wrote: The PPS_FETCH ioctl is blocking still the reception of a PPS

Re: [PATCH] pps : add non blocking option to PPS_FETCH ioctl.

2013-10-11 Thread Paul Chavent
Hi. I haven't had any feedback for weeks. I join a patch with more details in the commit message if needed. Do you know someone responsible to apply PPS patches ? Regards. Paul. On 09/06/2013 08:55 AM, Rodolfo Giometti wrote: On Wed, Sep 04, 2013 at 10:20:38AM +0200, Paul Chavent

[PATCH] ARM: davinci: usb: provide minimal support for da850. (v2)

2013-10-11 Thread Paul Chavent
As for the da830 and hawk boards, the da850 can provide minimalist usb 1.1 implementation without enabling usb gadget and inventra HC. This patch is inspired by the hawk board implementation. Signed-off-by: Paul Chavent --- arch/arm/mach-davinci/board-da850-evm.c | 135

[PATCH] pps : add non blocking option to PPS_FETCH ioctl.

2013-10-11 Thread Paul Chavent
The PPS_FETCH ioctl is blocking still the reception of a PPS event. But, in some case, one may immediately need the last event date. This patch allow to get the result of PPS_FETCH if the device has the O_NONBLOCK flag set. Signed-off-by: Paul Chavent Acked-by: Rodolfo Giometti --- drivers/pps

[PATCH] pps : disable kernel consumer support if HZ_IDLE.

2014-06-11 Thread Paul Chavent
The Kconfig already check if !NO_HZ, but miss if someone enables NO_HZ_IDLE (which is equivalent). Signed-off-by: Paul Chavent --- drivers/pps/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pps/Kconfig b/drivers/pps/Kconfig index 7512e98..c0d77ed 100644