]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00174037-2 Add HSIC suspend/resume feature
authorTony LIU <junjie.liu@freescale.com>
Wed, 8 Feb 2012 07:42:22 +0000 (15:42 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:33:58 +0000 (08:33 +0200)
device part

- implement reset_device interface for HSIC host

Signed-off-by: Tony LIU <junjie.liu@freescale.com>
drivers/usb/host/ehci-arc.c

index d34e7deb8b24a75e0836b28d3deb4e6c0e1eb4c7..39d288db7eb133a69e62e699d00af2c70aca0a03 100755 (executable)
@@ -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)