[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20180322154326.GA11793@lunn.ch>
Date: Thu, 22 Mar 2018 16:43:26 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Vicen?iu Galanopulo <vicentiu.galanopulo@....com>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: [RFC PATCH] net: phy: Added device tree binding for dev-addr and
dev-addr code check-up and usage
> Just to make sure I understand. Do you want me to change the
> signature of all of_mdiobus_register_phy(), get_phy_device(),
> get_phy_id() and get_phy_c45_ids() and include the dev_addr
> parameter obtained from the device tree? (a propagation of this
> parameter across all functions all the way to
> get_phy_c45_devs_in_pkg?)
Humm, i thought about this some more...
When calling mdio_read/mdio_write with C45 addresses, we pack both
parts in addr, and mask in MII_ADDR_C45. Try playing with that idea.
It might be less messy.
Andrew
Powered by blists - more mailing lists