Re: [RFC net-next v2 3/5] net: phy: add private data to mdio_device

From: Andrew Lunn
Date: Wed Aug 28 2019 - 14:07:02 EST

On Thu, Aug 29, 2019 at 01:47:20AM +0800, Ong Boon Leong wrote:
> PHY converter device is represented as mdio_device and requires private
> data. So, we add pointer for private data to mdio_device struct.

Hi Ong

This was discussed recently with regard to the xilinx_gmii2rgmii.c
driver. You can use the usual dev_get_drvdata() to get private data
associated to the device. I did suggest adding wrappers, so you can
pass a phydev, or and mdiodev.