linux/drivers/usb
Johan Hovold 86f6da2951 USB: serial: ch341: add min and max line-speed macros
The line-speed algorithm clamps the requested value to the supported
range instead of bailing out on unsupported values.

Provide min and max macros and indicate how they are derived instead of
hardcoding the limits.

Note that the algorithm depends on the minimum rate (45.78 bps)
being rounded up (and the maximum rate being rounded down) to avoid
special casing.

Suggested-by: Michael Hanselmann <public@hansmi.ch>
Link: https://lore.kernel.org/r/20200630095756.GZ3334@localhost
Signed-off-by: Johan Hovold <johan@kernel.org>
2020-06-30 12:07:00 +02:00
..
atm USB: atm: Use the correct style for SPDX License Identifier 2020-03-17 20:03:28 +01:00
c67x00 USB: c67x00: Use the correct style for SPDX License Identifier 2020-03-17 20:03:28 +01:00
cdns3 Merge 5.8-rc3 into usb-next 2020-06-29 08:22:27 +02:00
chipidea USB: ch9: add "USB_" prefix in front of TEST defines 2020-06-24 15:01:24 +02:00
class cdc-acm: Add DISABLE_ECHO quirk for Microchip/SMSC chip 2020-06-18 10:42:52 +02:00
common USB: ch9: add "USB_" prefix in front of TEST defines 2020-06-24 15:01:24 +02:00
core Merge 5.8-rc3 into usb-next 2020-06-29 08:22:27 +02:00
dwc2 Merge 5.8-rc3 into usb-next 2020-06-29 08:22:27 +02:00
dwc3 Merge 5.8-rc3 into usb-next 2020-06-29 08:22:27 +02:00
early kdb: Switch to use safer dbg_io_ops over console APIs 2020-06-26 15:40:16 +01:00
gadget Merge 5.8-rc3 into usb-next 2020-06-29 08:22:27 +02:00
host Merge 5.8-rc3 into usb-next 2020-06-29 08:22:27 +02:00
image treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
isp1760 USB: isp1760: Use the correct style for SPDX License Identifier 2020-04-16 14:32:47 +02:00
misc Merge 5.8-rc3 into usb-next 2020-06-29 08:22:27 +02:00
mon USB: mon: Use scnprintf() for avoiding potential buffer overflow 2020-03-12 09:49:28 +01:00
mtu3 USB: ch9: add "USB_" prefix in front of TEST defines 2020-06-24 15:01:24 +02:00
musb USB: ch9: add "USB_" prefix in front of TEST defines 2020-06-24 15:01:24 +02:00
phy usb: phy: tegra: Fix unnecessary check in tegra_usb_phy_probe() 2020-06-24 09:43:16 +03:00
renesas_usbhs usb: renesas_usbhs: getting residue from callback_result 2020-06-24 17:14:44 +02:00
roles usb: roles: Switch on role-switch uevent reporting 2020-05-13 14:20:49 +02:00
serial USB: serial: ch341: add min and max line-speed macros 2020-06-30 12:07:00 +02:00
storage USB: storage: scsi: fix up comment to be more specific 2020-06-19 08:58:53 +02:00
typec usb: typec: tcpci_rt1711h: avoid screaming irq causing boot hangs 2020-06-18 10:42:53 +02:00
usbip treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile USB: Changes for v5.4 merge window 2019-09-02 19:20:57 +02:00
usb-skeleton.c USB: usb-skeleton: drop redundant in-urb check 2019-10-10 12:41:19 +02:00