Sharing the APCI companion with the core platforms device so
it has access to all DWC3's resources.

Signed-off-by: Heikki Krogerus <[email protected]>
---
 drivers/usb/dwc3/dwc3-pci.c | 1 +
 1 file changed, 1 insertion(+)

Hi,

This depends on being able to prevent execution of ACPI power methods
more then once. Mika has made a patch for that:
https://git.kernel.org/cgit/linux/kernel/git/lee/mfd.git/commit/?h=for-mfd-next&id=712e960f0ee9337f3473ba3de2bcfc7e87b7c5a4


Thanks,

diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index f626179..89eb364 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -154,6 +154,7 @@ static int dwc3_pci_probe(struct pci_dev *pci,
                goto err;
 
        dwc3->dev.parent = dev;
+       ACPI_COMPANION_SET(&dwc3->dev, ACPI_COMPANION(dev));
 
        ret = platform_device_add(dwc3);
        if (ret) {
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to