[PATCH 2/3] usb: host: xhci: return -ESHUTDOWN when removing hcd

2018-09-20 Thread Peter Chen
When we are removing HCD, the xhci_configure_endpoint may be timeout. To get rid of timeout, we'd better return before issue command. The related log message when removing HCD like below: [66.736633] usb 3-1: USB disconnect, device number 2 [66.737003] hub 3-1:1.0: hub_ext_port_status failed (err

[PATCH 3/3] usb: host: xhci: return early for xhci_urb_dequeue when removing hcd

2018-09-20 Thread Peter Chen
When we are removing hcd, the stop endpoint command may be timeout. To eliminate the timeout, we'd better return early. The related log for this timeout like below: [31.208933] hub 3-1:1.0: hub_ext_port_status failed (err = -71) [31.214972] usb 3-1-port2: cannot reset (err = -71) [31.219962] usb

[PATCH 1/3] usb: host: xhci: fix oops when removing hcd

2018-09-20 Thread Peter Chen
The USB3 HCD structure (xhci->shared_hcd) may be NULL when the USB3 interrupt occurs, the typical use case is we plug out Type-C-to-A cable, and there is a USB device at the port. The platform controller driver (eg, dwc3) unregisters xhci platform driver, and remove hcd accordingly. It is very

[PATCH 0/3] usb: host: xhci: fix oops and timeout when removing hcd

2018-09-20 Thread Peter Chen
Hi Mathias, I have run out this issue for v4.14 kernel, but the problem should exist at mainline kernel too, the USB3 interrupt may occur after USB3 HCD structure has removed, and cause oops at xhci_irq. The 2nd and 3rd patches are needed if we return early at xhci_irq when we are removing HCD.

Re: usb typec not doing handling in-kernel

2018-09-20 Thread Guenter Roeck
On Thu, Sep 20, 2018 at 10:21:59AM +0200, Heiko Stuebner wrote: > Hi Guenter, > > Am Montag, 13. August 2018, 14:29:15 CEST schrieb Guenter Roeck: > > On 08/13/2018 03:36 AM, Heiko Stuebner wrote: > > > Hi, > > > > > > I'm currently trying to wrap my head around the new typec subsystem and > > >

Re: [PATCH v3] usb: core: added uevent for over-current

2018-09-20 Thread Jon Flatley
On Thu, Sep 20, 2018 at 10:58 AM Greg KH wrote: > > On Thu, Sep 20, 2018 at 10:17:54AM -0700, Jon Flatley wrote: > > After commit 1cbd53c8cd85 ("usb: core: introduce per-port over-current > > counters") usb ports expose a sysfs value 'over_current_count' > > to user space. This value on its own

Re: [PATCH v3] usb: core: added uevent for over-current

2018-09-20 Thread Greg KH
On Thu, Sep 20, 2018 at 10:17:54AM -0700, Jon Flatley wrote: > After commit 1cbd53c8cd85 ("usb: core: introduce per-port over-current > counters") usb ports expose a sysfs value 'over_current_count' > to user space. This value on its own is not very useful as it requires > manual polling. > > As

[PATCH v3] usb: core: added uevent for over-current

2018-09-20 Thread Jon Flatley
After commit 1cbd53c8cd85 ("usb: core: introduce per-port over-current counters") usb ports expose a sysfs value 'over_current_count' to user space. This value on its own is not very useful as it requires manual polling. As a solution, fire a udev event from the usb hub device that specifies the

Re: some question about ehci-sched.c

