1. 11 5月, 2011 4 次提交
  2. 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
  3. 04 5月, 2011 6 次提交
  4. 03 5月, 2011 9 次提交
  5. 30 4月, 2011 6 次提交
  6. 15 4月, 2011 1 次提交
    • G
      Revert "usb: usb_storage: do not align length of request for CBW to maxp size" · 98346f7d
      Greg Kroah-Hartman 提交于
      This reverts commit 806e8f8f.
      
      To quote Alan Stern:
      	The necessity for this patch has been under discussion.
      
      	It turns out the UDC that Mian has been working on and Felipe's
      	UDC have contradictory requirements.  Mian's UDC driver wants a
      	bulk-OUT transfer length to be shorter than the maxpacket size
      	if a short packet is expected, whereas Felipe's UDC hardware
      	always needs bulk-OUT transfer lengths to be evenly divisible by
      	the maxpacket size.
      
      	Mian has agreed to go back over the driver to resolve this
      	conflict.  This means we probably will not want this patch after
      	all.  (In fact, we may ultimately decide to change the gadget
      	framework to require that bulk-OUT transfer lengths _always_ be
      	divisible by the maxpacket size -- only the g_file_storage and
      	g_mass_storage gadgets would need to be changed.)
      
      Cc: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>
      Cc: Michal Nazarewicz <mina86@mina86.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      98346f7d
  7. 14 4月, 2011 12 次提交