9
0
Fork 0

usb: ehci: forward phy given in registration data to host

Allow to pass a phy in the registration data and forward it to
the usb_host structure.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2016-09-29 09:39:52 +02:00
parent 0408cb01fa
commit 7c9708a5c6
2 changed files with 2 additions and 0 deletions

View File

@ -1297,6 +1297,7 @@ int ehci_register(struct device_d *dev, struct ehci_data *data)
host->hw_dev = dev;
host->init = ehci_init;
host->usbphy = data->usbphy;
host->submit_int_msg = submit_int_msg;
host->submit_control_msg = submit_control_msg;
host->submit_bulk_msg = submit_bulk_msg;

View File

@ -11,6 +11,7 @@ struct ehci_data {
void __iomem *hccr;
void __iomem *hcor;
unsigned long flags;
struct usb_phy *usbphy;
/* platform specific init functions */
int (*init)(void *drvdata);