1. 03 11月, 2016 7 次提交
  2. 31 10月, 2016 2 次提交
    • F
      usb: gadget: composite: always set ep->mult to a sensible value · eaa496ff
      Felipe Balbi 提交于
      ep->mult is supposed to be set to Isochronous and
      Interrupt Endapoint's multiplier value. This value
      is computed from different places depending on the
      link speed.
      
      If we're dealing with HighSpeed, then it's part of
      bits [12:11] of wMaxPacketSize. This case wasn't
      taken into consideration before.
      
      While at that, also make sure the ep->mult defaults
      to one so drivers can use it unconditionally and
      assume they'll never multiply ep->maxpacket to zero.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      eaa496ff
    • F
      usb: gadget: composite: correctly initialize ep->maxpacket · e8f29bb7
      Felipe Balbi 提交于
      usb_endpoint_maxp() returns wMaxPacketSize in its
      raw form. Without taking into consideration that it
      also contains other bits reserved for isochronous
      endpoints.
      
      This patch fixes one occasion where this is a
      problem by making sure that we initialize
      ep->maxpacket only with lower 10 bits of the value
      returned by usb_endpoint_maxp(). Note that seperate
      patches will be necessary to audit all call sites of
      usb_endpoint_maxp() and make sure that
      usb_endpoint_maxp() only returns lower 10 bits of
      wMaxPacketSize.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      e8f29bb7
  3. 17 10月, 2016 4 次提交
  4. 12 10月, 2016 1 次提交
  5. 28 9月, 2016 1 次提交
  6. 20 9月, 2016 1 次提交
    • A
      [media] usb: gadget: uvc: add V4L2 dependency · d1463e52
      Arnd Bergmann 提交于
      Building the UVC gadget into the kernel fails to build when
      CONFIG_VIDEO_V4L2 is a loadable module:
      
      drivers/usb/gadget/function/usb_f_uvc.o: In function `uvc_function_ep0_complete':
      uvc_configfs.c:(.text.uvc_function_ep0_complete+0x84): undefined reference to `v4l2_event_queue'
      drivers/usb/gadget/function/usb_f_uvc.o: In function `uvc_function_disable':
      uvc_configfs.c:(.text.uvc_function_disable+0x34): undefined reference to `v4l2_event_queue'
      
      Adding a dependency in USB_CONFIGFS_F_UVC (which is a bool symbol)
      make the 'select USB_F_UVC' statement turn the USB_F_UVC into 'm'
      whenever CONFIG_VIDEO_V4L2=m too, avoiding the link failure.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      d1463e52
  7. 19 9月, 2016 1 次提交
  8. 13 9月, 2016 1 次提交
    • A
      usb: gadget: uvc: add V4L2 dependency · e6be244a
      Arnd Bergmann 提交于
      Building the UVC gadget into the kernel fails to build when
      CONFIG_VIDEO_V4L2 is a loadable module:
      
      drivers/usb/gadget/function/usb_f_uvc.o: In function `uvc_function_ep0_complete':
      uvc_configfs.c:(.text.uvc_function_ep0_complete+0x84): undefined reference to `v4l2_event_queue'
      drivers/usb/gadget/function/usb_f_uvc.o: In function `uvc_function_disable':
      uvc_configfs.c:(.text.uvc_function_disable+0x34): undefined reference to `v4l2_event_queue'
      
      Adding a dependency in USB_CONFIGFS_F_UVC (which is a bool symbol)
      make the 'select USB_F_UVC' statement turn the USB_F_UVC into 'm'
      whenever CONFIG_VIDEO_V4L2=m too, avoiding the link failure.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      e6be244a
  9. 09 9月, 2016 3 次提交
  10. 08 9月, 2016 1 次提交
  11. 06 9月, 2016 1 次提交
  12. 05 9月, 2016 1 次提交
  13. 02 9月, 2016 1 次提交
  14. 31 8月, 2016 8 次提交
  15. 29 8月, 2016 4 次提交
  16. 26 8月, 2016 1 次提交
  17. 25 8月, 2016 2 次提交