2018-09-20 Thread Alan Stern
On Fri, 21 Sep 2018, yoma sophian wrote: > hi all: > in iso_stream_schedule of ehci-sched.c, why we have to add the "-" in > (-(++ehci->random_frame)) to calculate the start uframe? > thanks for ur help in advance. > > if (stream->ps.phase == NO_FRAME) { >

[PATCH v2 07/10] xhci: Use soft retry to recover faster from transaction errors

2018-09-20 Thread Mathias Nyman
Use soft retry to recover from a USB Transaction Errors that are caused by temporary error conditions. The USB device is not aware that the xHC has halted the endpoint, and will be waiting for another retry A Soft Retry perform additional retries and recover from an error which has caused the xHC

[PATCH v2 03/10] usb: xhci-mtk: improve bandwidth scheduling

2018-09-20 Thread Mathias Nyman
From: Chunfeng Yun Mainly improve SuperSpeed ISOC bandwidth in last microframe, and LowSpeed/FullSpeed IN INT/ISOC bandwidth in split and idle microframes by introduing a bandwidth budget table; Signed-off-by: Chunfeng Yun Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mtk-sch.c |

[PATCH v2 00/10] xhci features for usb-next

2018-09-20 Thread Mathias Nyman
Hi Greg Second try, shuffling patches. A few new features for xhci, among others better transaction error handling, default runtime PM allowing for Intel Alpine and Tiran Ridge xhci controllers, and Mediatek isoc transfer related xhci improvements. Changes since v1 - moved following patches

[PATCH v2 09/10] usb: xhci: tegra: Firmware header is little endian

2018-09-20 Thread Mathias Nyman
From: Thierry Reding The XUSB firmware header is in little endian byte order, so make the fields __le32 and __le16 instead of u32 and u16 to avoid warnings from sparse when the fields are used with the endian-aware __le32_to_cpu() and __le16_to_cpu() accessors, respectively. Signed-off-by:

[PATCH v2 01/10] usb: xhci-mtk: use maximum ESIT payload of endpiont context

2018-09-20 Thread Mathias Nyman
From: Chunfeng Yun Make use of maximum ESIT payload of endpoint context to calculate the number of packets to send in each ESIT Signed-off-by: Chunfeng Yun Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mtk-sch.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-)

[PATCH v2 10/10] xhci: Avoid USB autosuspend when resuming USB2 ports.

2018-09-20 Thread Mathias Nyman
From: Anshuman Gupta When USB bus host controller root hub resumes from autosuspend, it immediately tries to enter auto-suspend, but there can be a scenario when root hub is resuming its usb2 ports, in that particular case USB host controller auto suspend fails since it is busy to resuming its

[PATCH v2 08/10] xhci-pci: allow host runtime PM as default for Intel Alpine and Titan Ridge

2018-09-20 Thread Mathias Nyman
The xhci controller on Alpine and Titan Ridge keeps the whole thunderbolt awake if the host controller is not allowed tp sleep. This is the case even if no USB devices are connected to the host. Because of this bigger impact, allow runtime pm as default for these xhci controllers in the driver.

[PATCH v2 02/10] usb: xhci-mtk: fix ISOC error when interval is zero

2018-09-20 Thread Mathias Nyman
From: Chunfeng Yun If the interval equal zero, needn't round up to power of two for the number of packets in each ESIT, so fix it. Signed-off-by: Chunfeng Yun Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mtk-sch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 06/10] usb: host: xhci-plat: add platform TPL support

2018-09-20 Thread Mathias Nyman
From: Peter Chen The TPL support is used to identify targeted devices during EH2.0 and EH3.0 certification test, the user can add "tpl-support" at dts to enable this feature. Signed-off-by: Peter Chen Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3

[PATCH v2 04/10] usb: xhci-mtk: supports bandwidth scheduling with multi-TT

2018-09-20 Thread Mathias Nyman
From: Chunfeng Yun Supports LowSpeed and FullSpeed INT/ISOC bandwidth scheduling with USB multi-TT Signed-off-by: Chunfeng Yun Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mtk-sch.c | 247 ++-- drivers/usb/host/xhci-mtk.h | 21 2 files

[PATCH v2 05/10] usb: xhci-mtk: supports SSP without external USB3 gen2 hub

2018-09-20 Thread Mathias Nyman
From: Chunfeng Yun Supports SSP scheduling only for SSP device directly connected to root hub but not through external USB3 gen2 hub which need use a new scheduling way. Signed-off-by: Chunfeng Yun Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mtk-sch.c | 17 +++-- 1

