Re: [PATCH 1/1] Fixed to checkpatch errors to usbtmc.c

2016-12-07 Thread Greg Kroah-Hartman
On Tue, Dec 06, 2016 at 02:57:00PM +0200, Ozgur Karatas wrote: > Hello all, This isn't needed in a changelog text. > I will solve a checkpatch.pl script errors. > drivers/usb/class/usbtmc.c:719: ERROR: else should follow close brace '}' > drivers/usb/class/usbtmc.c:735: ERROR: space required aft

RE: [PATCH v13 00/10] usbip: exporting devices

2016-12-07 Thread fx IWATA NOBUO
Hello, > Generally what this series does is just changing the initiator role. Please note that this series 'adds' new operation. Current (bind-and attach) operation is kept as it is. New operation is available if the new daemon is started. > 1) I would like to see some real numbers of performanc

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-07 Thread Jerry Huang
Hi, Balbi, Sorry for later responding. I tested Linux 4.8, 4.7, 4.6 and 4.5, has the same issue: [0.756166] xhci-hcd: probe of xhci-hcd.0.auto failed with error -5 Then I found one patch (dwc3 initiated xhci probe problem in arm64 4.4 kernel due to DMA setup) as below link, and I applied this

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-07 Thread Felipe Balbi
(no top-posting, please. It's the 2nd time I'm asking) Hi, Jerry Huang writes: > Hi, Balbi, > Sorry for later responding. > I tested Linux 4.8, 4.7, 4.6 and 4.5, has the same issue: > [0.756166] xhci-hcd: probe of xhci-hcd.0.auto failed with error -5 > > Then I found one patch (dwc3 initiat

Re: [PATCH v13 05/10] usbip: exporting devices: modifications to daemon

2016-12-07 Thread Krzysztof Opasiak
On 12/07/2016 01:05 AM, fx IWATA NOBUO wrote: > Hello, > >> how about usbip_meta_driver_set(type)? > > Good. > > I'd like to confirm the 'type' parameter. > > #define USBIP_DRIVER_TYPE_HOST 0 > #define USBIP_DRIVER_TYPE_DEVICE 1 > > Then usbip_meta_driver_init should not be included. > It

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-07 Thread Felipe Balbi
Hi, Jerry Huang writes: >> Jerry Huang writes: >> > Hi, Balbi, >> > Sorry for later responding. >> > I tested Linux 4.8, 4.7, 4.6 and 4.5, has the same issue: >> > [0.756166] xhci-hcd: probe of xhci-hcd.0.auto failed with error -5 >> > >> > Then I found one patch (dwc3 initiated xhci probe

Re: [PATCHv13 2/3] usb: USB Type-C connector class

2016-12-07 Thread Heikki Krogerus
On Fri, Dec 02, 2016 at 10:04:39AM -0800, Guenter Roeck wrote: > At least for my part I very much concentrated on making sure that > the user space ABI as well as the port driver API are sane and usable. > > The driver interface is not my area of expertise. As such, my testing > and understanding

Re: [PATCH v2 RESEND] usb: gadget: udc-core: Rescan pending list on driver unbind

2016-12-07 Thread Krzysztof Opasiak
Hi Alan, On 12/06/2016 09:21 PM, Alan Stern wrote: > Krzysztof: > > Your patch doesn't address a bug that has been present in > usb_add_gadget_udc_release() for some time. If the bind callback fails > with any error other than -EPROBE_DEFER, the driver remains unbound to > the gadget but it is n

Re: [PATCHv13 2/3] usb: USB Type-C connector class

2016-12-07 Thread Oliver Neukum
On Fri, 2016-12-02 at 10:04 -0800, Guenter Roeck wrote: Hi, > At least for my part I very much concentrated on making sure that > the user space ABI as well as the port driver API are sane and usable. Rightly so, as this part cannot be changed once included in a kernel release. So, can we agree

Re: [PATCH] usb: gadget: udc: atmel: Fix check in usba_ep_enable()

2016-12-07 Thread Boris Brezillon
On Tue, 6 Dec 2016 22:59:43 +0100 Boris Brezillon wrote: > desc->bEndpointAddress & USB_ENDPOINT_NUMBER_MASK is not necessarily > equal to ep->index and that's perfectly fine. The usba endpoint index is > just an internal identifier used by the driver to know which registers > to use for a USB e

[PATCH] usb: misc: rio500: fix result type for error message

2016-12-07 Thread Kim Jae Joong
Fix variable type for dev_err about usb_bulk_msg() Signed-off-by: Kim Jae Joong --- drivers/usb/misc/rio500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/misc/rio500.c b/drivers/usb/misc/rio500.c index 13731d5..fc329c9 100644 --- a/drivers/usb/misc/rio500.c ++

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-07 Thread Jerry Huang
Hi, Balbi, > -Original Message- > From: Felipe Balbi [mailto:felipe.ba...@linux.intel.com] > Sent: Wednesday, December 07, 2016 5:11 PM > To: Jerry Huang ; st...@rowland.harvard.edu; > linux-usb@vger.kernel.org; Mathias Nyman > ; Arnd Bergmann > Cc: Sriram Dash ; Greg Kroah-Hartman > > Su

Re: usb/gadget: use-after-free in gadgetfs_setup

2016-12-07 Thread Andrey Konovalov
On Tue, Dec 6, 2016 at 9:30 PM, Alan Stern wrote: > [CC: list drastically trimmed] > > On Tue, 6 Dec 2016, Andrey Konovalov wrote: > >> On Tue, Dec 6, 2016 at 1:28 PM, Andrey Konovalov >> wrote: >> > On Mon, Dec 5, 2016 at 8:31 PM, Alan Stern >> > wrote: >> >> On Mon, 5 Dec 2016, Andrey Konova

Re: [PATCH] add dlink dwm-158 to usb-serial-option

2016-12-07 Thread Johan Hovold
On Tue, Dec 06, 2016 at 09:24:19PM +0100, Giuseppe Lippolis wrote: > I try to attach the file. This still wouldn't apply without some manual intervention. Next time, try sending the patch to yourself first (e.g. using git-send-email) and make sure you can apply the result with git-am. > Adding re

Re: [PATCH 1/2] usb: dwc3: gadget: Fix full speed mode

2016-12-07 Thread Roger Quadros
Hi, On 29/11/16 14:28, Roger Quadros wrote: > Hi, > > On 29/11/16 13:51, Felipe Balbi wrote: >> >> Hi, >> >> Roger Quadros writes: >>> DCFG.DEVSPD == 0x3 is not valid and we need to set >>> DCFG.DEVSPD to 0x1 for full speed mode. >> >> seems like it has been made invalid somewhere between 1.73a

[PATCH] usb: chipidea: use better pattern with WARN_ON()

2016-12-07 Thread Atul Raj
Instead of using: if (cond) { WARN_ON(1); do_stuff(); } Use a better pattern with WARN_ON() placed in if condition: if (WARN_ON(cond)) do_stuff(); Signed-off-by: Atul Raj --- drivers/usb/chipidea/core.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/driver

[PATCH] usb: chipidea: use better pattern with WARN_ON()

2016-12-07 Thread Atul Raj
Instead of using: if (cond) { WARN_ON(1); do_stuff(); } Use a better pattern with WARN_ON() placed in if condition: if (WARN_ON(cond)) do_stuff(); Signed-off-by: Atul Raj --- drivers/usb/chipidea/ci_hdrc_imx.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a

Re: [PATCH 1/1] NET: usb: cdc_ncm: adding MBIM RESET_FUNCTION request and modifying ncm bind common code

2016-12-07 Thread Daniele Palmas
2016-12-05 14:04 GMT+01:00 Daniele Palmas : > Hi, > > 2016-12-05 11:10 GMT+01:00 Bjørn Mork : >> Daniele Palmas writes: >> >>> I went back to this and further checking revealed that MBIM function >>> reset is not needed and the only problem is related to commit >>> 48906f62c96cc2cd35753e59310cb70e

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-07 Thread Jerry Huang
> -Original Message- > From: Felipe Balbi [mailto:felipe.ba...@linux.intel.com] > Sent: Wednesday, December 07, 2016 4:41 PM > To: Jerry Huang ; st...@rowland.harvard.edu; > linux-usb@vger.kernel.org; Mathias Nyman > ; Arnd Bergmann > Cc: Sriram Dash ; Greg Kroah-Hartman > > Subject: RE:

Re: [PATCH 00/25] usb: host: xhci: cleanup series

2016-12-07 Thread Felipe Balbi
Hi, Felipe Balbi writes: > hi Mathias, > > here's a much longer series of cleanups which I have been working on for > the past few days. Let me know what you think about it. > > I did some light tests SKL and everything still works as before. I know > you have some reservations about my changes

Re: [PATCH 1/2] usb: dwc3: gadget: Fix full speed mode

2016-12-07 Thread Felipe Balbi
Hi, Roger Quadros writes: >>> Roger Quadros writes: DCFG.DEVSPD == 0x3 is not valid and we need to set DCFG.DEVSPD to 0x1 for full speed mode. >>> >>> seems like it has been made invalid somewhere between 1.73a and >>> 2.60a. Can you figure it out from Documentation why and when it wa

Re: ch341

2016-12-07 Thread Russell Senior
Hi, I just bought a bag of usb-serial converters off of ebay, from china for super low price (~$2/each). I just plugged a couple of them in, connected together through a null-modem adapter. When I plug them, on both stock ubuntu 16.04's kernel and 4.8.9 built from git, I get a reasonable lookin

[PATCH 1/1] NET: usb: cdc_mbim: add quirk for supporting Telit LE922A

2016-12-07 Thread Daniele Palmas
Telit LE922A MBIM based composition does not work properly with altsetting toggle done in cdc_ncm_bind_common. This patch adds CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE quirk to avoid this procedure that, instead, is mandatory for other modems. Signed-off-by: Daniele Palmas --- drivers/net/usb/cdc_

[PATCH 0/1] NET: usb: cdc_mbim: add quirk for supporting Telit LE922A

2016-12-07 Thread Daniele Palmas
Telit LE922A MBIM based composition does not work properly with altsetting toggle done in cdc_ncm_bind_common. This patch adds CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE quirk to avoid this procedure that, instead, is mandatory for other modems. References: https://www.spinics.net/lists/linux-usb/msg1

Re: [PATCHv13 2/3] usb: USB Type-C connector class

2016-12-07 Thread Heikki Krogerus
Hi Oliver, On Wed, Dec 07, 2016 at 10:46:48AM +0100, Oliver Neukum wrote: > On Fri, 2016-12-02 at 10:04 -0800, Guenter Roeck wrote: > > Hi, > > > At least for my part I very much concentrated on making sure that > > the user space ABI as well as the port driver API are sane and usable. > > Righ

Re: [PATCH] usb: chipidea: use better pattern with WARN_ON()

2016-12-07 Thread Greg KH
On Wed, Dec 07, 2016 at 05:46:09PM +0530, Atul Raj wrote: > Instead of using: > if (cond) { >WARN_ON(1); >do_stuff(); > } > > Use a better pattern with WARN_ON() placed in if condition: > > if (WARN_ON(cond)) >do_stuff(); Why? What does this help with? And why are you sending patch

Re: ch341

2016-12-07 Thread Johan Hovold
On Wed, Dec 07, 2016 at 04:42:21AM -0800, Russell Senior wrote: > I just bought a bag of usb-serial converters off of ebay, from china for > super low price (~$2/each). I just plugged a couple of them in, > connected together through a null-modem adapter. When I plug them, on > both stock ubuntu

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-07 Thread Felipe Balbi
Hi, Jerry Huang writes: >> Jerry Huang writes: >> >> Jerry Huang writes: >> >> > Hi, Balbi, >> >> > Sorry for later responding. >> >> > I tested Linux 4.8, 4.7, 4.6 and 4.5, has the same issue: >> >> > [0.756166] xhci-hcd: probe of xhci-hcd.0.auto failed with error -5 >> >> > >> >> > Then

[PATCH 1/3] usb: gadget: udc-core: Rescan pending list on driver unbind

2016-12-07 Thread Krzysztof Opasiak
Since: commit 855ed04a3758 ("usb: gadget: udc-core: independent registration of gadgets and gadget drivers") if we load gadget module but there is no free udc available then it will be stored on a pending gadgets list. $ modprobe g_zero.ko $ modprobe g_ether.ko [] udc-core: couldn't find an avai

[PATCH 3/3] usb: gadget: udc: core: Continue driver search if bind failed

2016-12-07 Thread Krzysztof Opasiak
If we found a matching driver but its bind() function failed for some reason, let's continue our search as there may be some other gadget pending on a list which bind() will succeed for this udc. Reported-by: Alan Stern Signed-off-by: Krzysztof Opasiak --- drivers/usb/gadget/udc/core.c | 12 +++

[PATCH 2/3] usb: gadget: udc: core: Reinit pending list node

2016-12-07 Thread Krzysztof Opasiak
Use list_del_init() instead of list_del() in case if gadget driver bind() fails to avaid troubles during usb_gadget_unregister_driver(). Reported-by: Alan Stern Signed-off-by: Krzysztof Opasiak --- drivers/usb/gadget/udc/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH 1/1] NET: usb: cdc_mbim: add quirk for supporting Telit LE922A

2016-12-07 Thread Bjørn Mork
Daniele Palmas writes: > Telit LE922A MBIM based composition does not work properly > with altsetting toggle done in cdc_ncm_bind_common. > > This patch adds CDC_MBIM_FLAG_AVOID_ALTSETTING_TOGGLE quirk > to avoid this procedure that, instead, is mandatory for > other modems. > > Signed-off-by: Da

RE: Re: [PATCH] usb: chipidea: use better pattern with WARN_ON()

2016-12-07 Thread Atul Raj
On 7 Dec 2016 18:56, "Greg KH" wrote: > > On Wed, Dec 07, 2016 at 05:46:09PM +0530, Atul Raj wrote: > > Instead of using: > > if (cond) { > >WARN_ON(1); > >do_stuff(); > > } > > > > Use a better pattern with WARN_ON() placed in if condition: > > > > if (WARN_ON(cond)) > >do

Re: [PATCH 00/25] usb: host: xhci: cleanup series

2016-12-07 Thread Mathias Nyman
On 07.12.2016 14:41, Felipe Balbi wrote: Hi, Felipe Balbi writes: hi Mathias, here's a much longer series of cleanups which I have been working on for the past few days. Let me know what you think about it. I did some light tests SKL and everything still works as before. I know you have som

Re: [PATCH] usb: misc: rio500: fix result type for error message

2016-12-07 Thread Greg KH
On Wed, Dec 07, 2016 at 08:12:10PM +0900, Kim Jae Joong wrote: > Fix variable type for dev_err about usb_bulk_msg() What was wrong with it before this change? What warning are you "changing"? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of

Re: Re: [PATCH] usb: chipidea: use better pattern with WARN_ON()

2016-12-07 Thread Greg KH
On Wed, Dec 07, 2016 at 03:00:29PM +, Atul Raj wrote: > On 7 Dec 2016 18:56, "Greg KH" wrote: > > > > On Wed, Dec 07, 2016 at 05:46:09PM +0530, Atul Raj wrote: > > > Instead of using: > > > if (cond) { > > >WARN_ON(1); > > >do_stuff(); > > > } > > > > > > Use a better pattern

Re: [PATCH 3/3] usb: gadget: udc: core: Continue driver search if bind failed

2016-12-07 Thread Alan Stern
On Wed, 7 Dec 2016, Krzysztof Opasiak wrote: > If we found a matching driver but its bind() function failed for some > reason, let's continue our search as there may be some other gadget > pending on a list which bind() will succeed for this udc. > > Reported-by: Alan Stern > Signed-off-by: Krzy

[PATCH v2 1/3] usb: gadget: udc-core: Rescan pending list on driver unbind

2016-12-07 Thread Krzysztof Opasiak
Since: commit 855ed04a3758 ("usb: gadget: udc-core: independent registration of gadgets and gadget drivers") if we load gadget module but there is no free udc available then it will be stored on a pending gadgets list. $ modprobe g_zero.ko $ modprobe g_ether.ko [] udc-core: couldn't find an avai

[PATCH v2 3/3] usb: gadget: udc: core: Continue driver search if bind failed

2016-12-07 Thread Krzysztof Opasiak
If we found a matching driver but its bind() function failed for some reason, let's continue our search as there may be some other gadget pending on a list which bind() will succeed for this udc. Reported-by: Alan Stern Signed-off-by: Krzysztof Opasiak --- Changes since v1: - break from the loop

[PATCH v2 2/3] usb: gadget: udc: core: Reinit pending list node

2016-12-07 Thread Krzysztof Opasiak
Use list_del_init() instead of list_del() in case if gadget driver bind() fails to avaid troubles during usb_gadget_unregister_driver(). Reported-by: Alan Stern Signed-off-by: Krzysztof Opasiak --- drivers/usb/gadget/udc/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH 3/3] usb: gadget: udc: core: Continue driver search if bind failed

2016-12-07 Thread Krzysztof Opasiak
On 12/07/2016 04:31 PM, Alan Stern wrote: > On Wed, 7 Dec 2016, Krzysztof Opasiak wrote: > >> If we found a matching driver but its bind() function failed for some >> reason, let's continue our search as there may be some other gadget >> pending on a list which bind() will succeed for this udc.

Re: [PATCH] usb: misc: rio500: fix result type for error message

2016-12-07 Thread Oliver Neukum
On Wed, 2016-12-07 at 15:50 +0100, Greg KH wrote: > On Wed, Dec 07, 2016 at 08:12:10PM +0900, Kim Jae Joong wrote: > > Fix variable type for dev_err about usb_bulk_msg() > > What was wrong with it before this change? What warning are you > "changing"? It was subtle. The error message printed a s

Re: usb/gadget: use-after-free in gadgetfs_setup

2016-12-07 Thread Alan Stern
On Wed, 7 Dec 2016, Andrey Konovalov wrote: > > And in any case, is there any way you can post the series of system > > calls that syzkaller makes so we can tell what went wrong? > > I've attached a reproducer for a use-after-free in gadgetfs_setup(). > You need to enable KASAN to see the reports

[PATCH] USB: serial: option: add dlink dwm-158

2016-12-07 Thread Giuseppe Lippolis
Dear Johan, Thanks for the tips. Here is the patch. Bye. --- drivers/usb/serial/option.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 9894e34..386b687 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c

