ehci-fsl driver's power management

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anatolij and others:

Can you explain why the ehci_fsl_mpc512x_drv_suspend() routine goes to 
the trouble of turning off the CMD_RUN bit in the EHCI command 
register, and why ehci_fsl_mpc512x_drv_resume() turns it back on?

These routines handle power management for the EHCI controller.  At the
time they run, the root hub is guaranteed to be suspended -- that is,
ehci_bus_suspend() has run and ehci_bus_resume() hasn't been called
yet.  As a result, the CMD_RUN bit should already be off and it should
remain off.

Would it be okay for me to remove the code that changes the CMD_RUN 
bit?

Also, why does the resume routine call usb_hcd_resume_root_hub()?  Is 
there a hardware bug that causes the controller not to issue the proper 
IRQ when a root-hub wakeup event occurs?

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux