1. 07 6月, 2013 10 次提交
  2. 06 6月, 2013 6 次提交
  3. 05 6月, 2013 5 次提交
  4. 04 6月, 2013 11 次提交
  5. 30 5月, 2013 8 次提交
    • M
      USB: OHCI: make ohci-pci a separate driver · c1117afb
      Manjunath Goudar 提交于
      This patch splits the PCI portion of ohci-hcd out into its
      own separate driver module, called ohci-pci.
      
      The major point of difficulty lies in ohci-pci's many vendor- and
      device-specific workarounds.  Some of them have to be applied before
      calling ohci_start() some after, which necessitates a fair amount of
      code motion.  The other platform drivers require much smaller changes.
      
      The complete sb800_prefetch() function moved to ohci-q.c,because its
      only related to ohci-pci driver.
      
      USB_OHCI_HCD_PCI symbol no longer dependence on STB03xxx, PPC_MPC52xx and
      USB_OHCI_HCD_PPC_OF that's what removed.
      
      V2:
        - few specific content of pci related code in ohci_pci_start function has been moved to ohci_pci_reset
          and rest of the generic code is written in ohci_start of ohci-hcd.c file.
      V3:
       - ohci_restart() has been called in ohci_pci_reset() function for to reset the ohci pci.
      
      V4:
       -sb800_prefetch() moved to ohci-q.c,because its only related to ohci-pci.
       -no longer _creating_ CONFIG_USB_OHCI_PCI,creating CONFIG_USB_OHCI_HCD_PCI.
       -overrides renamed with pci_override,its giving proper meaning.
      
      V5:
       -sb800_prefetch() moved to pci-quirks.c,because its only related to pci.
      
      V6:
       -sb800_prefetch() function has been moved to pci-quirks.c made as separate patch in 2/3.
       -Most of the generic ohci pci changes moved in 2/3 patch,now this is complete  ohci-pci separation patch.
      
      V7:
       -Unrelated include file has been removed from ohci.h file.
      
      V8:
       -USB_OHCI_HCD_PCI symbol does not dependence on STB03xxx, PPC_MPC52xx and USB_OHCI_HCD_PPC_OF.
      Signed-off-by: NManjunath Goudar <manjunath.goudar@linaro.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c1117afb
    • M
      USB: OHCI: Generic changes to make ohci-pci a separate driver · 2621d011
      Manjunath Goudar 提交于
      Note that this changes is part of separating the ohci pci host controller
      driver from ohci-hcd host code.
      This contains :
           -Moved sb800_prefetch() function from ohci-pci.c to pci-quirks.c file
            and EXPORTed, this is part of the effort to move the ohci pci related
            code to generic pci code.
           -Passed "device" argument instead  of "ohci_hcd" in sb800_prefetch()
            function to avoid extra include file in pci-quirks.c.
      
      V2:
           -Passed "device" argment instead of "pci_dev", then we use to_pci_dev()
            to get the "pci_dev" structure.
      Signed-off-by: NManjunath Goudar <manjunath.goudar@linaro.org>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      2621d011
    • M
      USB: OHCI: prepare to make ohci-hcd a library module · 95e44d44
      Manjunath Goudar 提交于
      This patch prepares ohci-hcd for being split up into a core
      library and separate platform driver modules.  A generic
      ohci_hc_driver structure is created, containing all the "standard"
      values, and a new mechanism is added whereby a driver module can
      specify a set of overrides to those values.  In addition the
      ohci_restart(),ohci_suspend() and ohci_resume() routines need
      to be EXPORTed for use by the drivers.
      
      Added ohci_setip(() and ohci_start() routine for to start the generic
      controller rather than each having its own idiosyncratic approach.
      This allow to clean duplicated code in most of SOC driver
      
      In V2:
       -ohci_hcd_init() ohci_run() and ohci_stop() are not made non-static.
       -Adds the ohci_setup() and ohci_start() routine.
      
      In V3:
       -purpose of ohci_setup() and ohci_start() function description written in the patch
        description.
       -ohci_init() are not made non-static but now called beginning of the ohci_restart().
       -ohci_run() signature change reverted back.
       -unrelated changes removed.
       -duplicate comment line removed.
       -inline ohci_suspend() and ohci_resume() is not needed so removed from ohci.h file.
      
      In V4:
       -ohci-init() EXPORTed because it is called by all bus glue modules.
       -ohci-setup() removed from 1/2 added into 2/2 patch.
      
      In V5:
       -Again ohci_setup() is added and EXPORTed because to replace the ohci_init() from
        all bus glues.
       -ohci_init() is not made non-static function.
      
      In V6:
        -ohci_init() call is removed from ohci_quirk_nec_worker(), because it is already called in ohci_restart().
      
      In V8:
        -ohci_hcd_init() is called by ohci_setup() to make generic ohci initialization in all ohci drivers.
      Signed-off-by: NManjunath Goudar <manjunath.goudar@linaro.org>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      95e44d44
    • A
      USB: FHCI: upgrade the isochronous API · f467ff4c
      Alan Stern 提交于
      This patch attempts to fix the isochronous API in the fhci-hcd
      driver.  There are two problems with the current code:
      
      	ed->last_iso is used but not set anywhere.  The patch changes
      	its name to ed->next_iso and uses it to store the frame number
      	of the next available slot in the isochronous stream.
      
      	urb->start_frame isn't set when the URB_ISO_ASAP flag is off.
      	The patch sets it to the next available slot if the stream is
      	in use, or the current frame otherwise.
      
      This won't give the right behavior when an underrun occurs, but I
      don't know enough about the driver to handle that case.
      
      Unfortunately, I don't have any way to test these changes.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: Anton Vorontsov <avorontsov@ru.mvista.com>
      CC: Li Yang <leoli@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f467ff4c
    • A
      USB: IMX21: upgrade the isochronous API · 9db33f31
      Alan Stern 提交于
      This patch attempts to update the imx21-hcd driver to the current
      standard for the isochronous API.  Firstly, urb->start_frame should
      always be set by the driver; it is not an input parameter.  Secondly,
      the URB_ISO_ASAP flag matters only when an URB is submitted to a
      stream that has gotten an underrun.  It causes the URB to be scheduled
      for the next available slot in the future, rather than the earliest
      unused (and expired) slot.
      
      Unfortunately, I don't have any way to test these changes.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      CC: Sascha Hauer <kernel@pengutronix.de>
      CC: Martin Fuzzey <mfuzzey@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      9db33f31
    • A
      USB: MUSB: upgrade the isochronous API · 8a1ea51f
      Alan Stern 提交于
      This patch attempts to fix the isochonour API in the musb host
      driver.  In particular, the urb->start_frame field should always be
      set by the driver; it isn't an input parameter.
      
      The simplest way to accomplish this is to treat all URBs as though the
      URB_ISO_ASAP flag was set.  This won't give the right behavior when an
      underrun occurs, but I don't know enough about the musb driver to
      handle that case.
      
      Unfortunately, I have no way to test this change.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8a1ea51f
    • T
      usb: ehci-s5p: skip phy setup for Exynos5440 based platforms · e6b0166f
      Thomas Abraham 提交于
      Exynos5440 does not require any explict USB phy configuration. So skip
      the USB phy configuration for Exynos5440 based platforms.
      Signed-off-by: NThomas Abraham <thomas.ab@samsung.com>
      Ackked-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e6b0166f
    • A
      usb: serial: dump small buffers with help of %*ph · 715cf92a
      Andy Shevchenko 提交于
      There is a specifier we may use to dump small buffers.
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      715cf92a