linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Enable modem line status events on cp210x, add support for PPS on RI pin
@ 2023-10-09  2:34 Brian Kloppenborg
  2023-10-09  2:34 ` [PATCH 1/2] Make cp210x respond to modem status changes (CTS, DSR, RI, DCD) by default Brian Kloppenborg
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Brian Kloppenborg @ 2023-10-09  2:34 UTC (permalink / raw)
  To: Johan Hovold, linux-usb; +Cc: Brian Kloppenborg

Dear Johan,

This is my first patch to the Linux kernel.

Patch 1 enables support for modem line status changes to the cp210x driver. This is required to receive pulse-per-second (PPS) signals from GPS receivers. Support for this feature exists in the FTDI driver, but is not present in cp210x. The patch is implemented through (1) enabling the device's event mode by default when the port is opened or closed, and (2) registering the CTS, DSR, RI, and DCD changes with the kernel through conventional means.

Patch 2 enables support for GPS PPS signals on the RI pin. While most GPS devices typically expose this signal on the DCD pin, the Adafruit Ultimate GPS with USB-C placed it on the RI pin instead. So this patch is highly focused on that specific device. From what I can tell, the usb_serial_handle_dcd_change function is used exclusively to register PPS signals with the kernel, so calling it from the RI block shouldn't result in unexpected behavior.

Please let me know if you require any further information.

Regards

Brian Kloppenborg

Signed-off-by: Brian Kloppenborg <brian@kloppenborg.net>

Brian Kloppenborg (2):
  Make cp210x respond to modem status changes (CTS, DSR, RI, DCD) by
    default.
  Make cp210x register GPS PPS signals on the RI pin.

 drivers/usb/serial/cp210x.c | 71 +++++++++++++++++++++++++++++++------
 1 file changed, 60 insertions(+), 11 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-16  1:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-09  2:34 [PATCH 0/2] Enable modem line status events on cp210x, add support for PPS on RI pin Brian Kloppenborg
2023-10-09  2:34 ` [PATCH 1/2] Make cp210x respond to modem status changes (CTS, DSR, RI, DCD) by default Brian Kloppenborg
2023-10-09  8:59   ` Greg KH
2023-10-09  9:00   ` Greg KH
2023-10-09  2:34 ` [PATCH 2/2] Make cp210x register GPS PPS signals on the RI pin Brian Kloppenborg
2023-10-09  9:00   ` Greg KH
2023-12-15 13:02 ` [PATCH 0/2] Enable modem line status events on cp210x, add support for PPS on " Johan Hovold
2023-12-16  1:40   ` Brian Kloppenborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).