• Marek Behún's avatar
    net: phy: mdio-i2c: support I2C MDIO protocol for RollBall SFP modules · 09bbedac
    Marek Behún authored
    Some multigig SFPs from RollBall and Hilink do not expose functional
    MDIO access to the internal PHY of the SFP via I2C address 0x56
    (although there seems to be read-only clause 22 access on this address).
    
    Instead these SFPs PHY can be accessed via I2C via the SFP Enhanced
    Digital Diagnostic Interface - I2C address 0x51. The SFP_PAGE has to be
    selected to 3 and the password must be filled with 0xff bytes for this
    PHY communication to work.
    
    This extends the mdio-i2c driver to support this protocol by adding a
    special parameter to mdio_i2c_alloc function via which this RollBall
    protocol can be selected.
    Signed-off-by: default avatarMarek Behún <kabel@kernel.org>
    Cc: Andrew Lunn <andrew@lunn.ch>
    Cc: Russell King <rmk+kernel@armlinux.org.uk>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    09bbedac
mdio-i2c.c 8.83 KB