1. 30 3月, 2013 3 次提交
  2. 16 3月, 2013 1 次提交
  3. 04 3月, 2013 1 次提交
  4. 19 2月, 2013 1 次提交
  5. 30 1月, 2013 1 次提交
  6. 23 1月, 2013 1 次提交
  7. 22 1月, 2013 1 次提交
    • J
      drivers/usb/chipidea/core.c: adjust duplicate test · 5c6e9bf0
      Julia Lawall 提交于
      Delete successive tests to the same location.  In this case res has already
      been tested for being NULL, and calling devm_request_and_ioremap will not
      make it NULL.  On the other hand, devm_request_and_ioremap can return NULL
      on failure.
      
      A simplified version of the semantic match that finds this problem is as
      follows: (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @s exists@
      local idexpression y;
      expression x,e;
      @@
      
      *if ( \(x == NULL\|IS_ERR(x)\|y != 0\) )
       { ... when forall
         return ...; }
      ... when != \(y = e\|y += e\|y -= e\|y |= e\|y &= e\|y++\|y--\|&y\)
          when != \(XT_GETPAGE(...,y)\|WMI_CMD_BUF(...)\)
      *if ( \(x == NULL\|IS_ERR(x)\|y != 0\) )
       { ... when forall
         return ...; }
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5c6e9bf0
  8. 12 1月, 2013 1 次提交
    • F
      usb: chipidea: Allow disabling streaming not only in udc mode · 929473ea
      Fabio Estevam 提交于
      When running a scp transfer using a USB/Ethernet adapter the following crash
      happens:
      
      $ scp test.tar.gz fabio@192.168.1.100:/home/fabio
      fabio@192.168.1.100's password:
      test.tar.gz                                      0%    0     0.0KB/s   --:-- ETA
      ------------[ cut here ]------------
      WARNING: at net/sched/sch_generic.c:255 dev_watchdog+0x2cc/0x2f0()
      NETDEV WATCHDOG: eth0 (asix): transmit queue 0 timed out
      Modules linked in:
      Backtrace:
      [<80011c94>] (dump_backtrace+0x0/0x10c) from [<804d3a5c>] (dump_stack+0x18/0x1c)
       r6:000000ff r5:80412388 r4:80685dc0 r3:80696cc0
      [<804d3a44>] (dump_stack+0x0/0x1c) from [<80021868>]
      (warn_slowpath_common+0x54/0x6c)
      [<80021814>] (warn_slowpath_common+0x0/0x6c) from [<80021924>]
      (warn_slowpath_fmt+0x38/0x40)
      ...
      
      Setting SDIS (Stream Disable Mode- bit 4 of USBMODE register) fixes the problem.
      
      However, in current code CI13XXX_DISABLE_STREAMING flag is only set in udc mode,
      so allow disabling streaming also in host mode.
      
      Tested on a mx6qsabrelite board.
      Suggested-by: NPeter Chen <peter.chen@freescale.com>
      Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com>
      Reviewed-by: NPeter Chen <peter.chen@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      929473ea
  9. 27 11月, 2012 1 次提交
  10. 22 11月, 2012 4 次提交
  11. 12 11月, 2012 1 次提交
  12. 08 11月, 2012 1 次提交
    • M
      usb: gadget: Remove reference to is_dualspeed from sysfs. · be44f1c8
      Michal Nazarewicz 提交于
      This commit removes the /sys/devices/platform/<UDC>/udc/<UDC>/is_dualspeed
      file and is_dualspeeed line from /sys/devices/platform/ci13xxx_*/udc/device
      file.
      
      The is_dualspeed file is superseded by maximum_speed in the same directory
      and is_dualspeed line in device file is superseded by max_speed line in
      the same file.
      
      The maximum_speed/max_speed specifies maximum speed supported by UDC.
      To check if dualspeeed is supported, check if the value is >= 3.
      Signed-off-by: NMichal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      be44f1c8
  13. 04 11月, 2012 1 次提交
  14. 03 11月, 2012 1 次提交
  15. 01 11月, 2012 1 次提交
    • A
      USB: EHCI: remove ehci_port_power() routine · c73cee71
      Alan Stern 提交于
      This patch (as1623) removes the ehci_port_power() routine and all the
      places that call it.  There's no reason for ehci-hcd to change the
      port power settings; the hub driver takes care of all that stuff.
      
      There is one exception: When the controller is resumed from
      hibernation or following a loss of power, the ports that are supposed
      to be handed over to a companion controller must be powered on first.
      Otherwise the handover won't work.  This process is not visible to the
      hub driver, so it has to be handled in ehci-hcd.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c73cee71
  16. 13 9月, 2012 12 次提交
  17. 31 8月, 2012 1 次提交
    • M
      usb: gadget: get rid of USB_GADGET_{DUAL,SUPER}SPEED · 85b8614d
      Michal Nazarewicz 提交于
      This commit removes USB_GADGET_DUALSPEED and USB_GADGET_SUPERSPEED
      Kconfig options.  Since now kernel allows many UDC drivers to be
      compiled, those options may turn to no longer be valid.  For
      instance, if someone decides to build UDC that supports super
      speed and UDC that supports high speed only, the latter will be
      "assumed" to support super speed since USB_GADGET_SUPERSPEED will
      be selected by the former.
      
      The test of whether CONFIG_USB_GADGET_*SPEED was defined was just
      an optimisation which removed otherwise dead code (ie. if UDC is
      not dual speed, there is no need to handle cases that can happen
      if speed is high).  This commit removes those checks.
      Signed-off-by: NMichal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      85b8614d
  18. 11 8月, 2012 1 次提交
    • M
      usb: chipidea: fix and improve dependencies if usb host or gadget support is built as module · 71a5e61b
      Marc Kleine-Budde 提交于
      Since commit "5e0aa49e usb: chipidea: use generic map/unmap routines",
      the udc part of the chipidea driver needs the generic usb gadget helper
      functions. If the chipidea driver with udc support is built into the
      kernel and usb gadget is built a module, the linking of the kernel
      fails with:
      
      drivers/built-in.o: In function `_hardware_dequeue':
      drivers/usb/chipidea/udc.c:527:
          undefined reference to `usb_gadget_unmap_request'
      drivers/usb/chipidea/udc.c:1269:
          undefined reference to `usb_gadget_unmap_request'
      drivers/usb/chipidea/udc.c:1821:
          undefined reference to `usb_del_gadget_udc'
      drivers/usb/chipidea/udc.c:443:
          undefined reference to `usb_gadget_map_request'
      drivers/usb/chipidea/udc.c:1774:
          undefined reference to `usb_add_gadget_udc'
      
      This patch changes the dependencies, so that udc support can only be
      activated if the linux gadget support (USB_GADGET) is builtin or both
      chipidea driver and USB_GADGET are modular. Same dependencies for the
      chipidea host support and the linux host side USB support (USB).
      
      While there, fix the indention of chipidea the help text.
      
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Reviewed-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      71a5e61b
  19. 10 7月, 2012 6 次提交