Re: [PATCH] usb: host: ehci-platform: add pm_runtime_xx()

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

 



On Wed, 1 Aug 2012 kuninori.morimoto.gx@xxxxxxxxxxx wrote:

> It is possible to power-on on platform setup level
> if Rafael and Magnus don't care this style.
> Then, I don't need this patch on ehci/ohci driver.
>       
>       1) power-on on platform setup timing
>       2) use ehci/ohci driver
> 
> the other is that add .power callback on usb_ehci_pdata,
> and control all power on this.
> 
>     -- probe --
>    if (pdata->power)
> 	pdata->power(xxx, 1)
> 
>    usb_add_hcd()
> 
>    -- remove --
>    usb_remove_hcd()
> 
>    if (pdata->power)
> 	pdata->power(xxx, 0)

That's a great idea.  Would you like to write a patch to do it?  
Remember, you'll have to modify ehci_platform_suspend() and 
ehci_platform_resume() as well.

All changes should be based on the current linux-next tree.  The EHCI
suspend/resume code is significantly different from the code in 3.5.

Alan Stern

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


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

  Powered by Linux