public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC/PATCH 0/2] patchset to workaround f_fs for DWC3
@ 2013-10-29  1:12 David Cohen
  2013-10-29  1:12 ` [RFC/PATCH 1/2] usb: gadget: re-introduce gadget_is_dwc3() David Cohen
  2013-10-29  1:13 ` [RFC/PATCH 2/2] usb: ffs/dwc3: pad epout buffer size when not aligned to maxpacketsize David Cohen
  0 siblings, 2 replies; 6+ messages in thread
From: David Cohen @ 2013-10-29  1:12 UTC (permalink / raw)
  To: balbi, gregkh; +Cc: linux-usb, linux-kernel, David Cohen

Hi,

These patches are a proposal to workaround f_fs when using DWC3 controller.
Since DWC3 requires epout buffer size to be aligned to maxpacketsize, f_fs
needs to pad buffer size to match the above case.

This change is necessary to make Android's adbd service to work with f_fs
instead of out-of-tree android gadget. If this same situation is happening in
other still untested places, a more generic solution may be required.

---
David Cohen (2):
  usb: gadget: re-introduce gadget_is_dwc3()
  usb: ffs/dwc3: pad epout buffer size when not aligned to maxpacketsize

 drivers/usb/gadget/f_fs.c         | 19 +++++++++++++++++++
 drivers/usb/gadget/gadget_chips.h |  1 +
 2 files changed, 20 insertions(+)

-- 
1.8.4.rc3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-29 14:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29  1:12 [RFC/PATCH 0/2] patchset to workaround f_fs for DWC3 David Cohen
2013-10-29  1:12 ` [RFC/PATCH 1/2] usb: gadget: re-introduce gadget_is_dwc3() David Cohen
2013-10-29 13:34   ` Felipe Balbi
2013-10-29  1:13 ` [RFC/PATCH 2/2] usb: ffs/dwc3: pad epout buffer size when not aligned to maxpacketsize David Cohen
2013-10-29 13:37   ` Felipe Balbi
2013-10-29 14:24     ` David Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox