Re: [PATCH v2 1/2] usb: dwc3: Add ACPI support for xHCI ports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 18, 2020 at 05:12:18PM +0200, Andy Shevchenko wrote:
> The ACPI companion of the adapter has to be set for xHCI controller
> code to read and attach the ports described in the ACPI table.
> Use ACPI_COMPANION_SET macro to set this.

Felipe, do you have any comments on this?

> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> v2: split out kernel doc fix
>  drivers/usb/dwc3/host.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/usb/dwc3/host.c b/drivers/usb/dwc3/host.c
> index fa252870c926..95a90ea08975 100644
> --- a/drivers/usb/dwc3/host.c
> +++ b/drivers/usb/dwc3/host.c
> @@ -7,6 +7,7 @@
>   * Authors: Felipe Balbi <balbi@xxxxxx>,
>   */
>  
> +#include <linux/acpi.h>
>  #include <linux/platform_device.h>
>  
>  #include "core.h"
> @@ -75,6 +76,7 @@ int dwc3_host_init(struct dwc3 *dwc)
>  	}
>  
>  	xhci->dev.parent	= dwc->dev;
> +	ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev));
>  
>  	dwc->xhci = xhci;
>  
> -- 
> 2.25.0
> 

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux