[PATCH V2 2/2] usb: gadget: storage: Remove reference counting

2018-07-03 Thread Jaejoong Kim
The kref used to be needed because sharing of fsg_common among multiple USB function instances was handled by fsg. Now this is managed by configfs, we don't need it anymore. So let's eliminate kref from this driver. Signed-off-by: Jaejoong Kim --- Changes in V2: - Rewrite commit title &

[PATCH V2 1/2] usb: gadget: storage: Add error handling for no memory

2018-07-03 Thread Jaejoong Kim
fsg_common_set_num_buffers() may fail due to ENOMEM. So add error handling for fail case. Acked-by: Alan Stern Acked-by: Michal Nazarewicz Signed-off-by: Jaejoong Kim --- Changes in V2: Add Acked-by drivers/usb/gadget/function/f_mass_storage.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH V2 0/2] usb: gadget: storage: remove kref and add error handling

2018-07-03 Thread Jaejoong Kim
Hi This series remove the reference counting and add error handling. Changes in V2: - patch #1. Add Ack-by - patch #2. Remove kref suggested by Alan and Michal Update commit message. Jaejoong Kim (2): usb: gadget: storage: Add error handling for no memory usb: gadget: storage:

Re: dwc2 (on Meson8b) doesn't detect "hot-plugged" USB devices

2018-07-03 Thread Martin Blumenstingl
Hello Minas, On Thu, May 10, 2018 at 11:44 AM Martin Blumenstingl wrote: > > Hello Minas, > > On Mon, May 7, 2018 at 3:27 PM, Minas Harutyunyan > wrote: > > Hi Martin, > > > > On 5/7/2018 12:28 AM, Martin Blumenstingl wrote: > >> Hello, > >> > >> I was a bit surprised to see that hot-plugging

[RFT] Remove USB bus reset delay from OHCI handover code

2018-07-03 Thread Alan Stern
I no longer have suitable hardware for testing this patch. If anyone with an OHCI host controller could try it out, I would like to hear if it causes any problems. Thank you all. Alan Stern Index: usb-4.x/drivers/usb/host/pci-quirks.c

[PATCH 1/3] usb: gadget: configfs: Create control_config group

2018-07-03 Thread Jerry Zhang
Control_config is a group under gadget that acts as a normal config group, except it does not appear in cdev->configs. Functions that have exactly zero descriptors can be linked into control_config. These functions are bound and unbound with the rest of the gadget, but are never enabled. Also,

[PATCH 2/3] usb: gadget: f_fs: Add FUNCTIONFS_CONTROL_ONLY flag

2018-07-03 Thread Jerry Zhang
This flag allows users to directly specify when they want a ffs instance to be used for handling control requests only via the configfs control_config/ group. When the flag is set, user must set *none* of the speed descriptor flags and provide no speeds in the descriptor. This ensures that it

[PATCH V2 3/3] Documentation: usb: Add docs for configfs control requests

2018-07-03 Thread Jerry Zhang
Add explanation and examples of how to set up control request handling with configfs. Signed-off-by: Jerry Zhang --- Changes in V2: Added changelog text Documentation/usb/gadget_configfs.txt | 34 +++ 1 file changed, 34 insertions(+) diff --git

Re: usb: dwc2: crash regression in commit 3bc04e28a030 (bisected)

2018-07-03 Thread Antti Seppälä
On 3 July 2018 at 09:56, Doug Anderson wrote: > Hi, > > On Sun, Jul 1, 2018 at 11:30 PM, Antti Seppälä wrote: >> On 30 June 2018 at 02:57, Doug Anderson wrote: >>> Hi, >>> >>> On Fri, Jun 29, 2018 at 11:29 AM, Antti Seppälä wrote: Hi Doug, John and linux-usb. I'd like to report

Re: [PATCH v3 1/3] usb: dwc3: pci: Add GPIO lookup table on platforms without ACPI GPIO resources

2018-07-03 Thread Hans de Goede
Hi, On 10-06-18 16:01, Hans de Goede wrote: Bay Trail / BYT SoCs do not have a builtin device-mode phy, instead they require an external ULPI phy for device-mode. Only some BYT devices have an external phy, but even on those devices device-mode is not working because the dwc3 does not see the

Re: [PATCH v2] USB: chipidea: Do not hang when CONFIG_USB_CHIPIDEA_ULPI is not selected

2018-07-03 Thread Shawn Guo
On Tue, Jul 03, 2018 at 07:52:07AM -0300, Fabio Estevam wrote: > Hi Shawn, > > On Tue, Jul 3, 2018 at 12:40 AM, Shawn Guo wrote: > > > We can have the options in defconfig, but they can still be turned off > > for whatever reason and we get the hang. Really, missing a user > > selectable

Re: [PATCH v2] USB: chipidea: Do not hang when CONFIG_USB_CHIPIDEA_ULPI is not selected

2018-07-03 Thread Fabio Estevam
Hi Shawn, On Tue, Jul 3, 2018 at 12:40 AM, Shawn Guo wrote: > We can have the options in defconfig, but they can still be turned off > for whatever reason and we get the hang. Really, missing a user > selectable option in defconfig shouldn't result in a system hang. Yes, 100% agree and this

Re: Particular USB port does not work with certain wifi usb device xhci_hcd

2018-07-03 Thread Jonny Grant
Hi here There are a lot of emails on this list. Do you use a bug tracker? Otherwise, I can unsubscribe, and anyone can email me on j...@jguk.org if they want to work on it. Regards Jonny On 02/07/18 21:20, Jonny Grant wrote: Hi! My ZyDAS USB wifi works well on other laptop, and this

Re: [RFC 0/5] Migrate AM35xx MUSB glue to device tree and enable MUSB

2018-07-03 Thread Tony Lindgren
* Adam Ford [180624 17:15]: > > It currently doesnt' work, but I am looking for ideas on > what I may have missed or done incorrectly. Check the drivers/phy/ti driver part and make sure that works and has pins and clocks configured. The rest should be pretty much generic stuff for musb as

Re: [RFC 3/5] ARM: OMAP2+: Add AM3517 MUSB setup to pdata quirks.

2018-07-03 Thread Tony Lindgren
* Adam Ford [180625 00:15]: > The pin muxing and clock definitions for the MUSB controller are > not done through the same registers/pin mux options, so this > explicitly configures the registers and pin-mux options for MUSB > on AM3517-EVM > > Signed-off-by: Adam Ford > > diff --git

Re: usb: dwc2: crash regression in commit 3bc04e28a030 (bisected)

2018-07-03 Thread Doug Anderson
Hi, On Sun, Jul 1, 2018 at 11:30 PM, Antti Seppälä wrote: > On 30 June 2018 at 02:57, Doug Anderson wrote: >> Hi, >> >> On Fri, Jun 29, 2018 at 11:29 AM, Antti Seppälä wrote: >>> Hi Doug, John and linux-usb. >>> >>> I'd like to report a regression in commit 3bc04e28a030 (usb: dwc2: >>> host:

Re: [PATCH 3/3] Documentation: usb: Add docs for configfs control requests

2018-07-03 Thread Greg Kroah-Hartman
On Mon, Jul 02, 2018 at 03:01:03PM -0700, Jerry Zhang wrote: > Signed-off-by: Jerry Zhang > --- > Documentation/usb/gadget_configfs.txt | 34 +++ > 1 file changed, 34 insertions(+) I can't take patches without any changelog text at all, sorry. greg k-h -- To unsubscribe