some question about ehci-sched.c

2018-09-20 Thread yoma sophian
hi all: in iso_stream_schedule of ehci-sched.c, why we have to add the "-" in (-(++ehci->random_frame)) to calculate the start uframe? thanks for ur help in advance. if (stream->ps.phase == NO_FRAME) { int done = 0;

[PATCH v2 3/3] usb: typec: pci: Enable Intel USB role mux on Apollo Lake platforms

2018-09-20 Thread Mathias Nyman
From: Heikki Krogerus Intel Apollo Lake has the same internal USB role mux as Intel Cherry Trail. Cc: Signed-off-by: Heikki Krogerus Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-pci.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH v2 0/3] xhci fixes for usb-linus

2018-09-20 Thread Mathias Nyman
Hi Greg Second try, shuffling patches between for-usb-linus and for-usb-next A few patches that makes sure USB3 devices enumerate to correct speed after resume on Mediatek hosts, enables role mux on Apollo lake platforms, and adds the missing cold attach status (CAS) bit quirk to Intel Sunrise

[PATCH v2 2/3] usb: xhci-mtk: resume USB3 roothub first

2018-09-20 Thread Mathias Nyman
From: Chunfeng Yun Give USB3 devices a better chance to enumerate at USB3 speeds if they are connected to a suspended host. Porting from "671ffdff5b13 xhci: resume USB 3 roothub first" Cc: Signed-off-by: Chunfeng Yun Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mtk.c | 4 ++-- 1

[PATCH v2 1/3] xhci: Add missing CAS workaround for Intel Sunrise Point xHCI

2018-09-20 Thread Mathias Nyman
The workaround for missing CAS bit is also needed for xHC on Intel sunrisepoint PCH. For more details see: Intel 100/c230 series PCH specification update Doc #332692-006 Errata #8 Cc: Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-pci.c | 2 ++ 1 file changed, 2 insertions(+) diff

Re: Kernel memory leak on CDC-ACM device plug/unplug

2018-09-20 Thread Romain Izard
2018-09-19 22:32 GMT+02:00 Greg KH : > On Wed, Sep 19, 2018 at 04:11:55PM +0200, Romain Izard wrote: >> While trying to debug a memory leak problem, I encountered the following >> problem: >> >> After plugging/unplugging an USB CDC-ACM device, kmemleak reports multiple >> copies of the following

Re: [PATCH] usb: dwc2: Fix HiKey regression caused by power_down feature

2018-09-20 Thread Artur Petrosyan
Hi John, On 5/23/2018 01:57, John Stultz wrote: > On Tue, May 22, 2018 at 7:24 AM, Minas Harutyunyan > wrote: >> Hi John, >> >> Please provide log with debug enabled configuration. > > Ok. Attached. > For dmesg-broken.log: OTG removed at 77, and OTG plugged in at 82 > For dmesg-with-patch.log:

Set reference clock for onboard hub in DT

2018-09-20 Thread Frieder Schrempf
Hi, I have a question concerning the setup for a board with an onboard USB hub. The SoC (i.MX6S) is expected to provide a 12 MHz clock on one of the clock output pins as a reference for the USB hub. Now I was looking for a way to configure this in the DT, which works fine up to the point,

[PATCH 1/3] usb: dwc2: Add default param to control power optimization.

2018-09-20 Thread Artur Petrosyan
- Added a default param "power_saving" to enable or disable hibernation or partial power down features. - Printed hibernation param in hw_params_show and power_saving param in params_show. Signed-off-by: Artur Petrosyan Signed-off-by: Minas Harutyunyan --- drivers/usb/dwc2/core.h| 3

[PATCH 2/3] usb: dwc2: Update dwc2_handle_usb_suspend_intr function.

