1. 18 3月, 2015 1 次提交
  2. 02 9月, 2014 1 次提交
  3. 17 7月, 2014 1 次提交
  4. 18 12月, 2013 1 次提交
  5. 26 11月, 2013 3 次提交
  6. 25 10月, 2013 1 次提交
  7. 18 10月, 2013 1 次提交
  8. 15 10月, 2013 1 次提交
  9. 10 10月, 2013 14 次提交
  10. 01 10月, 2013 4 次提交
  11. 18 9月, 2013 1 次提交
  12. 28 8月, 2013 1 次提交
    • G
      USB: gadget: audit sysfs attribute permissions · ce26bd23
      Greg Kroah-Hartman 提交于
      Convert all USB gadget sysfs attributes to use the _RO or _RW variants,
      to make them easier to audit and ensure that the permissions are
      correct.
      
      Note, two are left using the DEVICE_ATTR() macro, as there is no
      DEVICE_ATTR_WO() in Linus's tree, that will happen after 3.12-rc1 is
      out, a follow-on patch will be sent then.
      Reviewed-by: NFelipe Balbi <balbi@ti.com>
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      
      --
       drivers/usb/gadget/composite.c      |    8 +++-----
       drivers/usb/gadget/dummy_hcd.c      |    8 ++++----
       drivers/usb/gadget/f_mass_storage.c |   14 ++++++--------
       drivers/usb/gadget/net2272.c        |    4 ++--
       drivers/usb/gadget/net2280.c        |   18 +++++++++---------
       drivers/usb/gadget/storage_common.c |   25 ++++++++++++-------------
       drivers/usb/gadget/udc-core.c       |   14 +++++++-------
       7 files changed, 43 insertions(+), 48 deletions(-)
      ce26bd23
  13. 09 8月, 2013 1 次提交
    • J
      usb: gadget: f_mass_storage: use NULL instead of 0 · 136c489b
      Jingoo Han 提交于
      The local variables such as 'filename', 'vendor_name', and
      'product_name' are pointers; thus, use NULL instead of 0 to fix
      the following sparse warnings
      
      drivers/usb/gadget/f_mass_storage.c:3046:27: warning: Using plain integer as NULL pointer
      drivers/usb/gadget/f_mass_storage.c:3050:28: warning: Using plain integer as NULL pointer
      drivers/usb/gadget/f_mass_storage.c:3051:29: warning: Using plain integer as NULL pointer
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      136c489b
  14. 13 6月, 2013 1 次提交
  15. 10 6月, 2013 1 次提交
  16. 23 2月, 2013 1 次提交
  17. 10 1月, 2013 2 次提交
  18. 08 11月, 2012 1 次提交
  19. 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
  20. 10 9月, 2012 2 次提交
    • S
      usb: gadget: remove usb_gadget_controller_number() · ed9cbda6
      Sebastian Andrzej Siewior 提交于
      The bcdDevice field is defined as
      |Device release number in binary-coded decimal
      in the USB 2.0 specification. We use this field to distinguish the UDCs
      from each other. In theory this could be used on the host side to apply
      certain quirks if the "special" UDC in combination with this gadget is
      used. This hasn't been done as far as I am aware. In practice it would
      be better to fix the UDC driver before shipping since a later release
      might not need this quirk anymore.
      
      There are some driver in tree (on the host side) which use the bcdDevice
      field to figure out special workarounds for a given firmware revision.
      This seems to make sense. Therefore this patch converts all gadgets
      (except a few) to use the kernel version instead a random 2 or 3 plus
      the UDC number. The few that don't report kernel's version are:
      - webcam
        This one reports always a version 0x10 so allow it to do so in future.
      - nokia
        This one reports always 0x211. The comment says that this gadget works
        only if the UDC supports altsettings so I added a check for this.
      - serial
        This one reports 0x2400 + UDC number. Since the gadget version is 2.4
        this could make sense. Therefore bcdDevice is 0x2400 here.
      
      I also remove various gadget_is_<name> macros which are unused. The
      remaining few macros should be moved to feature / bug bitfield.
      Acked-by: NMichal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      ed9cbda6
    • S
      usb: gadget: Provide a default implementation of default manufacturer string · cc2683c3
      Sebastian Andrzej Siewior 提交于
      Some gadgets provide custom entry here. Some may override it with an
      etntry that is also created by composite if there was no value sumbitted
      at all.
      This patch removes all "custom manufacturer" strings which are the same
      as these which are created by composite. Then it moves the creation of
      the default manufacturer string to usb_composite_overwrite_options() in
      case no command line argument has been used and the entry is still an
      empty string.
      By doing this we get rid of the global variable "composite_manufacturer"
      in composite.
      Acked-by: NMichal Nazarewicz <mina86@mina86.com>
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      cc2683c3