On Thursday 02 August 2012, Praveen Paneri wrote: > Yes! I understand this problem and this is the reason these patches > were sitting in my system for couple of weeks. In a discussion with > Thomas an idea of using the existing regulator framework to > enable/disable numerous PHYs came up. For example the PMU unit > of Exynos4210 has a register set dedicated just to control USBD_PHY, > HDMI_PHY, MIPI_PHY, DAC_PHY and more. If a regulator with > each phy control register as LDO is written, the phy driver becomes a > static consumer and will modify as below.
This is roughly what I had in mind, yes. The part I'm not sure about is the subsystem to use. One could obviously express the same logic using the clock or gpio framework, which would work but be conceptually wrong. Some other parts of the PMU functionality are provided through pm-domains rather than regulators and I guess in theory it could all be controlled through pm-domains. Maybe someone else has a better understanding than me what the tradeoffs are here and which subsystem should be used for the PMU. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html