Re: [PATCH v2 0/2] usb: host: [eo]hci-plat: set hcd->phy to avoid phy_get_() in usb_add_hcd()

2017-03-13 Thread Alan Stern
On Mon, 13 Mar 2017, Yoshihiro Shimoda wrote: > The usb_add_hcd() will call phy_{get,init,power_on}() if hcd->phy is not set. > After the usb_add_hcd() call phy_power_on(), it keeps until usb_remove_hcd(). > And then, even if the system turns suspend, the usb core keeps the phy power. > I think

[PATCH v2 0/2] usb: host: [eo]hci-plat: set hcd->phy to avoid phy_get_() in usb_add_hcd()

2017-03-13 Thread Yoshihiro Shimoda
The usb_add_hcd() will call phy_{get,init,power_on}() if hcd->phy is not set. After the usb_add_hcd() call phy_power_on(), it keeps until usb_remove_hcd(). And then, even if the system turns suspend, the usb core keeps the phy power. I think that each host driver should handle the phy power. So,