08 Oct, 2014

1 commit

  • Pull tty/serial driver updates from Greg KH:
    "Here's the big tty/serial driver patchset for 3.18-rc1.

    Lots of little things in here, some good work from Peter Hurley on the
    tty core, and in lots of drivers. There are also lots of other driver
    updates in here as well, full details in the changelogs.

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

    * tag 'tty-3.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (99 commits)
    Revert "serial/core: Initialize the console pm state"
    tty: serial: 8250: use 32bit variable for rpm_tx_active
    tty: serial: msm: Add earlycon support
    serial/core: Initialize the console pm state
    serial: asc: Conditionally use readl_relaxed (COMPILE_TEST)
    serial: of-serial: add PM suspend/resume support
    m68k: AMIGA_BUILTIN_SERIAL should depend on TTY
    asm/uapi: Add definition of TIOC[SG]RS485
    tty/metag_da: Add console_poll module parameter
    serial: 8250_pci: remove rts_n override from Baytrail quirk
    serial: cadence: Add generic earlycon support
    serial: imx: change the wait even to interruptiable
    serial: imx: terminate the RX DMA when the UART is suspending
    serial: imx: fix throttle/unthrottle callbacks for hardware assisted flow control
    serial: 8250: Add Quark X1000 to 8250_pci.c
    tty: omap-serial: pull out calculation from baud_is_mode16
    tty: omap-serial: fix division by zero
    xen_hvc: no reason to write the type key on xenstore
    tty: serial: 8250_core: remove UART_IER_RDI in serial8250_stop_rx()
    tty: serial: 8250_core: use the ->line argument as a hint in serial8250_find_match_or_unused()
    ...

    Linus Torvalds
     

25 Sep, 2014

1 commit


24 Sep, 2014

1 commit


22 Sep, 2014

2 commits


16 Sep, 2014

2 commits

  • The zte_ev driver is based on code (once) distributed by ZTE that still
    appears to originally have been reverse-engineered and bolted onto the
    generic driver.

    A closer analysis of the zte_ev setup code reveals that it consists of
    standard CDC requests (SET/GET_LINE_CODING and SET_CONTROL_LINE_STATE)
    but unfortunately fails to get some of those right. In particular, as
    reported by Lei Liu, it fails to lower DTR/RTS on close. It also appears
    that the control requests lack the interface argument.

    Since line control is already handled properly by the option driver, and
    the SET/GET_LINE_CODING requests appears to be redundant (amounts to a
    SET 9600 8N1) let's remove the redundant zte_ev driver.

    Also move the remaining ZTE PIDs to the generic option modem driver.

    Reported-by: Lei Liu
    Signed-off-by: Johan Hovold

    Johan Hovold
     
  • USB fixes in Linux 3.17-rc5 are needed to build on top of for 3.18.

    Signed-off-by: Johan Hovold

    Johan Hovold
     

09 Sep, 2014

1 commit


04 Sep, 2014

2 commits


01 Sep, 2014

8 commits


28 Aug, 2014

2 commits

  • Make sure to verify the number of ports requested by subdriver to avoid
    writing beyond the end of fixed-size array in interface data.

    The current usb-serial implementation is limited to eight ports per
    interface but failed to verify that the number of ports requested by a
    subdriver (which could have been determined from device descriptors) did
    not exceed this limit.

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

    Johan Hovold
     
  • Make sure to verify the maximum number of endpoints per type to avoid
    writing beyond the end of a stack-allocated array.

    The current usb-serial implementation is limited to eight ports per
    interface but failed to verify that the number of endpoints of a certain
    type reported by a device did not exceed this limit.

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

    Johan Hovold
     

25 Aug, 2014

1 commit

  • This patch fixes a potential security issue in the whiteheat USB driver
    which might allow a local attacker to cause kernel memory corrpution. This
    is due to an unchecked memcpy into a fixed size buffer (of 64 bytes). On
    EHCI and XHCI busses it's possible to craft responses greater than 64
    bytes leading a buffer overflow.

    Signed-off-by: James Forshaw
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    James Forshaw
     

18 Aug, 2014

