• Russell King's avatar
    net: sfp: rework upstream interface · 727b3668
    Russell King authored
    The current upstream interface is an all-or-nothing, which is
    sub-optimal for future changes, as it doesn't allow the upstream driver
    to prepare for the SFP module becoming available, as it is at boot.
    
    Switch to a find-sfp-bus, add-upstream, del-upstream, put-sfp-bus
    interface structure instead, which allows the upstream driver to
    prepare for a module being available as soon as add-upstream is called.
    Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    727b3668
sfp-bus.c 17.7 KB