Re: [PATCH] usb: dwc3: pci: passing forward the ACPI companion

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

 



On Mon, Aug 17, 2015 at 02:32:06PM +0300, Heikki Krogerus wrote:
> Sharing the APCI companion with the core platforms device so
              ^^^^
	      ACPI :-)

> it has access to all DWC3's resources.

and which resources are these ? and why can't they be abstrated out in
dwc3-pci ?

> Signed-off-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>
> ---
>  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
> 

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux