On 11/22/2016 12:13 PM, Florian Fainelli wrote: > PHY drivers should be able to rely on the caller of {get,set}_tunable to > have acquired the PHY device mutex, in order to both serialize against > concurrent calls of these functions, but also against PHY state machine > changes. All ethtool PHY-level functions do this, except > {get,set}_tunable, so we make them consistent here as well. > > Fixes: 968ad9da7e0e ("ethtool: Implements > ETHTOOL_PHY_GTUNABLE/ETHTOOL_PHY_STUNABLE") > Signed-off-by: Florian Fainelli <f.faine...@gmail.com>
David, please discard, this is going to create problems for the Microsemi PHY driver since it also acquires phydev->lock. (patch has been marked accordingly in patchwork. Thanks! -- Florian