Dear Grace,
I developed a first set of modifications to the 2.6.31 code taking from 2.6.35 code, just limited to USB host enable/disable with ehci-hcd probe/remove.
I started from the 2.6.35 code as you suggested and tested it on 2.6.31 only, because on 2.6.35 I have strange boot problems at the moment, but it should work for mx233 2.6.35 also.
I could attach a link to my modified files if someone is interested or can give further hints, but I don't know if this is allowed, please let me know.
Anyway these are the results:
Low freq enable:
This seems to work because, with both screen blanked and ehci-hcd removed i can go 24 or 64 Mhz (really not because the system crashes for another bug, but the sw gate now is open).
Residual power consumption when enabling USB host.
Before these modifications 9mA current entered on modprobe ehci-hcd and never went away.
Now, probing and removing ehci-hcd, about 6 mA current is correctly added and removed, but still a minor 3mA current remains and never go back.
I'd like to understand about this residual power (this is an underwater device, must stay on as long as possible).
As far as I see when ehci-hcd is removed USB phy PLL nd UTMI clock should be stopped and the full USB logic clock should be gated. Have you idea of what is missing?
Another question: I'd like to understand by you if the full suspend/wakeup logic also could be ported to mx233.
Thanks
Alberto
.