Query: Phy: How to find consumer device on dt platform

Pratyush Anand
2014-01-28T14:14:13Z

Hi Kishon,

I have a phy driver which has to be used by two different consumer
driver, say pcie and sata.

I have a common set of registers, which need to be programmed
differently for PCIe and SATA during phy init/exit.

Therefore, in the init/exit routine of phy_ops, I need some way of
identifying that phy_init/exit has been called from PCIe driver or
SATA driver.

Please let me know, if a way already exist.

Regards
Pratyush