Messages in this thread | | | Date | Thu, 1 Aug 2019 06:06:48 +0200 | From | Andrew Lunn <> | Subject | Re: [PATCH 2/2] net: gmii2rgmii: Switch priv field in mdio device structure |
| |
On Wed, Jul 31, 2019 at 03:06:19PM +0530, Harini Katakam wrote: > Use the priv field in mdio device structure instead of the one in > phy device structure. The phy device priv field may be used by the > external phy driver and should not be overwritten.
Hi Harini
I _think_ you could use dev_set_drvdata(&mdiodev->dev) in xgmiitorgmii_probe() and dev_get_drvdata(&phydev->mdiomdio.dev) in _read_status()
Andrew
| |