[PATCH] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-14 Thread ShuFanLee
From: ShuFanLee Handle vendor defined behavior in tcpci_init and tcpci_irq. More operations can be extended in tcpci_vendor_data if needed. According to TCPCI specification, 4.4.5.2 ROLE_CONTROL, TCPC shall not start DRP toggling until subsequently the TCPM writes to the

[PATCH v2] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-14 Thread ShuFanLee
From: ShuFanLee Handle vendor defined behavior in tcpci_init, tcpci_set_vconn and export tcpci_irq. More operations can be extended in tcpci_data if needed. According to TCPCI specification, 4.4.5.2 ROLE_CONTROL, TCPC shall not start DRP toggling until subsequently the

Re: [BUG] SD card reader disappears after suspend

2018-02-14 Thread Samuel Sadok
Thanks for the patches. However no luck yet, the usb device still doesn't reinitialize. Logs: https://gist.github.com/90ccb390c5777b9e2d5dc595f44d50da Can I somehow check if it is at all possible to bring back this particular device after hub power loss? For instance would you expect reloading

Re: [PATCH v2] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-14 Thread Greg KH
On Wed, Feb 14, 2018 at 08:45:34PM +0800, ShuFanLee wrote: > From: ShuFanLee > > Handle vendor defined behavior in tcpci_init, tcpci_set_vconn and export > tcpci_irq. > More operations can be extended in tcpci_data if needed. > According to TCPCI specification, 4.4.5.2

Re: JMicron based usb 3.0 to sata enclosure, hangs, numerous errors

2018-02-14 Thread Menion
Upgraded to 4.15.3 and now UAS works, strange... Anyhow now the enclosure is connected via an USB 3.0 HUB (self powered in my case) and it seems to be stable Devs, apparently there is some problem operating this chipset with Intel USB controller directly I have googled a little bit aroud and

Re: High CPU load produced by USB (DW2)

2018-02-14 Thread Mirza Krak
On 8 February 2018 at 14:53, Minas Harutyunyan wrote: > On 2/8/2018 5:07 PM, Mirza Krak wrote: >> On 8 February 2018 at 12:02, Minas Harutyunyan >> wrote: >>> Hi Mirza, >>> >>> On 2/7/2018 1:49 PM, Mirza Krak wrote: >> >> < snip >

Re: JMicron based usb 3.0 to sata enclosure, hangs, numerous errors

2018-02-14 Thread Menion
weird, not, it is little bit more stable, bu then it eventually hit the problem again: [ 2696.410684] sd 2:0:0:2: [sdc] tag#13 uas_eh_abort_handler 0 uas-tag 14 inflight: CMD OUT [ 2696.410708] sd 2:0:0:2: [sdc] tag#13 CDB: Write(10) 2a 00 19 ed 69 80 00 00 20 00 [ 2696.410948] sd 2:0:0:2: [sdc]

Re: [PATCH] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-14 Thread Heikki Krogerus
On Wed, Feb 14, 2018 at 05:24:04PM +0800, ShuFanLee wrote: > From: ShuFanLee > > Handle vendor defined behavior in tcpci_init and tcpci_irq. > More operations can be extended in tcpci_vendor_data if needed. > According to TCPCI specification, 4.4.5.2 ROLE_CONTROL, > TCPC

[PATCH v1 11/14] USB: host: sl811: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Signed-off-by: Andy Shevchenko --- drivers/usb/host/sl811-hcd.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git

[PATCH v1 10/14] USB: host: isp116x: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Cc: Olav Kongas Signed-off-by: Andy Shevchenko --- drivers/usb/host/isp116x-hcd.c | 15 ++- 1 file changed, 2 insertions(+),

[PATCH v1 01/14] USB: chipidea: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Cc: Peter Chen Signed-off-by: Andy Shevchenko --- drivers/usb/chipidea/debug.c | 65 1 file

[PATCH v1 06/14] USB: gadget: pxa25x: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik Signed-off-by: Andy Shevchenko ---

[PATCH v1 12/14] USB: host: whci: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Signed-off-by: Andy Shevchenko --- drivers/usb/host/whci/debug.c | 48 ++- 1 file changed, 6 insertions(+), 42

[PATCH v1 02/14] USB: dwc2: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Cc: John Youn Signed-off-by: Andy Shevchenko --- drivers/usb/dwc2/debugfs.c | 84 -- 1 file

[PATCH v1 13/14] USB: typec: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Cc: Heikki Krogerus Cc: Guenter Roeck Signed-off-by: Andy Shevchenko ---

[PATCH v1 03/14] USB: musb: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Cc: Bin Liu Signed-off-by: Andy Shevchenko --- drivers/usb/musb/musb_debugfs.c | 13 + 1 file changed, 1 insertion(+), 12

