1. 22 Mar, 2017 1 commit
  2. 24 Jan, 2017 4 commits
  3. 03 Jan, 2017 1 commit
  4. 15 Dec, 2016 1 commit
  5. 08 Nov, 2016 1 commit
  6. 25 Aug, 2016 4 commits
  7. 04 Mar, 2016 1 commit
  8. 14 Oct, 2015 1 commit
  9. 27 Sep, 2015 1 commit
    • Robert Baldyga's avatar
      usb: gadget: f_hid: eliminate abuse of ep->driver data · 2516a680
      Robert Baldyga authored
      Since ep->driver_data is not used for endpoint claiming, neither for
      enabled/disabled state storing, we can reduce number of places where
      we read or modify it's value, as now it has no particular meaning for
      function or framework logic.
      In case of f_hid we only need to store in ep->driver_data pointer to
      struct f_hidg, as it's used in f_hidg_req_complete() callback. All
      other uses of ep->driver_data are now meaningless and can be safely
      Signed-off-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
  10. 27 Jul, 2015 1 commit
  11. 27 Apr, 2015 1 commit
  12. 11 Mar, 2015 1 commit
  13. 23 Feb, 2015 1 commit
  14. 12 Jan, 2015 1 commit
  15. 22 Dec, 2014 1 commit
  16. 20 Nov, 2014 1 commit
  17. 18 Nov, 2014 2 commits
  18. 12 Nov, 2014 1 commit
  19. 06 Nov, 2014 6 commits
  20. 23 Oct, 2014 1 commit
  21. 16 Jul, 2014 1 commit
  22. 26 Nov, 2013 1 commit
  23. 31 Oct, 2012 1 commit
    • Sebastian Andrzej Siewior's avatar
      usb: gadget: always update HS/SS descriptors and create a copy of them · 10287bae
      Sebastian Andrzej Siewior authored
      HS and SS descriptors are staticaly created. They are updated during the
      bind process with the endpoint address, string id or interface numbers.
      After that, the descriptor chain is linked to struct usb_function which
      is used by composite in order to serve the GET_DESCRIPTOR requests,
      number of available configs and so on.
      There is no need to assign the HS descriptor only if the UDC supports
      HS speed because composite won't report those to the host if HS support
      has not been reached. The same reasoning is valid for SS.
      This patch makes sure each function updates HS/SS descriptors
      unconditionally and uses the newly introduced helper function to create a
      copy the descriptors for the speed which is supported by the UDC.
      While at that, also rename f->descriptors to f->fs_descriptors in order
      to make it more explicit what that means.
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
  24. 10 Sep, 2012 2 commits
  25. 15 Jun, 2012 1 commit
    • Daniel Mack's avatar
      usb: gadget: hidg: register OUT INT endpoint for SET_REPORT · 99c51500
      Daniel Mack authored
      The hidg function driver currently handles its SET_REPORT calls via EP0.
      This is the implicit behaviour when no OUT interrupt endpoint is
      configured and generally works fine.
      The problem is that due to EP0's role in the gadget framework, we cannot
      hold back packets and control traffic flow to sync it to the char device,
      and hence there's a high risk of loosing packets with this
      This patch adds an OUT interrupt endpoint to the interface and queues a
      fix number of request to catch SET_REPORT events. According to the
      specs, host drivers should always use the dedicated OUT endpoint when
      The char device's read implementation was rewritten to retrieve data
      from the list of completed output requests.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
  26. 18 Apr, 2012 1 commit
  27. 09 Sep, 2011 1 commit
    • Klaus Schwarzkopf's avatar
      usb gadget: clean up FSF boilerplate text · 28c9fc68
      Klaus Schwarzkopf authored
      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
      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: default avatarKlaus Schwarzkopf <schwarzkopf@sensortherm.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>