It will be even easier if they shared the same code. You could createFactor what out? Yes the DP83867 and DP83869 are very similar in registersstatic int dp83869_config_port_mirroring(struct phy_device *phydev)Overall this code looks quite similar to dp83867, is there no way to
{
struct dp83869_private *dp83869 = phydev->priv;
factor this out?
and bitmaps. They just differ in their feature sets.
The WoL code was copied and pasted to the 869 and I would like to keep the
two files as similar as I can as it will be easier to fix and find bugs.
a library of functions, like bcm-phy-lib.c.