28 May, 2014

1 commit

  • The NovaTech OrionLXm uses an onboard FTDI serial converter for JTAG and
    console access.

    Here is the lsusb output:
    Bus 004 Device 123: ID 0403:7c90 Future Technology Devices
    International, Ltd

    Signed-off-by: George McCollister
    Cc: stable
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    George McCollister
     

17 Apr, 2014

1 commit


27 Feb, 2014

1 commit


06 Feb, 2014

1 commit


05 Feb, 2014

1 commit


09 Jan, 2014

1 commit


08 Jan, 2014

1 commit

  • Genuine FTDI chips support only CS7/8. A previous fix in commit
    8704211f65a2 ("USB: ftdi_sio: fixed handling of unsupported CSIZE
    setting") enforced this limitation and reported it back to userspace.

    However, certain types of smartcard readers depend on specific
    driver behaviour that requests 0 data bits (not 5) to change into a
    different operating mode if CS5 has been set.

    This patch reenables this behaviour for all FTDI devices.

    Tagged to be added to stable, because it affects a lot of users of
    embedded systems which rely on these readers to work properly.

    Cc: stable
    Reported-by: Heinrich Siebmanns
    Tested-by: Heinrich Siebmanns
    Signed-off-by: Colin Leitner
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Colin Leitner
     

04 Jan, 2014

3 commits


03 Dec, 2013

1 commit

  • FTDI UARTs support only 7 or 8 data bits. Until now the ftdi_sio driver would
    only report this limitation for CS6 to dmesg and fail to reflect this fact to
    tcgetattr.

    This patch reverts the unsupported CSIZE setting and reports the fact with less
    severance to dmesg for both CS5 and CS6.

    To test the patch it's sufficient to call

    stty -F /dev/ttyUSB0 cs5

    which will succeed without the patch and report an error with the patch
    applied.

    As an additional fix this patch ensures that the control request will always
    include a data bit size.

    Signed-off-by: Colin Leitner
    Signed-off-by: Johan Hovold
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Colin Leitner
     

07 Nov, 2013

1 commit

  • Pull USB driver update from Greg KH:
    "Here's the big USB driver update for 3.13-rc1.

    It includes the usual xhci changes, EHCI updates to get the scheduling
    of USB transactions working better, and a raft of gadget and musb
    updates as well.

    All of this has been in linux-next for a while with no reported
    issues"

    * tag 'usb-3.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (305 commits)
    USB: Maintainers change for usb serial drivers
    usb: usbtest: support container id descriptor test
    usb: usbtest: support superspeed device capbility descriptor test
    usb: usbtest: support usb2 extension descriptor test
    usb: chipidea: only get vbus regulator for non-peripheral mode
    USB: ehci-atmel: add usb_clk for transition to CCF
    usb: cdc-wdm: ignore speed change notifications
    USB: cdc-wdm: support back-to-back USB_CDC_NOTIFY_RESPONSE_AVAILABLE notifications
    usbatm: Fix dynamic_debug / ratelimited atm_dbg and atm_rldbg macros
    printk: pr_debug_ratelimited: check state first to reduce "callbacks suppressed" messages
    usb: usbtest: support bos descriptor test for usb 3.0
    USB: phy: samsung: Support multiple PHYs of same type
    usb: wusbcore: change WA_SEGS_MAX to a legal value
    usb: wusbcore: add a quirk for Alereon HWA device isoc behavior
    usb: wusbcore: combine multiple isoc frames in a single transfer request.
    usb: wusbcore: set the RPIPE wMaxPacketSize value correctly
    usb: chipidea: host: more enhancement when ci->hcd is NULL
    usb: ohci: remove ep93xx bus glue platform driver
    usb: usbtest: fix checkpatch warning as sizeof code style
    UWB: clean up attribute use by using ATTRIBUTE_GROUPS()
    ...

    Linus Torvalds
     

02 Nov, 2013

1 commit


27 Sep, 2013

1 commit


26 Aug, 2013

1 commit

  • Clean up the DEVICE_ATTR usage in the USB serial drivers, making them
    more obvious as to the permissions that the sysfs files should be.

    Note: ftdi_sio.c still has a DEVICE_ATTR() used, that will have to wait
    until after 3.12-rc1 comes out when DEVICE_ATTR_WO() shows up in Linus's
    tree.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

05 Aug, 2013

1 commit


30 Jul, 2013

1 commit


24 Jul, 2013

4 commits


18 May, 2013

1 commit

  • Here are two more devices that use FTDI USB-to-serial chips with new product ID's.

    The devices are the Newport Conex-AGP and Conex-CC motor controllers.
    (http://www.newport.com/CONEX-AGP-Integrated-Piezo-Motor-Rotation-Stages-/987623/1033/info.aspx)
    (http://www.newport.com/CONEX-CC-DC-Servo-Controller-Actuators/934114/1033/info.aspx)

    usb-devices command yields:

    P: Vendor=104d ProdID=3002 Rev=06.00
    S: Manufacturer=Newport
    S: Product=CONEX-CC

    as well as

    P: Vendor=104d ProdID=3006 Rev=06.00
    S: Manufacturer=Newport
    S: Product=CONEX-AGP

    Signed-off-by: Andrew Gomella
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Gomella, Andrew (NIH/NHLBI) [F]
     

17 May, 2013

2 commits

  • Use the new generic usb-serial wait_until_sent implementation to wait
    for hardware buffers to drain.

    This removes the need to check the hardware buffers in chars_in_buffer
    and thus removes the overhead introduced by commit 6f602912 ("usb:
    serial: ftdi_sio: Add missing chars_in_buffer function") without
    breaking tty_wait_until_sent (used by, for example, tcdrain, tcsendbreak
    and close).

    Reported-by: Stas Sergeev
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     
  • Use usb-serial port rather than tty as argument to get_modem_status.

    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     

25 Apr, 2013

1 commit


24 Apr, 2013

1 commit

  • The current ST Micro Connect Lite uses the FT4232H hi-speed quad USB
    UART FTDI chip. It is also possible to drive STM reference targets
    populated with an on-board JTAG debugger based on the FT2232H chip with
    the same STMicroelectronics tools.

    For this reason, the ST Micro Connect Lite PIDs should be
    ST_STMCLT_2232_PID: 0x3746
    ST_STMCLT_4232_PID: 0x3747

    Signed-off-by: Adrian Thomasset
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Adrian Thomasset
     

09 Apr, 2013

1 commit


29 Mar, 2013

1 commit


28 Mar, 2013

1 commit


26 Mar, 2013

5 commits


22 Mar, 2013

1 commit

  • Use the port wait queue and make sure to check the serial disconnected
    flag before accessing private port data after waking up.

    This is is needed as the private port data (including the wait queue
    itself) can be gone when waking up after a disconnect.

    When switching to tty ports, some lifetime assumptions were changed.
    Specifically, close can now be called before the final tty reference is
    dropped as part of hangup at device disconnect. Even with the ftdi
    private-data refcounting this means that the port private data can be
    freed while a process is sleeping on modem-status changes and thus
    cannot be relied on to detect disconnects when woken up.

    Cc: stable
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     

22 Feb, 2013

1 commit

  • Pull tty/serial patches from Greg Kroah-Hartman:
    "Here's the big tty/serial driver patches for 3.9-rc1.

    More tty port rework and fixes from Jiri here, as well as lots of
    individual serial driver updates and fixes.

    All of these have been in the linux-next tree for a while."

    * tag 'tty-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (140 commits)
    tty: mxser: improve error handling in mxser_probe() and mxser_module_init()
    serial: imx: fix uninitialized variable warning
    serial: tegra: assume CONFIG_OF
    TTY: do not update atime/mtime on read/write
    lguest: select CONFIG_TTY to build properly.
    ARM defconfigs: add missing inclusions of linux/platform_device.h
    fb/exynos: include platform_device.h
    ARM: sa1100/assabet: include platform_device.h directly
    serial: imx: Fix recursive locking bug
    pps: Fix build breakage from decoupling pps from tty
    tty: Remove ancient hardpps()
    pps: Additional cleanups in uart_handle_dcd_change
    pps: Move timestamp read into PPS code proper
    pps: Don't crash the machine when exiting will do
    pps: Fix a use-after free bug when unregistering a source.
    pps: Use pps_lookup_dev to reduce ldisc coupling
    pps: Add pps_lookup_dev() function
    tty: serial: uartlite: Support uartlite on big and little endian systems
    tty: serial: uartlite: Fix sparse and checkpatch warnings
    serial/arc-uart: Miscll DT related updates (Grant's review comments)
    ...

    Fix up trivial conflicts, mostly just due to the TTY config option
    clashing with the EXPERIMENTAL removal.

    Linus Torvalds
     

14 Feb, 2013

1 commit

  • Make sure serial-driver dtr_rts is called with disc_mutex held after
    checking the disconnected flag.

    Due to a bug in the tty layer, dtr_rts may get called after a device has
    been disconnected and the tty-device unregistered. Some drivers have had
    individual checks for disconnect to make sure the disconnected interface
    was not accessed, but this should really be handled in usb-serial core
    (at least until the long-standing tty-bug has been fixed).

    Note that the problem has been made more acute with commit 0998d0631001
    ("device-core: Ensure drvdata = NULL when no driver is bound") as the
    port data is now also NULL when dtr_rts is called resulting in further
    oopses.

    Reported-by: Chris Ruehl
    Cc: stable
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     

02 Feb, 2013

2 commits


26 Jan, 2013

1 commit