Re: [PATCHv13,1/3] lib/string: add sysfs_match_string helper

2016-12-07 Thread Guenter Roeck
On Thu, Nov 24, 2016 at 02:21:42PM +0200, Heikki Krogerus wrote: > Make a simple helper for matching strings with sysfs > attribute files. In most parts the same as match_string(), > except sysfs_match_string() uses sysfs_streq() instead of > strcmp() for matching. This is more convenient when used

Re: [PATCH] USB: OHCI: nxp: fix code warnings

2016-12-07 Thread Vladimir Zapolskiy
On 12/08/2016 01:54 AM, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > This patch will fix the checkpatch.pl following warnings: > WARNING: Missing a blank line after declarations > WARNING: braces {} are not necessary for single statement blocks > > Signed-off-by: Manjunath Goudar

Re: [PATCH v2 3/3] USB: OHCI: nxp: remove useless extern declaration

2016-12-07 Thread Vladimir Zapolskiy
On 12/08/2016 12:34 AM, csmanjuvi...@gmail.com wrote: > From: Manjunath Goudar > > Remove usb_disabled() extern declaration as it is already declared > as extern in include/linux/usb.h. > > Signed-off-by: Manjunath Goudar > Cc: Vladimir Zapolskiy > Cc: Sylvain Lemieux > Cc: Alan Stern > Cc:

