Re: linux-stable 4.11.y – xhci probe failed because of missing patches

2017-10-10 Thread Greg KH
On Tue, Oct 10, 2017 at 02:50:48PM +0700, Tung Vuong Nguyen wrote:
> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is 
> for the sole use of the intended recipient(s) and contains information that 
> is confidential and proprietary to Applied Micro Circuits Corporation or 
> its subsidiaries. It is to be used solely for the purpose of furthering the 
> parties' business relationship. All unauthorized review, use, disclosure or 
> distribution is prohibited. If you are not the intended recipient, please 
> contact the sender by reply e-mail and destroy all copies of the original 
> message.

oops, should have deleted my previous email.  I've now deleted yours, as
I should not ever respond to emails with footers like this :(
--
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


Re: linux-stable 4.11.y – xhci probe failed because of missing patches

2017-10-10 Thread Greg KH
On Tue, Oct 10, 2017 at 02:50:48PM +0700, Tung Vuong Nguyen wrote:
> Hi everyone,
> 
> Since kernel 4.11, there are a list of patches from Sriram (refer
> https://lkml.org/lkml/2016/11/10/51) that change the way DMA is
> inherited from sysdev. They have been accepted and available in
> torvalds/linux.git already. Below are list the patches:

4.11 is long end-of-life, why are you still using it?  Is this an issue
with either the 4.9 or 4.13 stable kernels?

4.11 also has other major issues, I'd stay away from it, unless you like
running insecure systems :)

thanks,

greg k-h
--
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


Re: linux-stable 4.11.y – xhci probe failed because of missing patches

2017-10-10 Thread Mathias Nyman

On 10.10.2017 10:50, Tung Vuong Nguyen wrote:

Hi everyone,

Since kernel 4.11, there are a list of patches from Sriram (refer
https://lkml.org/lkml/2016/11/10/51) that change the way DMA is
inherited from sysdev. They have been accepted and available in
torvalds/linux.git already. Below are list the patches:

d64ff406e5("usb: dwc3: use bus->sysdev for DMA configuration")
8c9f2de459("usb: dwc3: Do not set dma coherent mask")
a8c06e407e("usb: separate out sysdev pointer from usb_bus")
aeb78cda51("usb: chipidea: use bus->sysdev for DMA configuration")
8123e4953f("usb: ehci: fsl: use bus->sysdev for DMA configuration")
4c39d4b949("usb: xhci: use bus->sysdev for DMA configuration")
c6b8e79306("usb: host: xhci-plat: allow sysdev to inherit from ACPI")

They should all come together.

However, in linux-stable at linux-4.11.y branch, only 2 first above
patches are included. This causes the XHCI driver is fail to probe
with below kernel message:
[7.859145] xhci-hcd: probe of xhci-hcd.0.auto failed with error -5

This causes OSes such as CentOS 7.4 which uses kernel 4.11 have USB
XHCI driver fails to work.



True, the first two dwc3 patches were accepted to (4.10).
The rest, including the xhci change got into 4.12 or later
So basically 4.11.y stable will have broken dwc3 xhci host part.

In addition to those we probably need these two as well:
bde654a55adc usb: hcd: use correct device pointer for dma ops
8b373ffc7977 usb: ehci: use bus->sysdev for DMA configuration

So complete list for 4.11.y stable would be:

a8c06e407ef9 usb: separate out sysdev pointer from usb_bus
aeb78cda5100 usb: chipidea: use bus->sysdev for DMA configuration
8123e4953fe6 usb: ehci: fsl: use bus->sysdev for DMA configuration
4c39d4b949d3 usb: xhci: use bus->sysdev for DMA configuration
8b373ffc7977 usb: ehci: use bus->sysdev for DMA configuration
bde654a55adc usb: hcd: use correct device pointer for dma ops
c6b8e79306f5 usb: host: xhci-plat: allow sysdev to inherit from ACPI

If you agree I can sent that list to stable

-Mathias
--
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