20 static int au1xxx_ehci_setup(
struct usb_hcd *hcd)
22 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
25 ehci->
caps = hcd->regs;
26 ret = ehci_setup(hcd);
32 static const struct hc_driver ehci_au1xxx_hc_driver = {
33 .description = hcd_name,
34 .product_desc =
"Au1xxx EHCI",
35 .hcd_priv_size =
sizeof(
struct ehci_hcd),
41 .flags = HCD_MEMORY | HCD_USB2,
49 .reset = au1xxx_ehci_setup,
52 .shutdown = ehci_shutdown,
57 .urb_enqueue = ehci_urb_enqueue,
58 .urb_dequeue = ehci_urb_dequeue,
59 .endpoint_disable = ehci_endpoint_disable,
60 .endpoint_reset = ehci_endpoint_reset,
65 .get_frame_number = ehci_get_frame,
70 .hub_status_data = ehci_hub_status_data,
71 .hub_control = ehci_hub_control,
74 .relinquish_port = ehci_relinquish_port,
75 .port_handed_over = ehci_port_handed_over,
77 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
90 pr_debug(
"resource[1] is not IORESOURCE_IRQ");
98 hcd->rsrc_start = res->
start;
99 hcd->rsrc_len = resource_size(res);
103 pr_debug(
"devm_request_and_ioremap failed");
117 platform_set_drvdata(pdev, hcd);
129 struct usb_hcd *hcd = platform_get_drvdata(pdev);
134 platform_set_drvdata(pdev,
NULL);
140 static int ehci_hcd_au1xxx_drv_suspend(
struct device *
dev)
143 bool do_wakeup = device_may_wakeup(dev);
146 rc = ehci_suspend(hcd, do_wakeup);
152 static int ehci_hcd_au1xxx_drv_resume(
struct device *
dev)
157 ehci_resume(hcd,
false);
162 static const struct dev_pm_ops au1xxx_ehci_pmops = {
163 .
suspend = ehci_hcd_au1xxx_drv_suspend,
164 .resume = ehci_hcd_au1xxx_drv_resume,
167 #define AU1XXX_EHCI_PMOPS &au1xxx_ehci_pmops
170 #define AU1XXX_EHCI_PMOPS NULL
174 .probe = ehci_hcd_au1xxx_drv_probe,
175 .remove = ehci_hcd_au1xxx_drv_remove,
178 .name =
"au1xxx-ehci",