1. 29 6月, 2011 2 次提交
    • S
      usb: gadget: convert all users to the new udc infrastructure · 0f91349b
      Sebastian Andrzej Siewior 提交于
      peripheral drivers are using usb_add_gadget()/usb_del_gadget() to
      register/unregister to the udc-core.
      
      The udc-core will take the first available gadget driver and attach
      function driver which is calling usb_gadget_register_driver(). This is
      the same behaviour we have right now.
      
      Only dummy_hcd was tested, the others were compiled tested.
      
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Anton Tikhomirov <av.tikhomirov@samsung.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Dan Carpenter <error27@gmail.com>
      Cc: Darius Augulis <augulis.darius@gmail.com>
      Cc: Eric Miao <eric.y.miao@gmail.com>
      Cc: Jingoo Han <jg1.han@samsung.com>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Cc: Li Yang <leoli@freescale.com>
      Cc: Michael Hennerich <michael.hennerich@analog.com>
      Acked-by: NMike Frysinger <vapier@gentoo.org>
      Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
      Cc: Pavankumar Kondeti <pkondeti@codeaurora.org>
      Cc: Roy Huang <roy.huang@analog.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Toshiharu Okada <toshiharu-linux@dsn.okisemi.com>
      Cc: Xiaochen Shen <xiaochen.shen@intel.com>
      Cc: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
      Cc: Yuan-Hsin Chen <yhchen@faraday-tech.com>
      Cc: cxie4 <cxie4@marvell.com>
      Cc: linux-geode@lists.infradead.org
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      0f91349b
    • F
      usb: gadget: introduce UDC Class · 2ccea03a
      Felipe Balbi 提交于
      this class will be used to abstract away several of the duplicated
      operations scattered among the USB gadget controller drivers.
      
      Later, we can add an atomic notifier to tell interested drivers about
      what's happening with the controller. Notifications such as suspend,
      resume, enumerated, etc. will be useful, at a minimum, for implementing
      usb charger detection.
      
      As part of the converting process usb_gadget_probe_driver() is no longer
      part of each udc but pushed into the ->stap() callback. The same for his
      couterpart.
      
      The core is currently set explicit to 'n'. It will be changed to 'y' once
      all users are converted since it provides functions which clash with
      other drivers.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Acked-by: NMichal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2ccea03a
  2. 16 6月, 2011 1 次提交
  3. 08 6月, 2011 2 次提交
  4. 07 6月, 2011 8 次提交
  5. 21 5月, 2011 1 次提交
    • L
      sanitize <linux/prefetch.h> usage · 268bb0ce
      Linus Torvalds 提交于
      Commit e66eed65 ("list: remove prefetching from regular list
      iterators") removed the include of prefetch.h from list.h, which
      uncovered several cases that had apparently relied on that rather
      obscure header file dependency.
      
      So this fixes things up a bit, using
      
         grep -L linux/prefetch.h $(git grep -l '[^a-z_]prefetchw*(' -- '*.[ch]')
         grep -L 'prefetchw*(' $(git grep -l 'linux/prefetch.h' -- '*.[ch]')
      
      to guide us in finding files that either need <linux/prefetch.h>
      inclusion, or have it despite not needing it.
      
      There are more of them around (mostly network drivers), but this gets
      many core ones.
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      268bb0ce
  6. 19 5月, 2011 2 次提交
  7. 18 5月, 2011 1 次提交
  8. 14 5月, 2011 6 次提交
  9. 11 5月, 2011 4 次提交
  10. 07 5月, 2011 2 次提交
    • P
      USB: OTG: msm: Implement charger detection · d860852e
      Pavankumar Kondeti 提交于
      Implement good battery algorithm defined in the battery charging V1.2 spec
      for detecting different charging ports.  USB hardware is put into low power
      mode when connected to a dedicated charging port.  vbus_draw and set_power
      methods are implemented for determining the allowed current from Host in
      different states (un-configured/suspend/configured).
      
      The charger block is implemented using vendor specific registers and the
      PHY used in MSM8960(28nm PHY) different from older targets like MSM8x60
      and MSM7x30(45nm PHY).  The PHY vendor and product id registers are not
      implemented in the above chipsets.  Hence PHY type is passed via platform
      data.
      Signed-off-by: NPavankumar Kondeti <pkondeti@codeaurora.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d860852e
    • R
      fsl/usb: Unused endpoint failure for USB gadget · ea437f39
      Ramneek Mehresh 提交于
      Though USB controller works without this most of the time, an issue was faced
      where USB was configured as printer device and it was dropping first
      packet(64 bytes) in full speed mode due to DATA PID mismatch.
      The problem gets resolved once unused endpoints are configured as bulk.
      As per P1020 RM (Table17-31, bits 19-18, bits 3-2) "When only one endpoint
      (RX or TX, but not both) of an endpoint pair is used, the unused endpoint
      should be configured as a bulk type endpoint." So according to the RM,
      this patch is initializing TX and RX endpoints as bulk type
      Signed-off-by: NSuchit Lepcha <Suchit.Lepcha@freescale.com>
      Signed-off-by: NRamneek Mehresh <ramneek.mehresh@freescale.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ea437f39
  11. 04 5月, 2011 6 次提交
  12. 03 5月, 2011 5 次提交