1. 22 3月, 2017 1 次提交
  2. 24 1月, 2017 4 次提交
  3. 03 1月, 2017 1 次提交
  4. 15 12月, 2016 1 次提交
  5. 08 11月, 2016 1 次提交
  6. 25 8月, 2016 4 次提交
  7. 04 3月, 2016 1 次提交
  8. 14 10月, 2015 1 次提交
  9. 27 9月, 2015 1 次提交
    • R
      usb: gadget: f_hid: eliminate abuse of ep->driver data · 2516a680
      Robert Baldyga 提交于
      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
      removed.
      Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      2516a680
  10. 27 7月, 2015 1 次提交
  11. 28 4月, 2015 1 次提交
  12. 11 3月, 2015 1 次提交
  13. 23 2月, 2015 1 次提交
  14. 13 1月, 2015 1 次提交
  15. 23 12月, 2014 1 次提交
  16. 20 11月, 2014 1 次提交
  17. 18 11月, 2014 2 次提交
  18. 12 11月, 2014 1 次提交
  19. 07 11月, 2014 6 次提交
  20. 24 10月, 2014 1 次提交
  21. 17 7月, 2014 1 次提交
  22. 27 11月, 2013 1 次提交
  23. 31 10月, 2012 1 次提交
    • S
      usb: gadget: always update HS/SS descriptors and create a copy of them · 10287bae
      Sebastian Andrzej Siewior 提交于
      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: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      10287bae
  24. 10 9月, 2012 2 次提交
  25. 15 6月, 2012 1 次提交
    • D
      usb: gadget: hidg: register OUT INT endpoint for SET_REPORT · 99c51500
      Daniel Mack 提交于
      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
      implementation.
      
      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
      present.
      
      The char device's read implementation was rewritten to retrieve data
      from the list of completed output requests.
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      99c51500
  26. 19 4月, 2012 1 次提交
  27. 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