Re: ch341

2016-12-07 Thread Russell Senior
> "Johan" == Johan Hovold writes: >> I attach the tty's with GNU screen (but I have also tried microcom >> and minicom with the same results). This was my first experience >> with or even awareness of ch341. I have much more experience with >> pl2303 and somewhat less with ftdi. With these

RE: [PATCH] usbip: fix warning in vhci_hcd_probe/lockdep_init_map

2016-12-07 Thread fx IWATA NOBUO
Dear Shuah, I'm afraid there's one thing I have concerned. I think it's better to move sysfs_attr_init() before status->attr.attr.name = status->name; Best Regards, nobuo.iwata // > -Original Message- > From: linux-usb-ow...@vger.kernel.org > [mailto:linux-usb-ow...@vger.kernel.org] On

Re: [PATCH] usbip: fix warning in vhci_hcd_probe/lockdep_init_map

2016-12-07 Thread Shuah Khan
Hi Nobuo.iwata, I noticed that in many places sysfs_attr_init() is called before populating the fields such as name etc. However, I don't think the order matters. sysfs_attr_init() doesn't depend on name or any other fields being set: #define sysfs_attr_init(attr) \ do

Re: [PATCH 1/2] usb: dwc3: gadget: Fix full speed mode

2016-12-07 Thread John Youn
On 12/7/2016 4:44 AM, Felipe Balbi wrote: > > Hi, > > Roger Quadros writes: Roger Quadros writes: > DCFG.DEVSPD == 0x3 is not valid and we need to set > DCFG.DEVSPD to 0x1 for full speed mode. seems like it has been made invalid somewhere between 1.73a and 2.60a. Can

