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

Reply via email to