[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190828180647.GA17864@lunn.ch>
Date: Wed, 28 Aug 2019 20:06:47 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Ong Boon Leong <boon.leong.ong@...el.com>
Cc: davem@...emloft.net, linux@...linux.org.uk,
mcoquelin.stm32@...il.com, joabreu@...opsys.com,
f.fainelli@...il.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, peppe.cavallaro@...com,
alexandre.torgue@...com, weifeng.voon@...el.com
Subject: Re: [RFC net-next v2 3/5] net: phy: add private data to mdio_device
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.
Andrew
Powered by blists - more mailing lists