[PATCH] usb: dwc3: omap: Fix imprecise external abort and oops on boot

2016-12-07 Thread Tony Lindgren
Somehow starting with v4.9-rc7 there have been imprecise external aborts on omap5-uevm dwc3 controller. I have not been able to bisect what exactly triggered this as it does not always happen. It seems that something changed with probing that now exposes the issue: Unhandled fault: imprecise exter

[PATCH] usb: musb: fix compilation warning on unused function

2016-12-07 Thread Jérémy Lefaure
The function musb_run_resume_work is called only when CONFIG_PM is enabled. So this function should not be defined when CONFIG_PM is disabled. Otherwise the compiler issues a warning: drivers/usb/musb/musb_core.c:2057:12: error: ‘musb_run_resume_work’ defined but not used [-Werror=unused-function]

RE: [PATCH] usbip: fix warning in vhci_hcd_probe/lockdep_init_map

2016-12-07 Thread fx IWATA NOBUO
Dear Shuah, > I noticed that in many places sysfs_attr_init() is called before populating > the fields such as name etc. However, I don't think the order matters. > > sysfs_attr_init() doesn't depend on name or any other fields being set: > > #define sysfs_attr_init(attr)

RE: USB3.0 DWC3 can't work with latest Linux-4.9.rc7

2016-12-07 Thread Jerry Huang
Hi, Balbi, > -Original Message- > From: Felipe Balbi [mailto:felipe.ba...@linux.intel.com] > Sent: Wednesday, December 07, 2016 9:39 PM > To: Jerry Huang ; st...@rowland.harvard.edu; > linux-usb@vger.kernel.org; Mathias Nyman > ; Arnd Bergmann > Cc: Sriram Dash ; Greg Kroah-Hartman > > Su

