Re: [RFC net-next] net: phy: introduce phy_reg_field interface

From: Florian Fainelli
Date: Fri Mar 31 2023 - 08:48:11 EST




On 3/31/2023 5:32 AM, Radu Pirea (OSS) wrote:
Some PHYs can be heavily modified between revisions, and the addresses of
the registers are changed and the register fields are moved from one
register to another.

To integrate more PHYs in the same driver with the same register fields,
but these register fields were located in different registers at
different offsets, I introduced the phy_reg_fied structure.

phy_reg_fied structure abstracts the register fields differences.

Signed-off-by: Radu Pirea (OSS) <radu-nicolae.pirea@xxxxxxxxxxx>

You know how it goes: a framework without its user will not be accepted unless an user of that framework also shows up. Can you post both?
--
Florian