Hello. On 14-03-2013 4:51, Kuninori Morimoto wrote:
Thank you for pointing it
0xAAAA0000 =========== EHCI ---------- 0xAAAA0094 PHY 0xAAAA009C PHY ---------- EHCI 0xAAAA0400 ========== ... 0xAAAA0800 ---------- PHY 0xAAAA0900 ----------
This driver couldn't probe if it used "request_mem_region()"
Fair enough. I must say, though. That's a peculiar register mapping ;-)
Not peculiar enough to not be able to overcome it. Those registers at 0xAAAA009[4C] are not really PHY related, they control EHCI internal buffering. They probably shouldn't have been a part of this driver even...
I'm not sure what is the best solution.
I suspect that these registers should be intialized as a part of ehci-platform driver's power_on() platform callback.
But current rcar_usb_phy is expecting above (strange) mapping, and initialize method is came from datasheet
I think I'll need to change it, especially as R-Car M1A only has one pair of EHIC/OHCI controllers.
Best regards --- Kuninori Morimoto
WBR, Sergei -- 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