RE: dwc3 initiated xhci probe problem in arm64 4.4 kernel due to DMA setup

2016-04-15 Thread David Fisher
writes: >>>>>> On Fri, Apr 15, 2016 at 11:01:08AM +0100, Catalin Marinas wrote: >>>>>>> On Fri, Apr 15, 2016 at 12:49:15PM +0300, Felipe Balbi wrote: >>>>>>>> Catalin Marinas writes: >>>>>>>>> On Thu, Apr 14, 2

dwc3 initiated xhci probe problem in arm64 4.4 kernel due to DMA setup

2016-04-14 Thread David Fisher
dwc3 is in dual-role, with "synopsys,dwc3" specified in DT. When xhci is probed, initiated from dwc3/host.c (not DT), we get : xhci-hcd: probe of xhci-hcd.7.auto failed with error -5 This -EIO error originated from inside dma_set_mask() down in include/asm-generic/dma-mapping-common.h If "generi

RE: Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-22 Thread David Fisher
alf Of Michal Nazarewicz Sent: 19 June 2015 23:18 To: Felipe Balbi Cc: David Fisher; linux-usb@vger.kernel.org; Andrew Sinclair Subject: Re: Configfs usb mass_storage device always reports 8 LUNs ? On Fri, Jun 19 2015, Felipe Balbi wrote: > the fact is that this needs to be configurable from c

Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-19 Thread David Fisher
diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c index 3cc109f..f502f00 100644 --- a/drivers/usb/gadget/function/f_mass_storage.c +++ b/drivers/usb/gadget/function/f_mass_storage.c @@ -2796,8 +2796,6 @@ int fsg_common_set_nluns(struct fsg_com

Configfs usb mass_storage device always reports 8 LUNs ?

2015-06-19 Thread David Fisher
Hi all, I'm running 4.1-rc4 (Linaro 5.15) and trying to create a mass storage gadget via configfs, with default 1 LUN (lun.0). As the configfs progresses, I see "Number of LUNs=8". And when plugged in, the USB class specific getMaxLun request returns 7. In some Windows drivers (but not some ot