On Wednesday 01 March 2006 5:13 am, Lennert Buytenhek wrote:
> +static struct hc_driver ohci_ep93xx_hc_driver = {
> + .description = hcd_name,
> + .product_desc = "EP93xx OHCI",
> + .hcd_priv_size = sizeof(struct ohci_hcd),
> + .irq = ohci_irq,
> + .flags = HCD_USB11,
Mask in HCD_MEMORY here... it doesn't use i/o space addressing...
> + .start = ohci_ep93xx_start,
> + .stop = ohci_stop,
> + .urb_enqueue = ohci_urb_enqueue,
> + .urb_dequeue = ohci_urb_dequeue,
> + .endpoint_disable = ohci_endpoint_disable,
> + .get_frame_number = ohci_get_frame,
> + .hub_status_data = ohci_hub_status_data,
> + .hub_control = ohci_hub_control,
> +};
Needs bus_suspend and bus_resume entries. Also start_port_reset.
I think you started from an old pxa version that didn't have those.
> +static struct platform_driver ohci_hcd_ep93xx_driver = {
> + .probe = ohci_hcd_ep93xx_drv_probe,
> + .remove = ohci_hcd_ep93xx_drv_remove,
> + .driver = {
> + .name = "ep93xx-ohci",
> + },
> +};
The suspend and resume methods should stop and start the clock, as
a rule. Again, if you're modeling on pxa27x, more recent versions
of that driver have those bugs fixed.
- Dave
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel