From: Tony LIU Date: Wed, 8 Feb 2012 07:42:22 +0000 (+0800) Subject: ENGR00174037-2 Add HSIC suspend/resume feature X-Git-Tag: v3.0.35-fsl~1515 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=de7f6624e3aac62700d1d65bbae4ea50ff7e7dd6;p=karo-tx-linux.git ENGR00174037-2 Add HSIC suspend/resume feature device part - implement reset_device interface for HSIC host Signed-off-by: Tony LIU --- diff --git a/drivers/usb/host/ehci-arc.c b/drivers/usb/host/ehci-arc.c index d34e7deb8b24..39d288db7eb1 100755 --- a/drivers/usb/host/ehci-arc.c +++ b/drivers/usb/host/ehci-arc.c @@ -553,6 +553,19 @@ static int ehci_fsl_setup(struct usb_hcd *hcd) return retval; } +/* called after hcd send port_reset cmd */ +static int ehci_fsl_reset_device(struct usb_hcd *hcd, struct usb_device *udev) +{ + struct fsl_usb2_platform_data *pdata; + + pdata = hcd->self.controller->platform_data; + + if (pdata->hsic_device_connected) + pdata->hsic_device_connected(); + + return 0; +} + static const struct hc_driver ehci_fsl_hc_driver = { .description = hcd_name, .product_desc = "Freescale On-Chip EHCI Host Controller", @@ -596,6 +609,7 @@ static const struct hc_driver ehci_fsl_hc_driver = { .port_handed_over = ehci_port_handed_over, .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete, + .reset_device = ehci_fsl_reset_device, }; static int ehci_fsl_drv_probe(struct platform_device *pdev)