Re: [PATCH 0/4] musb fixes for v4.9-rc cycle

2016-12-07 Thread Tony Lindgren
* Laurent Pinchart [161123 08:44]: > Hello, > > On Wednesday 23 Nov 2016 18:40:09 Tomi Valkeinen wrote: > > On 23/11/16 18:34, Tony Lindgren wrote: > > > OK. And what changes to your current .config make the musb_bus_suspend() > > > issues show up? > > > > > > If it happens with USB-B cable from

Re: [PATCH v4 1/2] usb: host: plat: Enable xhci plat runtime PM

2016-12-07 Thread Baolin Wang
Hi Mathias and Felipe, On 28 November 2016 at 14:43, Baolin Wang wrote: > Enable the xhci plat runtime PM for parent device to suspend/resume xhci. > Also call pm_runtime_get_noresume() in probe() function in case the parent > device doesn't call suspend/resume callback by runtime PM now. > > Sig

Re: [PATCHv13,1/3] lib/string: add sysfs_match_string helper

2016-12-07 Thread Heikki Krogerus
On Wed, Dec 07, 2016 at 03:54:45PM -0800, Guenter Roeck wrote: > > +int __sysfs_match_string(const char * const *array, size_t n, const char > > *str) > > +{ > > + const char *item; > > + int index; > > + > > + for (index = 0; index < n; index++) { > > + item = array[index]; > > +

Re: [PATCH v4 2/2] usb: dwc3: core: Support the dwc3 host suspend/resume

2016-12-07 Thread Baolin Wang
Hi Felipe, On 28 November 2016 at 14:43, Baolin Wang wrote: > For some mobile devices with strict power management, we also want to suspend > the host when the slave is detached for power saving. Thus we add the host > suspend/resume functions to support this requirement. > > Signed-off-by: Baoli