[PATCH v1 05/14] USB: gadget: gr: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Signed-off-by: Andy Shevchenko --- drivers/usb/gadget/udc/gr_udc.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git

[PATCH v1 04/14] USB: gadget: bcm63xx: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Cc: Kevin Cernekee Cc: Florian Fainelli Cc: bcm-kernel-feedback-l...@broadcom.com Signed-off-by: Andy Shevchenko ---

[PATCH v1 09/14] USB: host: imx21: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Signed-off-by: Andy Shevchenko --- drivers/usb/host/imx21-dbg.c | 65 1 file changed, 5 insertions(+), 60

[PATCH v1 08/14] USB: host: fhci: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Signed-off-by: Andy Shevchenko --- drivers/usb/host/fhci-dbg.c | 26 ++ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git

[PATCH v1 07/14] USB: gadget: pxa27x: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Cc: Daniel Mack Cc: Haojian Zhuang Cc: Robert Jarzmik Signed-off-by: Andy Shevchenko ---

[PATCH v1 14/14] uwb: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Andy Shevchenko
...instead of open coding file operations followed by custom ->open() callbacks per each attribute. Signed-off-by: Andy Shevchenko --- drivers/uwb/uwb-debug.c | 32 1 file changed, 4 insertions(+), 28 deletions(-) diff --git

Re: [PATCH v2] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-14 Thread Greg KH
On Wed, Feb 14, 2018 at 10:43:45PM +0800, 李書帆 wrote: > Hi Gerg, > > > What changed from v1? > > The diff between v1 and v2 is as following: You need to explain what changed below the --- line, as is described in Documentation/SubmittingPatches. Please fix that up, and the text for your

Re: [PATCH v2] staging: typec: handle vendor defined part and modify drp toggling flow

2018-02-14 Thread Guenter Roeck
On 02/14/2018 04:45 AM, ShuFanLee wrote: From: ShuFanLee Handle vendor defined behavior in tcpci_init, tcpci_set_vconn and export tcpci_irq. More operations can be extended in tcpci_data if needed. According to TCPCI specification, 4.4.5.2 ROLE_CONTROL, TCPC shall not

Gentoo Linux Bug 612702 (NEC USB3 PCI cards and storage devices)

2018-02-14 Thread Stefan Kalis
Hi. The bug-wrangler of bug 612702 asked me to forward the following information to you (attachement). [0.00] Linux version 4.15.2-gentoo (root@i7) (gcc version 6.4.0 (Gentoo 6.4.0 p1.1)) #1 SMP Thu Feb 8 16:56:47 CET 2018 [0.00] Command line:

Re: Gentoo Linux Bug 612702 (NEC USB3 PCI cards and storage devices)

2018-02-14 Thread Greg KH
On Wed, Feb 14, 2018 at 03:43:54PM +0100, Stefan Kalis wrote: > Hi. The bug-wrangler of bug 612702 asked me to forward the following > information to you (attachement). > Why? What exactly is the problem here? You need to give us a hint :) thanks, greg k-h -- To unsubscribe from this list:

[PATCH 2/2] usb: host: xhci-plat: Fix clock resource by adding a register clock

2018-02-14 Thread Gregory CLEMENT
On Armada 7K/8K we need to explicitly enable the register clock. This clock is optional because not all the SoCs using this IP need it but at least for Armada 7K/8K it is actually mandatory. The change was done at xhci-plat level and not at a xhci-mvebu.c because, it is expected that other SoC

[PATCH 1/2] usb: host: xhci-plat: Remove useless test before clk_disable_unprepare

2018-02-14 Thread Gregory CLEMENT
clk_disable_unprepare() already checks that the clock pointer is valid. No need to test it before calling it. Signed-off-by: Gregory CLEMENT --- drivers/usb/host/xhci-plat.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH 0/2] Allow xhci-plat using a second clock

2018-02-14 Thread Gregory CLEMENT
Hello, The purpose of this series is to allow xhci-plat using a second clock. It is needed on the Armada 7K/8K but could be used by other SoCs. The first patch is just a fix found while I was working on this feature. Thanks, Gregory Gregory CLEMENT (2): usb: host: xhci-plat: Remove useless

[PATCH v2] usb: gadget: f_uac2: fix bFirstInterface in composite gadget

2018-02-14 Thread John Keeping
If there are multiple functions associated with a configuration, then the UAC2 interfaces may not start at zero. Set the correct first interface number in the association descriptor so that the audio interfaces are enumerated correctly in this case. Signed-off-by: John Keeping

Re: [PATCH 4/4] ARM: dts: am43xx: Enable dual-role mode for USB1

2018-02-14 Thread Tony Lindgren
* Roger Quadros [180122 05:17]: > +Tony > > On 22/01/18 15:11, Roger Quadros wrote: > > USB1 port is micro-AB type and can function as peripheral > > as well as host. Enable dual-role mode for USB1. Looks like I don't have this one, please resend it separately when it's safe to

