1. 12 Nov, 2012 2 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'musb-for-v3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into usb-next · 3a3f2e50
      Greg Kroah-Hartman authored
      USB musb merge from Felipe:
      
      "usb: musb: patches for v3.8 merge window
      
      We have here the usual set of cleanups for the MUSB driver; a
      big set of patches converting platform_device_del() and
      platform_device_put() into platform_device_unregister().
      
      Another big set was applied converting to module_platform_driver()
      macro in order to reduce some boilerplate code from all glue
      layers.
      
      Other than that, we had a series fixing one known silicon errata
      where we couldn't read a few registers. In order to fix that
      we're now using shadow variables for reads and only writing
      to the registers which are known to break functionality when
      read."
      3a3f2e50
    • Greg Kroah-Hartman's avatar
      Merge tag 'xceiv-for-v3.8' of git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb into USB-next · 8e06c6a7
      Greg Kroah-Hartman authored
      Pull USB phy patches from Felipe:
      
      "usb: phy: patches for v3.8 merge window
      
      Not too many patches this time. First two patches are only
      cleanups where one of them switches over to module_platform_driver
      macro and the second removes inclusion of <mach/iomap.h> and is
      part of a bigger set of include cleanups from the Tegra folks.
      
      The only substantial change here is the addition of a driver
      for Renesas' R-Car USB Phy controller."
      8e06c6a7
  2. 09 Nov, 2012 2 commits
  3. 06 Nov, 2012 6 commits
    • Philippe De Swert's avatar
      usb: musb: remove generic_interrupt · baef653a
      Philippe De Swert authored
      This patch is based on the discussion of a previous patch to fix an issue
      where the omap2430 musb driver is not working for N9/N950.
      
      Moving all the interrupt handling to the devices. Avoids inclusion of generic
      interrupt and breakage due to sometimes misleading CONFIG options. This makes
      sure usb always works if on of the subdrivers is chosen. Tested on Nokia N9/N950.
      
      Partially clean up CONFIG_SOC_OMAP3430 which is not necessary in the cases
      where I removed it. Also helps with the removal work of those options that
      Tony Lindgren predicted would happen at some point.
      Signed-off-by: default avatarPhilippe De Swert <philippe.deswert@jollamobile.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      baef653a
    • Sergei Shtylyov's avatar
      usb: musb: cppi_dma: export cppi_interrupt() · 8b416b0b
      Sergei Shtylyov authored
      Now that DaVinci glue layer can be modular, we must export cppi_interrupt()
      that it may call...
      
      Cc: stable@vger.kernel.org # 3.0+
      Signed-off-by: default avatarSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      8b416b0b
    • Santhapuri, Damodar's avatar
      usb: musb: dsps: control module handling (quirk) · c68bb4c6
      Santhapuri, Damodar authored
      am335x uses nop transceiver driver and need to enable builtin phy
      by writing into usb_ctrl register available in system control
      module register space. This is being added at musb glue driver
      layer until a separate system control module driver is available.
      
      Proper solution is to make use of control module driver, but it is
      not expected to be ready soon.
      
      Other options available are providing control module register space
      as memory resource via DT or using omap hwmod.
      
      DT approach has been rejected by Rob Herring, while resources are
      being moved from hwmod to DT. And both of the above approaches
      require that control module registers be configured in wrapper
      itself requring a quirk in driver as well as DT or hwmod.
      
      Here another option is used, providing driver with control module
      register physical address. Even though this a hack, there is no other
      option left till control module driver is ready. As of now only
      am335x is using dsps wrapper, and so driver is made aware of am335x
      control module physical address.
      
      Please note that this is a temporary arrangment till omap control
      module driver is available.
      
      [afzal@ti.com: limit quirk to dsps wrapper]
      Signed-off-by: default avatarSanthapuri, Damodar <damodar.santhapuri@ti.com>
      Signed-off-by: default avatarAjay Kumar Gupta <ajay.gupta@ti.com>
      Signed-off-by: default avatarRavi Babu <ravibabu@ti.com>
      Signed-off-by: default avatarAfzal Mohammed <afzal@ti.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      c68bb4c6
    • Afzal Mohammed's avatar
      usb: musb: dsps: get resources by index · 3e594b18
      Afzal Mohammed authored
      dsps wrapper is now dt only. This requires that resources be obtained
      using index and not name, modify accordingly.
      Signed-off-by: default avatarAfzal Mohammed <afzal@ti.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      3e594b18
    • Afzal Mohammed's avatar
      usb: musb: dsps: reduce musb instance to one · 3b46dd76
      Afzal Mohammed authored
      Currently multiple phy's of the same type are not supported, hence
      reduce musb instances to one. This helps in supporting at least one
      instance of musb, rather than having none. Even without this, it was
      observed that both instances were working (by luck), but this holds
      good iff wrapper is part of Image. And it is not correct for both
      controller's to be associated with same phy, here it was working
      because phy is a nop one. And having wrapper as a module and
      rmmod'ing would crash.
      
      This can be reverted once multi phy support for same type is available
      and driver is enhanced to make use of it.
      Signed-off-by: default avatarAfzal Mohammed <afzal@ti.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      3b46dd76
    • Afzal Mohammed's avatar
      usb: musb: dsps: remove platform callback · 12fc9266
      Afzal Mohammed authored
      dsps wrapper is dt only, it cannot execute platform callbacks.
      Presence of this would cause NULL dereference, hence remove it.
      Signed-off-by: default avatarAfzal Mohammed <afzal@ti.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
      12fc9266
  4. 03 Nov, 2012 1 commit
  5. 02 Nov, 2012 4 commits
  6. 01 Nov, 2012 5 commits
  7. 31 Oct, 2012 12 commits
  8. 30 Oct, 2012 8 commits
    • Jingoo Han's avatar
      USB: ums_realtek: fix build warning · 806df3ac
      Jingoo Han authored
      When rts51x_read_status() returns USB_STOR_TRANSPORT_ERROR,
      an error happens. This patch fixes build warning as below:
      
      drivers/usb/storage/realtek_cr.c: In function 'init_realtek_cr':
      drivers/usb/storage/realtek_cr.c:476:33: warning: 'buf[15]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[15]' was declared here
      drivers/usb/storage/realtek_cr.c:475:33: warning: 'buf[14]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[14]' was declared here
      drivers/usb/storage/realtek_cr.c:474:50: warning: 'buf[13]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[13]' was declared here
      drivers/usb/storage/realtek_cr.c:472:30: warning: 'buf[12]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[12]' was declared here
      drivers/usb/storage/realtek_cr.c:471:31: warning: 'buf[11]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[11]' was declared here
      drivers/usb/storage/realtek_cr.c:470:31: warning: 'buf[10]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[10]' was declared here
      drivers/usb/storage/realtek_cr.c:469:30: warning: 'buf[9]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[9]' was declared here
      drivers/usb/storage/realtek_cr.c:468:27: warning: 'buf[8]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[8]' was declared here
      drivers/usb/storage/realtek_cr.c:468:43: warning: 'buf[7]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[7]' was declared here
      drivers/usb/storage/realtek_cr.c:467:30: warning: 'buf[6]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[6]' was declared here
      drivers/usb/storage/realtek_cr.c:466:30: warning: 'buf[5]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[5]' was declared here
      drivers/usb/storage/realtek_cr.c:465:28: warning: 'buf[4]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[4]' was declared here
      drivers/usb/storage/realtek_cr.c:464:24: warning: 'buf[3]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[3]' was declared here
      drivers/usb/storage/realtek_cr.c:464:40: warning: 'buf[2]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[2]' was declared here
      drivers/usb/storage/realtek_cr.c:463:24: warning: 'buf[1]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[1]' was declared here
      drivers/usb/storage/realtek_cr.c:463:40: warning: 'buf[0]' may be used uninitialized in this function [-Wuninitialized]
      drivers/usb/storage/realtek_cr.c:455:5: note: 'buf[0]' was declared here
      Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      806df3ac
    • Johan Hovold's avatar
      USB: ftdi_sio: use ftdi_get_modem_status in chars_in_buffer · 5fb0432e
      Johan Hovold authored
      Use ftdi_get_modem_status to check hardware buffers in chars_in_buffer.
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5fb0432e
    • Johan Hovold's avatar
      USB: ftdi_sio: optimise chars_in_buffer · 8da636d9
      Johan Hovold authored
      No need to check hardware buffers when we know that the software
      buffers are non-empty.
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8da636d9
    • Johan Hovold's avatar
      USB: ftdi_sio: use generic chars_in_buffer · 755b6040
      Johan Hovold authored
      Use generic chars_in_buffer rather than copying it's implementation.
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      755b6040
    • Johan Hovold's avatar
      USB: serial: export usb_serial_generic_chars_in_buffer · 428d9988
      Johan Hovold authored
      Export generic chars_in_buffer implementation so it can be used in
      subdrivers in combination with checks of any hardware buffers.
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      428d9988
    • Johan Hovold's avatar
      USB: ftdi_sio: refactor modem-control status retrieval · a4afff6b
      Johan Hovold authored
      Refactor modem-control status retrieval.
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a4afff6b
    • Johan Hovold's avatar
      USB: ftdi_sio: fix tiocmget and tiocmset return values · 2c2ee545
      Johan Hovold authored
      Make sure we do not return USB-internal error codes to userspace.
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2c2ee545
    • Johan Hovold's avatar
      USB: ftdi_sio: fix tiocmget indentation · fef0b828
      Johan Hovold authored
      Align the modem-control status operands as was originally indented.
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fef0b828