1. 04 6月, 2012 1 次提交
  2. 04 5月, 2012 2 次提交
  3. 06 3月, 2012 1 次提交
  4. 24 2月, 2012 1 次提交
  5. 09 2月, 2012 2 次提交
    • T
      usb: gadget: pch_udc: Detecting VBUS through GPIO with interrupt · 637b78eb
      Tomoya MORINAGA 提交于
      Problem:
       pch_udc continues operation even if VBUS becomes Low.
       pch_udc performs D+ pulling up before VBUS becomes High.
       USB device should be controlled according to VBUS state.
      
      Root cause:
       The current pch_udc is not always monitoring VBUS.
      
      Solution:
       The change of VBUS is detected using an interrupt of GPIO.
       If VBUS became Low, pch_udc handles 'disconnect'.
       After VBUS became High, a pull improves D+, and pch_udc
       handles 'connect'.
      
      [ balbi@ti.com : make it actually compile ]
      Signed-off-by: NTomoya MORINAGA <tomoya.rohm@gmail.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      637b78eb
    • T
      usb: gadget: pch_udc: Detecting VBUS through GPIO · dd63180b
      Tomoya MORINAGA 提交于
      Problem:
       In USB Suspend, pch_udc handles 'disconnect'.
      
      Root cause:
       The current pch_udc is not monitoring VBUS.
       When USB cable is disconnected, USB Device Controller generates
       an interrupt of USB Suspend.
       pch_udc cannot distinguish it is USB Suspend or disconnect.
       Therefore, pch_udc handles 'disconnect' after an interrupt of
       USB Suspend happend.
      
      Solution:
       VBUS is detected through GPIO.
       After an interrupt produced USB Suspend, if VBUS is Low,
       pch_udc handles 'disconnect'.
       If VBUS is High, pch_udc handles 'suspend'.
      Signed-off-by: NTomoya MORINAGA <tomoya.rohm@gmail.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      dd63180b
  6. 24 1月, 2012 6 次提交
  7. 13 1月, 2012 1 次提交
  8. 12 12月, 2011 2 次提交
  9. 16 11月, 2011 2 次提交
  10. 10 9月, 2011 1 次提交
    • K
      usb gadget: clean up FSF boilerplate text · 28c9fc68
      Klaus Schwarzkopf 提交于
      remove the following two paragraphs as they are not needed:
      
      This program is distributed in the hope that it will be useful, but
      WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
      License for more details.
      
      You should have received a copy of the GNU General Public License along with
      this program; if not, write to the Free Software Foundation, Inc.,59
      Temple Place - Suite 330, Boston, MA  02111-1307, USA.
      Signed-off-by: NKlaus Schwarzkopf <schwarzkopf@sensortherm.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      28c9fc68
  11. 24 8月, 2011 1 次提交
    • K
      USB: use usb_endpoint_maxp() instead of le16_to_cpu() · 29cc8897
      Kuninori Morimoto 提交于
      Now ${LINUX}/drivers/usb/* can use usb_endpoint_maxp(desc) to get maximum packet size
      instead of le16_to_cpu(desc->wMaxPacketSize).
      This patch fix it up
      
      Cc: Armin Fuerst <fuerst@in.tum.de>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Johannes Erdfelt <johannes@erdfelt.com>
      Cc: Vojtech Pavlik <vojtech@suse.cz>
      Cc: Oliver Neukum <oliver@neukum.name>
      Cc: David Kubicek <dave@awk.cz>
      Cc: Johan Hovold <jhovold@gmail.com>
      Cc: Brad Hards <bhards@bigpond.net.au>
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
      Cc: Thomas Dahlmann <dahlmann.thomas@arcor.de>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: David Lopo <dlopo@chipidea.mips.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Michal Nazarewicz <m.nazarewicz@samsung.com>
      Cc: Xie Xiaobo <X.Xie@freescale.com>
      Cc: Li Yang <leoli@freescale.com>
      Cc: Jiang Bo <tanya.jiang@freescale.com>
      Cc: Yuan-hsin Chen <yhchen@faraday-tech.com>
      Cc: Darius Augulis <augulis.darius@gmail.com>
      Cc: Xiaochen Shen <xiaochen.shen@intel.com>
      Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
      Cc: OKI SEMICONDUCTOR, <toshiharu-linux@dsn.okisemi.com>
      Cc: Robert Jarzmik <robert.jarzmik@free.fr>
      Cc: Ben Dooks <ben@simtec.co.uk>
      Cc: Thomas Abraham <thomas.ab@samsung.com>
      Cc: Herbert Pötzl <herbert@13thfloor.at>
      Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
      Cc: Roman Weissgaerber <weissg@vienna.at>
      Acked-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: Tony Olech <tony.olech@elandigitalsystems.com>
      Cc: Florian Floe Echtler <echtler@fs.tum.de>
      Cc: Christian Lucht <lucht@codemercs.com>
      Cc: Juergen Stuber <starblue@sourceforge.net>
      Cc: Georges Toth <g.toth@e-biz.lu>
      Cc: Bill Ryder <bryder@sgi.com>
      Cc: Kuba Ober <kuba@mareimbrium.org>
      Cc: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      29cc8897
  12. 29 6月, 2011 1 次提交
    • 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
  13. 14 4月, 2011 1 次提交
  14. 18 2月, 2011 1 次提交
  15. 23 1月, 2011 3 次提交
  16. 11 12月, 2010 2 次提交
    • R
      usb: pch_udc: Fix setup transfers with data out · ff176a4e
      Richard Röjfors 提交于
      This patch fixes an issue where the driver does not handle out data in
      setup transactions.
      
      The per endpoint cached status register is cleared in the
      pch_udc_svc_control_out function. When there is out data available the
      function pch_udc_svc_data_out is called which tries to pick it up the
      status, which now is cleared to 0. When the status is 0, the function
      doesn't start reading the data from the FIFO.
      
      There is a second bug in all this, pch_udc_svc_data_out takes the
      endpoint number (0 for EP0), while pch_udc_svc_control_out passes the
      endpoint index (1 for EP0). Effectively pch_udc_svc_data_out picks up
      the wrong internal ep structure.
      
      This patch makes sure to put back the cached status and pass the
      endpoint number rather than index when calling pch_udc_svc_data_out.
      Signed-off-by: NRichard Röjfors <richard.rojfors@pelagicore.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ff176a4e
    • R
      usb: pch_udc: Fix compile error, warnings and checkpatch warnings · 49e20834
      Richard Röjfors 提交于
      Building pch_udc in linux-next fails, this patch fixes the a compile
      error:
      
      drivers/usb/gadget/pch_udc.c: In function ‘usb_gadget_register_driver’:
      drivers/usb/gadget/pch_udc.c:2645: error: ‘struct usb_gadget_driver’ has no member named ‘bind’
      drivers/usb/gadget/pch_udc.c:2664: error: ‘struct usb_gadget_driver’ has no member named ‘bind’
      
      And a couple of compiler warnings and checkpatch warnings.
      Signed-off-by: NRichard Röjfors <richard.rojfors@pelagicore.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      49e20834
  17. 17 11月, 2010 1 次提交