22 static int ehci_update_device(
struct usb_hcd *hcd,
struct usb_device *
udev)
24 struct ehci_hcd *ehci = hcd_to_ehci(hcd);
30 if (ehci->
has_lpm && !udev->parent->parent) {
31 rc = ehci_lpm_set_da(ehci, udev->devnum, udev->portnum);
33 rc = ehci_lpm_check(ehci, udev->portnum);
38 static const struct hc_driver vt8500_ehci_hc_driver = {
39 .description = hcd_name,
40 .product_desc =
"VT8500 EHCI",
41 .hcd_priv_size =
sizeof(
struct ehci_hcd),
47 .flags = HCD_MEMORY | HCD_USB2,
55 .shutdown = ehci_shutdown,
60 .urb_enqueue = ehci_urb_enqueue,
61 .urb_dequeue = ehci_urb_dequeue,
62 .endpoint_disable = ehci_endpoint_disable,
63 .endpoint_reset = ehci_endpoint_reset,
68 .get_frame_number = ehci_get_frame,
73 .hub_status_data = ehci_hub_status_data,
74 .hub_control = ehci_hub_control,
77 .relinquish_port = ehci_relinquish_port,
78 .port_handed_over = ehci_port_handed_over,
83 .update_device = ehci_update_device,
85 .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
105 if (!pdev->
dev.dma_mask)
106 pdev->
dev.dma_mask = &vt8500_ehci_dma_mask;
109 pr_debug(
"resource[1] is not IORESOURCE_IRQ");
117 hcd->rsrc_start = res->
start;
118 hcd->rsrc_len = resource_size(res);
127 ehci = hcd_to_ehci(hcd);
128 ehci->
caps = hcd->regs;
133 platform_set_drvdata(pdev, hcd);
144 struct usb_hcd *hcd = platform_get_drvdata(pdev);
148 platform_set_drvdata(pdev,
NULL);
154 { .compatible =
"via,vt8500-ehci", },
155 { .compatible =
"wm,prizm-ehci", },
160 .probe = vt8500_ehci_drv_probe,
161 .remove = vt8500_ehci_drv_remove,
164 .name =
"vt8500-ehci",