Commit c6fa0b4c authored by Venu Byravarasu's avatar Venu Byravarasu Committed by Greg Kroah-Hartman

usb: host: tegra: re-arranging ehci functions

Re-arranged EHCI generic and tegra specific functions
into two separate groups for more readability.
Signed-off-by: default avatarVenu Byravarasu <vbyravarasu@nvidia.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8788fa03
...@@ -545,31 +545,32 @@ static const struct hc_driver tegra_ehci_hc_driver = { ...@@ -545,31 +545,32 @@ static const struct hc_driver tegra_ehci_hc_driver = {
.description = hcd_name, .description = hcd_name,
.product_desc = "Tegra EHCI Host Controller", .product_desc = "Tegra EHCI Host Controller",
.hcd_priv_size = sizeof(struct ehci_hcd), .hcd_priv_size = sizeof(struct ehci_hcd),
.flags = HCD_USB2 | HCD_MEMORY, .flags = HCD_USB2 | HCD_MEMORY,
.reset = tegra_ehci_setup, /* standard ehci functions */
.irq = ehci_irq, .irq = ehci_irq,
.start = ehci_run, .start = ehci_run,
.stop = ehci_stop, .stop = ehci_stop,
.shutdown = tegra_ehci_shutdown,
.urb_enqueue = ehci_urb_enqueue, .urb_enqueue = ehci_urb_enqueue,
.urb_dequeue = ehci_urb_dequeue, .urb_dequeue = ehci_urb_dequeue,
.map_urb_for_dma = tegra_ehci_map_urb_for_dma,
.unmap_urb_for_dma = tegra_ehci_unmap_urb_for_dma,
.endpoint_disable = ehci_endpoint_disable, .endpoint_disable = ehci_endpoint_disable,
.endpoint_reset = ehci_endpoint_reset, .endpoint_reset = ehci_endpoint_reset,
.get_frame_number = ehci_get_frame, .get_frame_number = ehci_get_frame,
.hub_status_data = ehci_hub_status_data, .hub_status_data = ehci_hub_status_data,
.hub_control = tegra_ehci_hub_control,
.clear_tt_buffer_complete = ehci_clear_tt_buffer_complete, .clear_tt_buffer_complete = ehci_clear_tt_buffer_complete,
.relinquish_port = ehci_relinquish_port,
.port_handed_over = ehci_port_handed_over,
/* modified ehci functions for tegra */
.reset = tegra_ehci_setup,
.shutdown = tegra_ehci_shutdown,
.map_urb_for_dma = tegra_ehci_map_urb_for_dma,
.unmap_urb_for_dma = tegra_ehci_unmap_urb_for_dma,
.hub_control = tegra_ehci_hub_control,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.bus_suspend = tegra_ehci_bus_suspend, .bus_suspend = tegra_ehci_bus_suspend,
.bus_resume = tegra_ehci_bus_resume, .bus_resume = tegra_ehci_bus_resume,
#endif #endif
.relinquish_port = ehci_relinquish_port,
.port_handed_over = ehci_port_handed_over,
}; };
static int setup_vbus_gpio(struct platform_device *pdev) static int setup_vbus_gpio(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment