From: gregkh@linuxfoundation.org (Greg Kroah-Hartman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2] usb: host: xhci-plat: allow sysdev to inherit from ACPI
Date: Tue, 5 Sep 2017 16:31:51 +0200 [thread overview]
Message-ID: <20170905143151.GA20815@kroah.com> (raw)
In-Reply-To: <a3e40fb9-8411-5de3-7c15-19d91ff98aaa@codeaurora.org>
On Tue, Sep 05, 2017 at 10:25:19AM -0400, Adam Wallis wrote:
> On 9/5/2017 10:16 AM, Greg Kroah-Hartman wrote:
> > On Tue, Sep 05, 2017 at 09:57:29AM -0400, Adam Wallis wrote:
> >> Currently, xhci_plat is not set up properly when the parent device is an
> >> ACPI node. The conditions that xhci_plat_probe should satisfy are
> >>
> >> 1. xhci_plat comes from firmware
> >> 2. xhci_plat is child of a device from firmware (dwc3-plat)
> >> 3. xhci_plat is grandchild of a pci device (dwc3-pci)
> >>
> >> Case 2 is covered when the child is an OF node (by checking
> >> sysdev->parent->of_node), however, an ACPI parent will return NULL in
> >> the of_node check and will thus not result in sysdev being set to
> >> sysdev->parent
> >>
> >> [ 17.591549] xhci-hcd: probe of xhci-hcd.6.auto failed with error -5
> >>
> >> This change adds a check for ACPI to completely allow for condition 2.
> >> This is done by first checking if the parent node is of type ACPI (e.g.,
> >> dwc3-plat) and set sysdev to sysdev->parent if either of the two
> >> following conditions are met:
> >>
> >> 1: If fwnode is empty (in the case that platform_device_add_properties
> >> was not called on the allocated platform device)
> >> 2: fwnode exists but is not of type ACPI (this would happen if
> >> platform_device_add_properties was called on the allocated device.
> >> Instead of type FWNODE_ACPI, you would end up with FWNODE_PDATA)
> >>
> >> Cc: stable at vger.kernel.org #4.12.x
> >> Cc: stable at vger.kernel.org #4.13.x
> >
> > What bug is this fixing that needs to go into the stable kernel trees?
> > Is this a regression, or a new feature for those versions?
> >
> Greg
>
> The following patch
>
> 4c39d4b949d36f usb: xhci: use bus->sysdev for DMA configuration
>
> provided an incomplete check for all firmware nodes (only checked for PCI and OF
> case, but not the ACPI case). This bug affects the 4.12 and 4.13 kernels.
What is the symptom of "incomplete check"? Something that used to work
now does not? Or just that it doesn't work "correctly" and this patch
resolves that issue so that new hardware can now work properly? I ask
as you have read the stable kernel rules, right?
thanks,
greg k-h
next prev parent reply other threads:[~2017-09-05 14:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 13:57 [PATCH V2] usb: host: xhci-plat: allow sysdev to inherit from ACPI Adam Wallis
2017-09-05 14:16 ` Greg Kroah-Hartman
2017-09-05 14:25 ` Adam Wallis
2017-09-05 14:31 ` Greg Kroah-Hartman [this message]
2017-09-05 14:38 ` Adam Wallis
2017-09-05 14:49 ` Greg Kroah-Hartman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170905143151.GA20815@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox