[PATCH 1/1] usb: Apply hardware LPM attributes to 3.1 device

2017-10-13 Thread Lu Baolu
The devices running at SuperSpeedPlus speed are also LPM capable. Apply usb3 hardware LPM attributes to those devices as well. Signed-off-by: Lu Baolu --- drivers/usb/core/sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sy

Re: [RFC usb-next v5 1/3] dt-bindings: usb: add the documentation for USB root-hub

2017-10-13 Thread Arnd Bergmann
On Thu, Oct 12, 2017 at 10:56 PM, Martin Blumenstingl wrote: > Hi Arnd, > > thank you for reviewing this patch! > > On Mon, Oct 9, 2017 at 12:24 PM, Arnd Bergmann wrote: >> On Sun, Oct 8, 2017 at 11:17 PM, Martin Blumenstingl >> wrote: >>> A USB root-hub may have several PHYs which need to be co

Re: [PATCH 1/3] USB: serial: metro-usb: stop I/O after failed open

2017-10-13 Thread Johan Hovold
On Thu, Oct 12, 2017 at 11:34:52AM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 12, 2017 at 10:54:21AM +0200, Johan Hovold wrote: > > Make sure to kill the interrupt-in URB after a failed open request. > > Apart from saving power (and avoiding stale input after a later > > successful open), this

Re: [PATCH] USB: serial: drop unused core USB driver

2017-10-13 Thread Johan Hovold
On Thu, Oct 12, 2017 at 05:48:19PM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 12, 2017 at 05:22:28PM +0200, Johan Hovold wrote: > > Drop the usb-serial-core USB driver that was registered at module init > > but then never used. > > > > This was a remnant dating back to 2004 (!) when this struc

Re: [PATCH] xhci: Set DMA parameters appropriately

2017-10-13 Thread Marek Szyprowski
Hi Robin, On 2017-10-11 15:56, Robin Murphy wrote: xHCI requires that data buffers do not cross 64KB boundaries (and are thus at most 64KB long as well) - whilst xhci_queue_{bulk,isoc}_tx() already split their input buffers into individual TRBs as necessary, it's still a good idea to advertise t

[PATCH v2 6/9] usb: xhci-mtk: add optional mcu and dma bus clocks

2017-10-13 Thread Chunfeng Yun
There are mcu_bus and dma_bus clocks needed to be controlled by driver on some SoCs, so add them as optional ones Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 79 --- drivers/usb/host/xhci-mtk.h |2 ++ 2 files changed, 62 insertions(

[PATCH v2 1/9] usb: xhci-mtk: use dma_set_mask_and_coherent() in probe function

2017-10-13 Thread Chunfeng Yun
This patch uses the simpler dma_set_mask_and_coherent() instead of doing these as separate steps Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c inde

[PATCH v2 5/9] usb: xhci-mtk: remove dummy wakeup debounce clocks

2017-10-13 Thread Chunfeng Yun
The wakeup debounce clocks for each ports in fact are not needed, so remove them. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 33 - drivers/usb/host/xhci-mtk.h |2 -- 2 files changed, 35 deletions(-) diff --git a/drivers/usb/host/xhci-mtk.

[PATCH v2 3/9] usb: xhci-mtk: check clock stability of U3_MAC

2017-10-13 Thread Chunfeng Yun
This is useful to find out the root cause when the Super Speed doesn't work. Such as when the T-PHY is switched to PCIe or SATA, and affects Super Speed function, the check will fail. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c |4 1 file changed, 4 insertions(+) diff -

[PATCH v2 9/9] dt-bindings: usb: mtk-xhci: remove dummy clocks and add optional ones

2017-10-13 Thread Chunfeng Yun
Remove dummy clocks for usb wakeup and add optional ones for MCU_BUS_CK and DMA_BUS_CK. Signed-off-by: Chunfeng Yun Acked-by: Rob Herring --- .../devicetree/bindings/usb/mediatek,mtk-xhci.txt | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Documentatio

[PATCH v2 2/9] usb: xhci-mtk: use ports count from xhci in xhci_mtk_sch_init()

2017-10-13 Thread Chunfeng Yun
Make use of ports count from xhci but not from ippc in xhci_mtk_sch_init() Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk-sch.c |3 ++- drivers/usb/host/xhci-mtk.c |3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/xhci-mtk-sch.c b/driv

[PATCH v2 8/9] dt-bindings: usb: mtk-xhci: add a optional property to disable u3ports

2017-10-13 Thread Chunfeng Yun
Add a new optional property to disable u3ports Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mediatek,mtk-xhci.txt |2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt b/Documentation/devicetree/bindings/usb/mediatek

[PATCH v2 7/9] usb: host: modify description for MTK xHCI config

2017-10-13 Thread Chunfeng Yun
Due to all MediaTek SoCs with xHCI host controller use this driver, remove limitation for specific SoCs Signed-off-by: Chunfeng Yun --- drivers/usb/host/Kconfig |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index fa

[PATCH v2 4/9] usb: xhci-mtk: support option to disable usb3 ports

2017-10-13 Thread Chunfeng Yun
Add support to disable specific usb3 ports, it's useful when usb3 phy is shared with PCIe or SATA, because we should disable the corresponding usb3 port if the phy is used by PCIe or SATA. Sometimes it's helpful to analyse and solve problems. Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci

[PATCH v2 12/13] dt-bindings: usb: mtu3: remove dummy clocks and add optional ones

2017-10-13 Thread Chunfeng Yun
Remove dummy clocks for usb wakeup and add optional ones for mcu_bus and dma_bus bus. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mediatek,mtu3.txt | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek

[PATCH v2 11/13] dt-bindings: usb: mtu3: add a optional property to disable u3ports

2017-10-13 Thread Chunfeng Yun
Add a new optional property to disable u3ports Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mediatek,mtu3.txt |2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt b/Documentation/devicetree/bindings/usb/mediatek,mtu

[PATCH v2 13/13] dt-bindings: usb: mtu3: remove optional pinctrls

2017-10-13 Thread Chunfeng Yun
Remove optional pinctrls due to using FORCE/RG_IDDIG to implement manual switch function. Signed-off-by: Chunfeng Yun --- .../devicetree/bindings/usb/mediatek,mtu3.txt |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mediate

[PATCH v2 10/13] usb: mtu3: set otg_sel for u2port only if works as dual-role mode

2017-10-13 Thread Chunfeng Yun
When set otg_sel(SSUSB_U2_PORT_OTG_SEL) for u2port which supports dual-role mode, the controller will automatically switch mode between host and device according to IDDIG signal. But if the u2port only supports device mode, and no IDDIG pin is provided, setting otg_sel may cause failure of detectio

[PATCH v2 07/13] usb: mtu3: add support for usb3.1 IP

2017-10-13 Thread Chunfeng Yun
Support SuperSpeedPlus for usb3.1 device IP Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h|1 + drivers/usb/mtu3/mtu3_core.c | 14 +++--- drivers/usb/mtu3/mtu3_gadget.c |3 ++- drivers/usb/mtu3/mtu3_gadget_ep0.c | 16 drivers/us

[PATCH v2 05/13] usb: mtu3: support 36-bit DMA address

2017-10-13 Thread Chunfeng Yun
add support for 36-bit DMA address Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h | 17 ++- drivers/usb/mtu3/mtu3_core.c| 34 - drivers/usb/mtu3/mtu3_hw_regs.h | 10 drivers/usb/mtu3/mtu3_qmu.c | 102 --- 4

[PATCH v2 06/13] usb: mtu3: use FORCE/RG_IDDIG to implement manual DRD switch

2017-10-13 Thread Chunfeng Yun
In order to keep manual DRD switch independent on IDDIG interrupt, make use of FORCE/RG_IDDIG instead of IDDIG EINT interrupt to implement manual DRD switch function. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h | 18 drivers/usb/mtu3/mtu3_dr.c | 61 +

[PATCH v2 09/13] usb: mtu3: set invalid dr_mode as dual-role mode

2017-10-13 Thread Chunfeng Yun
Treat dr_mode of USB_DR_MODE_UNKNOWN as USB_DR_MODE_OTG to enhance functional robustness. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_plat.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index 7c

[PATCH v2 08/13] usb: mtu3: get optional vbus for host only mode

2017-10-13 Thread Chunfeng Yun
When dr_mode is set as USB_DR_MODE_HOST, it's better to try to get optional vbus, this can increase flexibility, although we can set vbus as always on for regulator or put it in host driver to turn it on. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_plat.c |8 1 file change

[PATCH v2 01/13] usb: mtu3: fix error return code in ssusb_gadget_init()

2017-10-13 Thread Chunfeng Yun
When failing to get IRQ number, platform_get_irq() may return -EPROBE_DEFER, but we ignore it and always return -ENODEV, so fix it. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_core.c

[PATCH v2 04/13] usb: mtu3: add optional mcu and dma bus clocks

2017-10-13 Thread Chunfeng Yun
There are mcu_bus and dma_bus clocks needed to be turned on/off by driver on some SoCs, so add them as optional ones Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h |5 ++ drivers/usb/mtu3/mtu3_plat.c | 121 -- 2 files changed, 86 inserti

[PATCH v2 03/13] usb: mtu3: remove dummy wakeup debounce clocks

2017-10-13 Thread Chunfeng Yun
The wakeup debounce clocks for each ports in fact are not needed, so remove them. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h |4 --- drivers/usb/mtu3/mtu3_host.c | 57 +++--- 2 files changed, 4 insertions(+), 57 deletions(-) diff --git

[PATCH v2 02/13] usb: mtu3: support option to disable usb3 ports

2017-10-13 Thread Chunfeng Yun
Add support to disable specific usb3 ports, it's useful when usb3 phy is shared with PCIe or SATA, because we should disable the corresponding usb3 port if the phy is used by PCIe or SATA. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3.h |3 +++ drivers/usb/mtu3/mtu3_host.c | 1

Re: [PATCH v2 7/9] usb: host: modify description for MTK xHCI config

2017-10-13 Thread Mathias Nyman
On 13.10.2017 11:26, Chunfeng Yun wrote: Due to all MediaTek SoCs with xHCI host controller use this driver, remove limitation for specific SoCs Signed-off-by: Chunfeng Yun --- xHCI parts of series look good to me, If Rob Herring agrees with the dt changes I can send it forward -Mathias --

Re: [PATCH] xhci: Set DMA parameters appropriately

2017-10-13 Thread Robin Murphy
Hi Marek, On 13/10/17 09:15, Marek Szyprowski wrote: > Hi Robin, > > On 2017-10-11 15:56, Robin Murphy wrote: >> xHCI requires that data buffers do not cross 64KB boundaries (and are >> thus at most 64KB long as well) - whilst xhci_queue_{bulk,isoc}_tx() >> already split their input buffers into

Re: xhci_hcd 0000:00:14.0: WARN Event TRB for slot 1 ep 2 with no TDs queued?

2017-10-13 Thread Yaroslav Isakov
Hello, Mathias! Did you get a chance to look into this bug? 2017-07-20 19:15 GMT+03:00 Yaroslav Isakov : > Yes, I can definitely test the patch > > 2017-07-20 19:16 GMT+03:00 Mathias Nyman : >> On 20.07.2017 18:07, Yaroslav Isakov wrote: >>> >>> Here it is >>> >>> 2017-07-20 18:06 GMT+03:00 Mathia

Re: [PATCH v2 5/9] usb: xhci-mtk: remove dummy wakeup debounce clocks

2017-10-13 Thread Matthias Brugger
On 10/13/2017 10:26 AM, Chunfeng Yun wrote: The wakeup debounce clocks for each ports in fact are not needed, so remove them. Signed-off-by: Chunfeng Yun --- Reviewed-by: Matthias Brugger drivers/usb/host/xhci-mtk.c | 33 - drivers/usb/host/xhci-mtk.h

Re: [PATCH v2 6/9] usb: xhci-mtk: add optional mcu and dma bus clocks

2017-10-13 Thread Matthias Brugger
On 10/13/2017 10:26 AM, Chunfeng Yun wrote: There are mcu_bus and dma_bus clocks needed to be controlled by driver on some SoCs, so add them as optional ones Signed-off-by: Chunfeng Yun --- Reviewed-by: Matthias Brugger drivers/usb/host/xhci-mtk.c | 79 +++

Re: [PATCH v2 9/9] dt-bindings: usb: mtk-xhci: remove dummy clocks and add optional ones

2017-10-13 Thread Matthias Brugger
On 10/13/2017 10:26 AM, Chunfeng Yun wrote: Remove dummy clocks for usb wakeup and add optional ones for MCU_BUS_CK and DMA_BUS_CK. Signed-off-by: Chunfeng Yun Acked-by: Rob Herring --- Reviewed-by: .../devicetree/bindings/usb/mediatek,mtk-xhci.txt | 18 -- 1 file

Re: [RFC usb-next v5 3/3] usb: core: hcd: integrate the PHY roothub wrapper

2017-10-13 Thread Alan Stern
On Thu, 12 Oct 2017, Martin Blumenstingl wrote: > Hi Alan, > > On Mon, Oct 9, 2017 at 7:18 PM, Alan Stern wrote: > > On Sun, 8 Oct 2017, Martin Blumenstingl wrote: > > > >> This integrates the PHY roothub wrapper into the core hcd > >> infrastructure. Multiple PHYs which are part of the roothub

Re: [RFC usb-next v5 1/3] dt-bindings: usb: add the documentation for USB root-hub

2017-10-13 Thread Alan Stern
On Thu, 12 Oct 2017, Martin Blumenstingl wrote: > Hi Alan, > > On Thu, Oct 12, 2017 at 11:17 PM, Alan Stern > wrote: > > On Thu, 12 Oct 2017, Martin Blumenstingl wrote: > > > >> I haven't tested the described use-case. however, this patch is not > >> supposed to change the binding for actual de

Re: [PATCH v2] USB: Force disconnect Huawei 4G modem during suspend

2017-10-13 Thread Alan Stern
On Fri, 13 Oct 2017, Daniel Drake wrote: > When going into S3 suspend, the Acer TravelMate P648-M and P648-G3 > laptops immediately wake up 3-4 seconds later for no obvious reason. > > Unbinding the integrated Huawei 4G LTE modem before suspend avoids > the issue, even though we are not using the

Re: [PATCH] usb: phy: phy-generic: propagate clk_get error if clock is required

2017-10-13 Thread Lucas Stach
Am Freitag, den 18.08.2017, 18:32 +0200 schrieb Lucas Stach: > If the clock handle is given in the DT, it means the clock is > required > for proper operation of the PHY. In that case a failure to obtain the > clock must be propagated to stop the driver from probing. This fixes > working with clock

Re: [PATCH v2] usb: renesas_usbhs: Add compatible string for r8a7743/5

2017-10-13 Thread Rob Herring
On Fri, Oct 06, 2017 at 05:49:34PM +0100, Biju Das wrote: > This patch adds support for r8a7743/5 SoCs. The Renesas RZ/G1[ME] > (R8A7743/5) usbhs is identical to the R-Car Gen2 family. > > No driver change is needed due to the fallback compatible value > "renesas,rcar-gen2-usbhs". > Adding the SoC

Re: [PATCH] usb: gadget: configfs: make config_item_type const

2017-10-13 Thread kbuild test robot
Hi Bhumika, [auto build test WARNING on balbi-usb/next] [also build test WARNING on v4.14-rc4 next-20171013] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Bhumika-Goyal/usb-gadget-configfs

[no subject]

2017-10-13 Thread prabhu kalyan
unsubscripted -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html