8 commits

  • Added support to the ftdi_sio driver for ekey Converter USB which
    uses an FT232BM chip.

    Signed-off-by: Jaša Bartelj
    Cc: stable
    Signed-off-by: Johan Hovold

    Jaša Bartelj
     
  • This adds a new device id to the pl2303 driver for the ZTEK device.

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

    Greg KH
     
  • Add device id for Basic Micro ATOM Nano USB2Serial adapters.

    Reported-by: Nicolas Alt
    Tested-by: Nicolas Alt
    Cc: stable
    Signed-off-by: Johan Hovold

    Johan Hovold
     
  • Remove dublicate Qualcom PID 0x3197 which is already handled by the
    moto-modem driver since commit 6986a978eec7 ("USB: add new moto_modem
    driver for some Morotola phones").

    Fixes: 799ee9243d89 ("USB: serial: add zte_ev.c driver")
    Cc:
    Signed-off-by: Johan Hovold

    Johan Hovold
     
  • Remove dublicate Gobi PID 0x9008 which is already handled by the
    qcserial driver since commit f05932c0caf4 ("USB: qcserial: Add extra
    device IDs").

    Fixes: 799ee9243d89 ("USB: serial: add zte_ev.c driver")
    Cc:
    Signed-off-by: Johan Hovold

    Johan Hovold
     
  • This reverts commit 73228a0538a7 ("USB: option,zte_ev: move most ZTE
    CDMA devices to zte_ev").

    Move the IDs of the devices that were previously driven by the option
    driver back to that driver.

    As several users have reported, the zte_ev driver is causing random
    disconnects as well as reconnect failures.

    A closer analysis of the zte_ev setup code reveals that it consists of
    standard CDC requests (SET/GET_LINE_CODING and SET_CONTROL_LINE_STATE)
    but unfortunately fails to get some of those right. In particular, as
    reported by Liu Lei, it fails to lower DTR/RTS on close. It also appears
    that the control requests lack the interface argument.

    Note that the zte_ev driver is based on code (once) distributed by ZTE
    that still appears to originally have been reverse-engineered and bolted
    onto the generic driver.

    Since line control is already handled properly by the option driver, and
    the SET/GET_LINE_CODING requests appears to be redundant (amounts to a
    SET 9600 8N1), this is a first step in ultimately removing the redundant
    zte_ev driver.

    Note that AC2726 had already been moved back to option, and that some
    IDs were in the device table of both drivers prior to the commit being
    reverted.

    Reported-by: Lei Liu
    Cc:
    Signed-off-by: Johan Hovold

    Johan Hovold
     
  • This VIA Telecom baseband processor is used is used by by u-blox in both the
    FW2770 and FW2760 products and may be used in others as well.

    This patch has been tested on both of these modem versions.

    Signed-off-by: Brennan Ashton
    Cc: stable
    Signed-off-by: Johan Hovold

    Brennan Ashton
     
  • Do not log normal interrupt-urb shutdowns as errors.

    The option driver has always been logging any nonzero interrupt-urb
    status as an error, including when the urb is killed during normal
    operation.

    Commit 9096f1fbba91 ("USB: usb_wwan: fix potential NULL-deref at
    resume") moved the interrupt urb submission from port probe and release
    to open and close, thus potentially increasing the number of these
    false-positive error messages dramatically.

    Reported-by: Ed Butler
    Tested-by: Ed Butler
    Cc:
    Signed-off-by: Johan Hovold

    Johan Hovold
     

02 Aug, 2014

2 commits


18 Jul, 2014

1 commit

  • This `usb_reset_device` command has been around since the driver was
    originally reverse engineered. It doesn't cause much issue on single
    interface CP210x devices, but on the CP2105 and CP2108 with 2 and 4
    interfaces respectively it will cause instability on enumeration and
    delays enumeration noticably. There should be no reason to reset a device
    at startup, per the CP210x AN571 spec.

    Signed-off-by: Preston Fick
    Cc: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Preston Fick
     

17 Jul, 2014

1 commit


14 Jul, 2014

1 commit


12 Jul, 2014

1 commit

  • This adds support for Infineon TriBoard TC1798 [1]. Only interface 1
    is used as serial line (see [2], Figure 8-6).

    [1] http://www.infineon.com/cms/de/product/microcontroller/development-tools-software-and-kits/tricore-tm-development-tools-software-and-kits/starterkits-and-evaluation-boards/starter-kit-tc1798/channel.html?channel=db3a304333b8a7ca0133cfa3d73e4268
    [2] http://www.infineon.com/dgdl/TriBoardManual-TC1798-V10.pdf?folderId=db3a304412b407950112b409ae7c0343&fileId=db3a304333b8a7ca0133cfae99fe426a

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

    Michal Sojka
     

10 Jul, 2014

3 commits


07 Jul, 2014

2 commits