2018-09-20 Thread Artur Petrosyan
To avoid working in two modes (partial power down and hibernation) changed conditions for entering partial power down or hibernation. Instead of checking hw_params.power_optimized and hw_params.hibernation now checking power_down param which already set to one of the options (Hibernation or

[PATCH 0/3] usb: dwc2: Fix hibernation for switching between host and device modes.

2018-09-20 Thread Artur Petrosyan
This patch set, fixes and improves hibernation flow. Mainly, fixes hibernation for switching between host and device modes. Adds enabling/disabling of power optimization parameter. Artur Petrosyan (3): usb: dwc2: Add default param to control power optimization. usb: dwc2: Update

[PATCH 3/3] usb: dwc2: Fix hibernation between host and device modes.

2018-09-20 Thread Artur Petrosyan
- After entering hibernation both in host and device modes saved GPWRDN register. - In handling status change interrupt checking if current mode differs from the mode when entered hibernation. In case when mode is not changed, exiting device hibernation without remote wake up. On the

Re: Embedded USB Debug

2018-09-20 Thread Felipe Balbi
Hi, Muni Sekhar writes: > Hi All, > > Can someone clarify me on the Embedded USB Debug(EUD): > > What is Embedded USB Debug(EUD)? A quick google search returned this: https://patents.google.com/patent/US20160124822 > What Embedded USB Debug(EUD) is going to be used for? JTAG/UART/SWD/etc

Re: [PATCH 1/2] usb: typec: mux: Take care of driver module reference counting

2018-09-20 Thread Greg KH
On Thu, Sep 20, 2018 at 02:26:28PM +0300, Heikki Krogerus wrote: > On Thu, Sep 20, 2018 at 01:20:03PM +0200, Greg KH wrote: > > On Wed, Sep 19, 2018 at 10:58:04AM +0300, Heikki Krogerus wrote: > > > Functions typec_mux_get() and typec_switch_get() already > > > make sure that the mux device

[PATCH 12/12] usb: typec: Group all TCPCI/TCPM code together

2018-09-20 Thread Heikki Krogerus
Moving all the drivers that depend on the Port Controller Manager under a new directory drivers/usb/typec/tcpm/ and making Guenter Roeck the designated reviewer of that code. Acked-by: Guenter Roeck Signed-off-by: Heikki Krogerus --- MAINTAINERS | 6 +++

Re: [PATCH 1/2] usb: typec: mux: Take care of driver module reference counting

2018-09-20 Thread Heikki Krogerus
On Thu, Sep 20, 2018 at 01:20:03PM +0200, Greg KH wrote: > On Wed, Sep 19, 2018 at 10:58:04AM +0300, Heikki Krogerus wrote: > > Functions typec_mux_get() and typec_switch_get() already > > make sure that the mux device reference count is > > incremented, but the same must be done to the driver

[PATCH 11/12] usb: typec: fusb302: reorganizing the probe function a little

2018-09-20 Thread Heikki Krogerus
The debugfs needs to be initialized as the last step in probe in this case. The struct dentry *rootdir can't be pointing to anything unless driver probe really finishes successfully. It is also not necessary to clear the i2c clientdata if the probe fails, so removing the extra label used for

[PATCH 02/12] dt-bindings: usb: fusb302: Use usb-connector bindings for configuration

2018-09-20 Thread Heikki Krogerus
From: Adam Thomson There are now generic usb-connector bindings which can be used to define a port controllers configuration for USB-PD, so device specific bindings are no longer necessary. This update deprecates 'fcs,operating-sink-microwatt', and references the 'usb-connector' bindings

[PATCH 07/12] platform: x86: intel_cht_int33fe: Add connection for the DP alt mode

2018-09-20 Thread Heikki Krogerus
Adding a connection for the DisplayPort alternate mode. PI3USB30532 is used for muxing the port to DisplayPort on CHT platforms. The connection allows the alternate mode device to get handle to the mux, and therefore make it possible to use the USB Type-C connector as DisplayPort. Acked-by: Andy

[PATCH 09/12] usb: typec: class: Don't use port parent for getting mux handles

2018-09-20 Thread Heikki Krogerus
It is not possible to use the parent of the port device when requesting mux handles as the parent may be a multiport USB Type-C or PD controller. The muxes must be assigned to the ports, not the controllers. This will also move the requesting of the muxes after the port device is initialized.

[PATCH 04/12] platform: x86: intel_cht_int33fe: Add dependency on muxes

2018-09-20 Thread Heikki Krogerus
The connections create clear dependency on the muxes. fusb302 fails to probe unless we have the mux drivers available. Acked-by: Andy Shevchenko Acked-by: Hans de Goede Tested-by: Hans de Goede Signed-off-by: Heikki Krogerus --- drivers/platform/x86/Kconfig | 2 ++ 1 file changed, 2

[PATCH 03/12] usb: typec: fusb302: Populate tcpc fwnode for TCPM property handling

2018-09-20 Thread Heikki Krogerus
From: Adam Thomson This update populates the tcpc handle's fwnode pointer with the child usb-connector node, if it exists, so that TCPM can perform generic property handling to define the ports capabilities. Signed-off-by: Adam Thomson Reviewed-by: Guenter Roeck Signed-off-by: Heikki Krogerus

[PATCH 10/12] platform: x86: intel_cht_int33fe: Remove the old connections for the muxes

2018-09-20 Thread Heikki Krogerus
USB Type-C class driver now expects the muxes to be always assigned to the ports and not controllers, so the connections for the mux and fusb302 can be removed. Acked-by: Andy Shevchenko Acked-by: Hans de Goede Tested-by: Hans de Goede Signed-off-by: Heikki Krogerus ---

[PATCH 05/12] drivers: base: Helpers for adding device connection descriptions

2018-09-20 Thread Heikki Krogerus
Introducing helpers for adding and removing multiple device connection descriptions at once. Acked-by: Hans de Goede Tested-by: Hans de Goede Signed-off-by: Heikki Krogerus --- include/linux/device.h | 24 1 file changed, 24 insertions(+) diff --git

[PATCH 06/12] platform: x86: intel_cht_int33fe: Register all connections at once

2018-09-20 Thread Heikki Krogerus
We can register all device connection descriptors with a single call to device_connections_add(). Acked-by: Andy Shevchenko Acked-by: Hans de Goede Tested-by: Hans de Goede Signed-off-by: Heikki Krogerus --- drivers/platform/x86/intel_cht_int33fe.c | 14 -- 1 file changed, 4

[PATCH 00/12] Type-C changes for usb-next

2018-09-20 Thread Heikki Krogerus
Hi Greg, I took the liberty of collecting the Type-C patches, and sending all of them to you together this time. I hope that's OK. Since all the Type-C port controller drivers and port manager code is now out of staging, the final patch will group them all together under a new directory

[PATCH 08/12] platform: x86: intel_cht_int33fe: Add connections for the USB Type-C port

2018-09-20 Thread Heikki Krogerus
Assigning the mux to the USB Type-C port on top of fusb302. That will prepare this driver for the change in the USB Type-C class code, where the class driver will assume the muxes to be always assigned to the ports and not the controllers. Once the USB Type-C class driver has been updated, the

[PATCH 01/12] dt-bindings: connector: Add support for USB-PD PPS APDOs to bindings

2018-09-20 Thread Heikki Krogerus
From: Adam Thomson Add support for PPS APDOs to connector bindings so a port controller can specify support for PPS, as per existing FIXED/BATT/VAR PDOs. Signed-off-by: Adam Thomson Reviewed-by: Rob Herring Signed-off-by: Heikki Krogerus --- .../bindings/connector/usb-connector.txt |

Re: [PATCH 1/2] usb: typec: mux: Take care of driver module reference counting

2018-09-20 Thread Greg KH
On Wed, Sep 19, 2018 at 10:58:04AM +0300, Heikki Krogerus wrote: > Functions typec_mux_get() and typec_switch_get() already > make sure that the mux device reference count is > incremented, but the same must be done to the driver module > as well to prevent the drivers from being unloaded in the >

Re: [PATCH v4 00/10] usb: typec: A few more improvements for Intel CHT

2018-09-20 Thread Greg Kroah-Hartman
On Wed, Sep 12, 2018 at 11:00:55AM +0300, Heikki Krogerus wrote: > Hi, > > On Tue, Sep 11, 2018 at 07:36:34PM +0200, Hans de Goede wrote: > > On 11-09-18 12:10, Heikki Krogerus wrote: > > > This is fourth version of this series. There was one bug in patch 2/10 > > > that Hans noticed. It should

Re: [PATCH v2] usb: core: added uevent for over-current

2018-09-20 Thread Greg KH
On Tue, Sep 11, 2018 at 10:43:10AM -0700, Jon Flatley wrote: > After commit 1cbd53c8cd85 ("usb: core: introduce per-port over-current > counters") usb ports expose a sysfs value 'over_current_count' > to user space. This value on its own is not very useful as it requires > manual polling. > > As

Re: [PATCH v6 01/22] usb: usbtmc: Add ioctl for generic requests on control

2018-09-20 Thread Greg KH
On Thu, Sep 20, 2018 at 01:00:35PM +0200, Greg KH wrote: > On Wed, Sep 12, 2018 at 10:50:51AM +0200, Guido Kiener wrote: > > --- a/include/uapi/linux/usb/tmc.h > > +++ b/include/uapi/linux/usb/tmc.h > > @@ -4,6 +4,7 @@ > > * Copyright (C) 2008 Novell, Inc. > > * Copyright (C) 2008 Greg

Re: [PATCHv2] usb: typec: Group all TCPCI/TCPM code together

2018-09-20 Thread Heikki Krogerus
On Thu, Sep 20, 2018 at 12:52:35PM +0200, Greg Kroah-Hartman wrote: > On Tue, Sep 11, 2018 at 05:51:36PM +0300, Heikki Krogerus wrote: > > On Mon, Sep 10, 2018 at 06:21:04AM -0700, Guenter Roeck wrote: > > > On 09/10/2018 04:58 AM, Heikki Krogerus wrote: > > > > Moving all the drivers that depend

Re: [PATCH v6 02/22] usb: usbtmc: Add ioctl for vendor specific write

2018-09-20 Thread Greg KH
On Wed, Sep 12, 2018 at 10:50:52AM +0200, Guido Kiener wrote: > +/* > + * usbtmc_message->flags: > + */ > +#define USBTMC_FLAG_ASYNC0x0001 > +#define USBTMC_FLAG_APPEND 0x0002 > + > +struct usbtmc_message { > + __u32 transfer_size; /* size of bytes to transfer */ > +

Re: [PATCH v6 01/22] usb: usbtmc: Add ioctl for generic requests on control

2018-09-20 Thread Greg KH
On Wed, Sep 12, 2018 at 10:50:51AM +0200, Guido Kiener wrote: > --- a/include/uapi/linux/usb/tmc.h > +++ b/include/uapi/linux/usb/tmc.h > @@ -4,6 +4,7 @@ > * Copyright (C) 2008 Novell, Inc. > * Copyright (C) 2008 Greg Kroah-Hartman > * Copyright (C) 2015 Dave Penkler > + * Copyright (C)

Re: [PATCHv2] usb: typec: Group all TCPCI/TCPM code together

2018-09-20 Thread Greg Kroah-Hartman
On Tue, Sep 11, 2018 at 05:51:36PM +0300, Heikki Krogerus wrote: > On Mon, Sep 10, 2018 at 06:21:04AM -0700, Guenter Roeck wrote: > > On 09/10/2018 04:58 AM, Heikki Krogerus wrote: > > > Moving all the drivers that depend on the Port Controller > > > Manager under a new directory

Re: [PATCH 2/2] USB: usbdevfs: restore warning for nonsensical flags

2018-09-20 Thread Greg KH
On Thu, Sep 06, 2018 at 11:34:04AM -0400, Alan Stern wrote: > On Thu, 6 Sep 2018, Oliver Neukum wrote: > > > On Mi, 2018-09-05 at 15:07 +0200, Greg KH wrote: > > > On Wed, Sep 05, 2018 at 03:02:48PM +0200, Oliver Neukum wrote: > > > > On Mi, 2018-09-05 at 14:19 +0200, Greg KH wrote: > > > > > On

Re: [PATCH 01/10] usb: xhci-mtk: resume USB3 roothub first

2018-09-20 Thread Greg KH
On Mon, Sep 17, 2018 at 10:35:46AM +0300, Mathias Nyman wrote: > On 14.09.2018 16:27, Greg KH wrote: > > On Thu, Sep 13, 2018 at 03:23:54PM +0300, Mathias Nyman wrote: > > > From: Chunfeng Yun > > > > > > Give USB3 devices a better chance to enumerate at USB3 speeds if > > > they are connected

Re: [PATCH 1/3] usb: xhci: tegra: Firmware header is little endian

2018-09-20 Thread Greg KH
On Mon, Sep 17, 2018 at 08:40:44AM +0200, Thierry Reding wrote: > On Fri, Sep 14, 2018 at 03:01:22PM +0200, Greg KH wrote: > > On Fri, Sep 14, 2018 at 03:33:29PM +0300, Mathias Nyman wrote: > > > From: Thierry Reding > > > > > > The XUSB firmware header is in little endian byte order, so make

Re: [PATCH 2/3] xhci: Avoid USB autosuspend when resuming USB2 ports.

2018-09-20 Thread Greg KH
On Wed, Sep 19, 2018 at 10:54:45AM +0530, Anshuman Gupta wrote: > On Mon, Sep 17, 2018 at 11:24:20AM +0300, Mathias Nyman wrote: > > On 14.09.2018 16:00, Greg KH wrote: > > > On Fri, Sep 14, 2018 at 03:33:30PM +0300, Mathias Nyman wrote: > > > > From: Anshuman Gupta > > > > > > > > When USB bus

Re: [PATCH] usb: dwc2: Disable all EP's on disconnect

2018-09-20 Thread Dan Carpenter
On Thu, Sep 20, 2018 at 10:21:26AM +, Minas Harutyunyan wrote: > Hi Dan, > > On 9/20/2018 1:49 PM, Dan Carpenter wrote: > > is is obviously deliberate that we drop the other thread's lock and > > then take it ourselves. But I don't think that can be right at all. > > How do we know that it's

Re: [PATCH] usb: dwc2: Disable all EP's on disconnect

2018-09-20 Thread Minas Harutyunyan
Hi Dan, On 9/20/2018 1:49 PM, Dan Carpenter wrote: > is is obviously deliberate that we drop the other thread's lock and > then take it ourselves. But I don't think that can be right at all. > How do we know that it's safe for the other thread to drop the lock? > > There should at least be a

Re: [PATCH] usb: dwc2: Disable all EP's on disconnect

2018-09-20 Thread Dan Carpenter
Hi Minas, url: https://github.com/0day-ci/linux/commits/Minas-Harutyunyan/usb-dwc2-Disable-all-EP-s-on-disconnect/20180919-104259 base: https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git next smatch warnings: drivers/usb/dwc2/gadget.c:4024 dwc2_hsotg_ep_disable() error: double

Embedded USB Debug

2018-09-20 Thread Muni Sekhar
Hi All, Can someone clarify me on the Embedded USB Debug(EUD): What is Embedded USB Debug(EUD)? What Embedded USB Debug(EUD) is going to be used for? Does Linux main tree has any drivers to support this? -- Thanks, Sekhar

Re: usb typec not doing handling in-kernel

2018-09-20 Thread Heiko Stuebner
Hi Guenter, Am Montag, 13. August 2018, 14:29:15 CEST schrieb Guenter Roeck: > On 08/13/2018 03:36 AM, Heiko Stuebner wrote: > > Hi, > > > > I'm currently trying to wrap my head around the new typec subsystem and > > also how to do it correctly on Rockchip rk3399 devices. > > > > The issue (and