1. 14 9月, 2015 1 次提交
  2. 06 8月, 2015 8 次提交
  3. 05 8月, 2015 4 次提交
  4. 26 5月, 2015 1 次提交
  5. 09 1月, 2014 1 次提交
  6. 18 12月, 2013 1 次提交
    • R
      usb: gadget: add "maxpacket_limit" field to struct usb_ep · e117e742
      Robert Baldyga 提交于
      This patch adds "maxpacket_limit" to struct usb_ep. This field contains
      maximum value of maxpacket supported by driver, and is set in driver probe.
      This value should be used by autoconfig() function, because value of field
      "maxpacket" is set to value from endpoint descriptor when endpoint becomes
      enabled. So when autoconfig() function will be called again for this endpoint,
      "maxpacket" value will contain wMaxPacketSize from descriptior instead of
      maximum packet size for this endpoint.
      
      For this reason this patch adds new field "maxpacket_limit" which contains
      value of maximum packet size (which defines maximum endpoint capabilities).
      This value is used in ep_matches() function used by autoconfig().
      
      Value of "maxpacket_limit" should be set in UDC driver probe function, using
      usb_ep_set_maxpacket_limit() function, defined in gadget.h. This function
      set choosen value to both "maxpacket_limit" and "maxpacket" fields.
      
      This patch modifies UDC drivers by adding support for maxpacket_limit.
      Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      e117e742
  7. 27 11月, 2013 1 次提交
  8. 10 9月, 2012 2 次提交
  9. 09 2月, 2012 1 次提交
    • S
      usb: gadget: clean the ep in autoconf before returning it. · 609ca228
      Sebastian Andrzej Siewior 提交于
      Since commit 72c973dd aka ("usb: gadget: add usb_endpoint_descriptor to
      struct usb_ep) the descriptor is part of the ep. Most gadgets like
      g_zero or masstorage call config_ep_by_speed() to grab an available
      endpoint which may be used for FS/HS/SS bulk/iso/intr and in a second
      they assign the proper descriptor by calling config_ep_by_speed(). This
      is good so far. A few of them like ncm call config_ep_by_speed() only if
      ep->desc not assigned earlier. That means ep->desc is never assigned if
      the endpoint was used by another gadget before it was removed.
      
      Some of those gadgets also assign ep->driver_data to NULL on reset or
      ep_disable part _but_ keep a reference to this endpoint. At ep_enable
      time they assign driver_data to their private data. This probably needs
      a clean up of its own.
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      609ca228
  10. 24 1月, 2012 1 次提交
    • S
      usb: gadget: check for streams only for SS udcs · c74c9300
      Sebastian Andrzej Siewior 提交于
      Currently the UASP gadget fails to bind on an UDC which does not provide
      stream support. This is true for all udc in tree except for dummy and
      dwc3 since they don't support SuperSpeed.
      There is no need to test for the availability of stream support on those
      UDCs because we will never even try to use them. I think it is sane to
      assume that StreamSupport is always available on SuperSpeed since it is
      one of the key features.
      The host side will only allocate on SS so this part is also fine.
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      c74c9300
  11. 19 12月, 2011 1 次提交
    • F
      usb: gadget: epautoconf: do not change number of streams · 7422ba53
      Felipe Balbi 提交于
      We should not change gadget driver's descriptors just
      because we think it's right to do so.
      
      There are several of reasons which would support this
      statement but it suffices to say that this was probably
      never tested because it updates bmAttributes without
      asking the driver if it's ok to do so.
      
      This means that e.g. on UASP gadget it would enable
      stream support even for the command endpoint which must
      not have stream support enabled.
      
      In fact, this change is fixing the bug introduced by
      commit a59d6b91 (usb: gadget: add streams support to
      the gadget framework) which was caught when testing
      UASP gadget with dwc3 driver.
      
      Cc: Tatyana Brokhman <tlinder@codeaurora.org>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      7422ba53
  12. 12 12月, 2011 1 次提交
  13. 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
  14. 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
  15. 02 7月, 2011 1 次提交
  16. 29 6月, 2011 2 次提交
  17. 05 2月, 2011 1 次提交
  18. 21 5月, 2010 1 次提交
  19. 19 3月, 2010 1 次提交
  20. 03 3月, 2010 3 次提交
  21. 25 3月, 2009 1 次提交
  22. 08 1月, 2009 1 次提交
  23. 22 7月, 2008 1 次提交
    • D
      usb gadget: descriptor copying support · a4c39c41
      David Brownell 提交于
      Define three new descriptor manipulation utilities, for use when
      setting up functions that may have multiple instances:
      
      	usb_copy_descriptors() to copy a vector of descriptors
      	usb_free_descriptors() to free the copy
      	usb_find_endpoint() to find a copied version
      
      These will be used as follows.  Functions will continue to have static
      tables of descriptors they update, now used as __initdata templates.
      
      When a function creates a new instance, it patches those tables with
      relevant interface and string IDs, plus endpoint assignments.  Then it
      copies those morphed descriptors, associates the copies with the new
      function instance, and records the endpoint descriptors to use when
      activating the endpoints.  When initialization is done, only the copies
      remain in memory.  The copies are freed on driver removal.
      
      This ensures that each instance has descriptors which hold the right
      instance-specific data.  Two instances in the same configuration will
      obviously never share the same interface IDs or use the same endpoints.
      Instances in different configurations won't do so either, which means
      this is slightly less memory-efficient in some cases.
      
      This also includes a bugfix to the epautoconf code that shows up with
      this usage model.  It must replace the previous endpoint number when
      updating the template descriptors, not just mask in a few more bits.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a4c39c41
  24. 25 4月, 2008 1 次提交
  25. 13 10月, 2007 1 次提交
  26. 31 7月, 2007 1 次提交