1. 21 Jul, 2018 2 commits
    • Guido Kiener's avatar
      usb: usbtmc: Support Read Status Byte with SRQ per file · 4f3c8d6e
      Guido Kiener authored
      Add 'struct usbtmc_file_data' for each file handle to cache last
      srq_byte (=Status Byte with SRQ) received by usbtmc_interrupt(..)
      
      usbtmc488_ioctl_read_stb returns cached srq_byte when available for
      each file handle to avoid race conditions of concurrent applications.
      
      SRQ now sets EPOLLPRI instead of EPOLLIN since EPOLLIN is now reserved
      for asynchronous reads
      Tested-by: default avatarDave Penkler <dpenkler@gmail.com>
      Reviewed-by: default avatarSteve Bayless <steve_bayless@keysight.com>
      Signed-off-by: default avatarGuido Kiener <guido.kiener@rohde-schwarz.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4f3c8d6e
    • Randy Dunlap's avatar
      usb/phy: fix PPC64 build errors in phy-fsl-usb.c · 04b453c8
      Randy Dunlap authored
      Fix build errors when built for PPC64:
      These variables are only used on PPC32 so they don't need to be
      initialized for PPC64.
      
      ../drivers/usb/phy/phy-fsl-usb.c: In function 'usb_otg_start':
      ../drivers/usb/phy/phy-fsl-usb.c:865:3: error: '_fsl_readl' undeclared (first use in this function); did you mean 'fsl_readl'?
         _fsl_readl = _fsl_readl_be;
      ../drivers/usb/phy/phy-fsl-usb.c:865:16: error: '_fsl_readl_be' undeclared (first use in this function); did you mean 'fsl_readl'?
         _fsl_readl = _fsl_readl_be;
      ../drivers/usb/phy/phy-fsl-usb.c:866:3: error: '_fsl_writel' undeclared (first use in this function); did you mean 'fsl_writel'?
         _fsl_writel = _fsl_writel_be;
      ../drivers/usb/phy/phy-fsl-usb.c:866:17: error: '_fsl_writel_be' undeclared (first use in this function); did you mean 'fsl_writel'?
         _fsl_writel = _fsl_writel_be;
      ../drivers/usb/phy/phy-fsl-usb.c:868:16: error: '_fsl_readl_le' undeclared (first use in this function); did you mean 'fsl_readl'?
         _fsl_readl = _fsl_readl_le;
      ../drivers/usb/phy/phy-fsl-usb.c:869:17: error: '_fsl_writel_le' undeclared (first use in this function); did you mean 'fsl_writel'?
         _fsl_writel = _fsl_writel_le;
      
      and the sysfs "show" function return type should be ssize_t, not int:
      
      ../drivers/usb/phy/phy-fsl-usb.c:1042:49: error: initialization of 'ssize_t (*)(struct device *, struct device_attribute *, char *)' {aka 'long int (*)(struct device *, struct device_attribute *, char *)'} from incompatible pointer type 'int (*)(struct device *, struct device_attribute *, char *)' [-Werror=incompatible-pointer-types]
       static DEVICE_ATTR(fsl_usb2_otg_state, S_IRUGO, show_fsl_usb2_otg_state, NULL);
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Felipe Balbi <balbi@kernel.org>
      Cc: linux-usb@vger.kernel.org
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      04b453c8
  2. 20 Jul, 2018 2 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'usb-serial-4.19-rc1' of... · 78fbe864
      Greg Kroah-Hartman authored
      Merge tag 'usb-serial-4.19-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next
      
      Johan writes:
      
      USB-serial updates for v4.19-rc1
      
      Here are the USB-serial updates for 4.19-rc1, including:
      
       - gpio support for CP2102N devices
       - improved line-speed handling for cp210x
       - conversion to spin_lock_irqsave() in completion handlers
       - dropped kl5kusb105 support from the kl5kusb105 driver (sic!)
      
      Included are also various lower-priority fixes and clean ups.
      
      All but the final commit have been in linux-next, and with no reported
      issues.
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      78fbe864
    • Karoly Pados's avatar
      USB: serial: cp210x: implement GPIO support for CP2102N · c8acfe0a
      Karoly Pados authored
      This patch adds GPIO support for CP2102N devices.
      
      It introduces new generic code to support emulating separate
      input and outputs directions even though these devices
      only know output modes (open-drain and pushpull). Existing
      GPIO support for CP2105 has been migrated over to the new
      code structure.
      
      Only limitation is that for the QFN28 variant, only 4 out of
      7 GPIOs are supported. This is because the config array
      locations of the last 3 pins are not documented, and reverse
      engineering revealed offsets that conflicted with other
      documented functions. Hence we'll play it safe instead
      until somebody clears this up further.
      Signed-off-by: default avatarKaroly Pados <pados@pados.hu>
      [ johan: fix style issues and a couple of minor bugs; use Karoly's
               updated commit message ]
      Acked-by: default avatarMartyn Welch <martyn.welch@collabora.co.uk>
      Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
      c8acfe0a
  3. 18 Jul, 2018 5 commits
  4. 16 Jul, 2018 4 commits
  5. 15 Jul, 2018 2 commits
  6. 14 Jul, 2018 19 commits
  7. 13 Jul, 2018 6 commits