Re: [PATCH] usb: host: ehci: Use dma_pool_zalloc()

2018-02-14 Thread Alan Stern
On Wed, 14 Feb 2018, Souptick Joarder wrote: > Use dma_pool_zalloc() instead of dma_pool_alloc + memset > > Signed-off-by: Souptick Joarder > --- Acked-by: Alan Stern > drivers/usb/host/ehci-mem.c | 3 +-- > drivers/usb/host/ehci-sched.c |

Re: [PATCH v1 13/14] USB: typec: Re-use DEFINE_SHOW_ATTRIBUTE() macro

2018-02-14 Thread Guenter Roeck
On Wed, Feb 14, 2018 at 06:08:29PM +0200, Andy Shevchenko wrote: > ...instead of open coding file operations followed by custom ->open() > callbacks per each attribute. > > Cc: Heikki Krogerus > Cc: Guenter Roeck > Signed-off-by: Andy

Re: High CPU load produced by USB (DW2)

2018-02-14 Thread Minas Harutyunyan
On 2/14/2018 12:57 PM, Mirza Krak wrote: > On 8 February 2018 at 14:53, Minas Harutyunyan > wrote: >> On 2/8/2018 5:07 PM, Mirza Krak wrote: >>> On 8 February 2018 at 12:02, Minas Harutyunyan >>> wrote: Hi Mirza, On

[PATCH 1/3] usb: xhci: tegra: Prepare for adding runtime PM support

2018-02-14 Thread Jon Hunter
When adding runtime PM support to the Tegra XHCI driver, it is desirable to move the function calls to enable the clocks, regulators and PHY from the tegra_xusb_probe into the runtime PM handlers. Currently, the clocks, regulators and PHY are all enabled before we call usb_create_hcd() in

[PATCH 2/3] usb: xhci: tegra: Add runtime PM support

2018-02-14 Thread Jon Hunter
Add runtime PM support to the Tegra XHCI driver and move the function calls to enable/disable the clocks, regulators and PHY into the runtime PM callbacks. Signed-off-by: Jon Hunter --- drivers/usb/host/xhci-tegra.c | 80 ++- 1 file

[PATCH 3/3] usb: xhci: tegra: Add support for managing powergates

2018-02-14 Thread Jon Hunter
The Tegra XHCI controller requires that the XUSBA (for superspeed) and XUSBC (for host) power-domains are enabled. Commit 8df127456f29 ("soc/tegra: pmc: Enable XUSB partitions on boot") was added to force on these power-domains if the XHCI driver is enabled while proper power-domain support is

[PATCH] usb: host: ehci: Use dma_pool_zalloc()

2018-02-14 Thread Souptick Joarder
Use dma_pool_zalloc() instead of dma_pool_alloc + memset Signed-off-by: Souptick Joarder --- drivers/usb/host/ehci-mem.c | 3 +-- drivers/usb/host/ehci-sched.c | 6 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ehci-mem.c

[PATCH] usb: gadget: udc: bdc: Use dma_pool_zalloc

2018-02-14 Thread Souptick Joarder
Use dma_pool_zalloc instead of dma_pool_alloc + memset Signed-off-by: Souptick Joarder --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/bdc/bdc_ep.c b/drivers/usb/gadget/udc/bdc/bdc_ep.c

[Regression] xhci: some hard drives cannot be seen using a JMicron JMS56x enclosure

2018-02-14 Thread Cyril Roelandt
Hi, I use two hard drives in an enclosure connected to my PC using UAS. The enclosure is a JMicron JMS56x (152d:0562); the drives are a Fujitsu MHZ2160BH G2 (2"5, 160GB) and a Western Digital EFRX-68N32N0 (3"5, 4TB). Using a USB2 port, I can see both drives as expected. I used to be able to use

Re: [PATCH 2/2] usb: dwc3: drd: Fix lock-up on ID change during system suspend/resume

2018-02-14 Thread Roger Quadros
Felipe, On 25/01/18 18:11, Roger Quadros wrote: > Hi, > > On 24/01/18 14:19, Roger Quadros wrote: >> On 23/01/18 14:41, Roger Quadros wrote: >>> Hi Manu, >>> >>> On 23/01/18 05:45, Manu Gautam wrote: Hi, On 1/22/2018 6:31 PM, Roger Quadros wrote: > Adding/removing

Re: [PATCH 0/4] usb: dwc3: Add dual-role support using OTG core

2018-02-14 Thread Roger Quadros
Hi Felipe, On 22/01/18 15:11, Roger Quadros wrote: > Hi Felipe, > > Some platforms (e.g. TI's AM437x) don't have USB ID pin state available > over GPIO/extcon but need to rely on the DWC3 core's OTG block to > get the ID pin state instead. > > This series implements simple dual-role