aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/serial
Commit message (Collapse)AuthorAgeFilesLines
* usb: use SYSINIT(9) order instead of using non-existing subsystemGleb Smirnoff2026-08-102-3/+3
| | | | | | Found with: clang -Werror=assign-enum Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D58710
* usb: Add missing unsetup while detaching uchcomShengYi Hung2026-06-091-0/+1
| | | | | | | Reviewed by: christos MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57329
* u3g: Add Telit LM960A18 LTE modemEd Maste2026-05-131-0/+2
| | | | | | | | | The patch in the PR failed to apply, so I manually applied the same changes. PR: 295231 Submitted by: Mike Tancsa <mike@sentex.net> Reviewed by: emaste
* uvscom: Fix baud rate validation in uvscom_pre_param()Weixie Cui2026-04-161-1/+2
| | | | | | | | | | The switch fell through from the supported B150–B115200 cases into default and returned EINVAL for every speed. Break out before default so valid rates return success, matching uvscom_cfg_param(). Signed-off-by: Weixie Cui <cuiweixie@gmail.com> Reviewed by: imp,aokblast Pull Request: https://github.com/freebsd/freebsd-src/pull/2110
* Fintek F81232 USB to serial driverDiane Bruce2025-12-021-0/+759
| | | | | | | | | Driver for Feature Integration Technology Inc. (aka Fintek) F81232 USB to serial driver. Reviewed by: thj,adrian,UB Approved by: adrian Differential Revision: https://reviews.freebsd.org/D53893
* usb/u3g: add Quectel EM060KAndre Albsmeier2025-10-311-0/+1
| | | | | PR: 290688 MFC After: 3 days
* Add support for Sierra Wireless EM7590 modem.Ari Suutari2025-10-311-0/+1
| | | | | PR: 290421 MFC After: 3 days
* udbc: Add usb debug host mode driverTom Jones2025-09-151-0/+404
| | | | | | | | | | | | | | | xhci offers a debugging interface which uses a special usb 3 cable with the D+, D- and VBUS pairs disconnected. This interface allows a target device to configure its xhci controller as a debugging channel which can then be used to provide a serial link between the target and a debug host. This change extracts the udbc host mode driver from hrs@'s xhci debug implementation. Reviewed by: bcr (man page) MFC after: Before 15-ALPHA3 builds Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D51299
* uchcom: add support for CH9102 and CH343 uartsKevin Lo2025-06-251-153/+196
| | | | | | | | The CH343 devices support any baud rate up to 6 Mbps. PR: 272803 Reviewed by: imp Tested by: joerg, Tomasz "CeDeROM" CEDRO <tomek_AT_cedro_DOT_info> Differential Revision: https://reviews.freebsd.org/D46290
* usb: Kill left-over cdefs.h includesWarner Losh2025-03-0415-15/+0
| | | | | | | | | These includes were for __FBSD_RCSID() macro. They weren't formatted like the rest of the tree so weren't trimmed automatically when that script was run. Trim them now. MFC After: 1 week Sponsored by: Netflix
* usb: serial: make more commands execute synchronouslyKyle Evans2024-12-111-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | The termios layer wants some level of guarantee that we've actually submitted param changes to the hardware when our functions return, so we need to do a little more waiting to avoid violating those guarantees. This is especially important as some hardware has some minimum timing specifications around this stuff, and without being less asynchronous the software dealing with these devices can't reasonably operate the hardware without more excessive delays than they should need. More specifically, we make sure that: - The command to start transfers is finished before we toggle DTR/RTS - The status_change command finishes before we return, which may change some fields in the softc that we need for a subsequent call into usb_serial - cfg_param finishes before we re-enable transfers, and we ensure that RTS is appropriately toggled before we return to userland This has been observed to fix some flakiness in connecting to some ESP32 devices. Tested by: kenrap from Libera Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D47952
* usb: serial: allow the open/close sleep to be interruptibleKyle Evans2024-12-111-3/+11
| | | | | | | | | | | ucom_queue_command will issue commands for open/close, then wait on them to be finished. In the spirit of playing it safe, allow ucom_queue_command's wait to be interrupted in case the usb process gets jammed up waiting on the hardware -- we can at least recover the user thread that initiated it, even if we can't recover the usb process. Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D47951
* usb: serial: propagate errors from ucom_queue_command()Kyle Evans2024-12-111-18/+31
| | | | | | | | | There's only one error that we can get back right now, but future changes will add some more cases that we need to watch out for. Start by returning errors and propagating them back. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D47950
* usb: Add support for Brainboxes USB-to-Serial adaptersHajimu UMEMOTO2024-11-111-0/+18
| | | | | PR: 277482 Reported by: Cameron Williams
* u3g: reorder Quectel devices by product IDFranco Fichtner2024-09-211-5/+5
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1410
* u3g: add SIERRA AC340UFranco Fichtner2024-08-301-0/+1
| | | | | Pull request: https://github.com/freebsd/freebsd-src/pull/1397 MFC after: 3 days
* u3g: Add support for SIM7600GMaxime Thiebaut2024-06-061-0/+1
| | | | | Signed-off-by: Maxime Thiebaut <maxime+freebsd@thiebaut.dev> Reviewed by: kp
* umcs(4): Fix two typos in source code commentsGordon Bergling2024-02-221-2/+2
| | | | | | - s/frequences/frequencies/ MFC after: 3 days
* usb: Fix a typo in a source code commentGordon Bergling2024-01-221-1/+1
| | | | | | - s/recevied/received/ MFC after: 3 days
* usb: Fix two typos in source code commentsGordon Bergling2024-01-201-1/+1
| | | | | | | - s/bascially/basically/ - s/assistence/assistance/ MFC after: 3 days
* Use 115200 bps by default for serial communicationEd Maste2023-08-171-1/+1
| | | | | | | | | | | | | 9600 was a standard baud rate decades ago, but 115200 is now more common so choose defaults that are useful to the largest number of users. Note that boot0sio does not support rates above 9600 so it remains unchanged. Reviewed by: bz, imp, manu Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36295
* Remove my middle name.Dag-Erling Smørgrav2023-08-171-1/+1
|
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-1615-28/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* sys: Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-166-6/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-162-4/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* usb: Fixed botched spacingJessica Clarke2023-06-271-21/+21
| | | | Fixes: d3a83456e1e3 ("Add vendor id for Quectel USB modem and align with quectel marketing names.")
* Add vendor id for Quectel USB modem and align with quectel marketing names.Gabriele Laganà2023-06-271-5/+21
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/750
* spdx: Simplify BSD-2-Clause AND BSD-2-ClauseWarner Losh2023-05-128-8/+8
| | | | | | | | | After removing the -FreeBSD and -NetBSD, we're left with a nuber of BSD-2-Clause AND BSD-2-Clause, so tidy that up. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh2023-05-1213-13/+13
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-1213-13/+13
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* u3g(4): Add device ID for the Quectel EM160RAllan Jude2023-03-011-0/+1
| | | | | | | | | Also add the EM160R to the man page, noting the work-around required to make it function properly in PPP mode. MFC-After: 1 week Sponsored by: Metify Inc. Sponsored by: Klara Inc.
* u3g: add huawei device idMichael Paepcke2023-02-101-0/+1
| | | | | | | | Add missing entry for E3372h Model already in NCM mode Noticed by: David BOYER Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/645
* usb/u3g: Add support for QUECTEL EP06-E 4G modemev2023-02-051-0/+1
| | | | | | | | Add QUECTEL EP06-E modem support via USB for FreeBSD. Tested and works like a ppp on FreeBSD-13. Reviewed by: imp PR: 269326
* usb: add new scsi_huawei eject3 & eject4 driver supportMichael Paepcke2023-02-041-4/+20
| | | | | | | | | | | | | Add initialization for new Huawei 4G E3372_NCM, E3372v153_NCM, E5573Cs322_NCM, E5573Cs322_ECM, and E5573Cs322_ACM. Remove now-obsolete Huawei 3G E3131 init sequence. These devices are obsolete, share IDs with new devices and the 3G networks are shutdown. These old devices work correctly via the 4G code while still allowing the shared IDs to work differently for the new devices. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/633
* umcs(4): Fix a typo in a kernel messageGordon Bergling2023-01-281-2/+2
| | | | | | | | - s/confguration/configuration/ - s/nornal/normal/ Obtained from: NetBSD MFC after: 5 days
* umodem: add quirk to ignore CDC_CM descriptorSteffen Dirkwinkel2023-01-181-1/+3
| | | | | | | | | | | Some devices have CDC_CM descriptors that would point us to the wrong interfaces. Add a quirk to ignore those (prefering the CDC_UNION descriptor effectively) Reviewed by: manu MFC after: 1 week Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D37942
* usb(4): Substitute "unsigned int" using the equivalent and shorter ↵Hans Petter Selasky2022-10-073-12/+12
| | | | | | | "unsigned" keyword. MFC after: 1 week Sponsored by: NVIDIA Networking
* uslcom(4): Clear stall at every open.Hans Petter Selasky2022-10-061-6/+4
| | | | | | | | To avoid data loss, make sure both the receive and transmit data toggles get reset, before trying to read or write any data. MFC after: 1 week Sponsored by: NVIDIA Networking
* ucom(4): Make sure the open routine is executed synchronously.Dave Baukus2022-08-301-2/+2
| | | | | | | | | To avoid issues starting any USB transfers before the open function is complete. Differential Revision: https://reviews.freebsd.org/D36391 MFC after: 1 week Sponsored by: NVIDIA Networking
* umodem(4): Clear stall at every open.Hans Petter Selasky2022-08-301-8/+14
| | | | | | | | | | | | | | Some controllers like the XHCI(4) loose track of the data toggle value when USB receive transfers are cancelled at close. This in turn can lead to to data loss after the next open. To avoid data loss, make sure both the receive and transmit data toggles get reset, before trying to read or write any data. Differential Revision: https://reviews.freebsd.org/D36391 Submitted by: Dave Baukus <daveb@spectralogic.com> MFC after: 1 week Sponsored by: NVIDIA Networking
* u3g(4): Add more USB IDs.Hans Petter Selasky2022-08-261-0/+14
| | | | | | | Submitted by: malavon <benny.goemans@gmail.com> MFC after: 1 week PR: 263700 Sponsored by: NVIDIA Networking
* uftdi(4): Add new USB ID.Hans Petter Selasky2022-08-011-0/+1
| | | | | | PR: 265514 MFC after: 1 week Sponsored by: NVIDIA Networking
* uchcom(4): Add new USB ID.Hans Petter Selasky2022-06-121-0/+1
| | | | | | | PR: 260783 PR: 264634 MFC after: 1 week Sponsored by: NVIDIA Networking
* usb: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-0619-57/+19
|
* usb: Remove some double words in source code commentsGordon Bergling2022-04-091-4/+4
| | | | | | - s/for for/for/ MFC after: 3 days
* ulpt(4): Add support for Epson TM-U220B.Hans Petter Selasky2022-04-021-2/+11
| | | | | | Submitted by: Archimedes Gaviola <archimedes.gaviola@gmail.com> MFC after: 1 week Sponsored by: NVIDIA Networking
* u3g(4): Add new USB IDs.Hans Petter Selasky2022-03-081-0/+2
| | | | | | Submitted by: Matthew Luckie <mjl@luckie.org.nz> MFC after: 1 week Sponsored by: NVIDIA Networking
* u3g: Add support Quectel EM12-G modem.Alexander V. Chernikov2022-01-291-0/+1
| | | | | | Submitted by: <tda.77793 at gmail.com> PR: 260218 MFC after: 2 weeks
* uchcom(4): Add new USB ID.Hans Petter Selasky2022-01-071-0/+1
| | | | | | | Submitted by: darius@dons.net.au PR: 260783 MFC after: 1 week Sponsored by: NVIDIA Networking
* ucom: s/sio/ucom/Mitchell Horne2021-12-061-1/+1
| | | | | | | | | | Seems like a copy-paste error, or at least this made more sense when the sio(4) driver still existed. This modifies the debug port name displayed at boot, but otherwise has no functional change. Reviewed by: hselasky MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D33278