File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -3098,8 +3098,6 @@ static int phy_probe(struct device *dev)
3098
3098
if (phydrv -> flags & PHY_IS_INTERNAL )
3099
3099
phydev -> is_internal = true;
3100
3100
3101
- mutex_lock (& phydev -> lock );
3102
-
3103
3101
/* Deassert the reset signal */
3104
3102
phy_device_reset (phydev , 0 );
3105
3103
@@ -3188,12 +3186,10 @@ static int phy_probe(struct device *dev)
3188
3186
phydev -> state = PHY_READY ;
3189
3187
3190
3188
out :
3191
- /* Assert the reset signal */
3189
+ /* Re-assert the reset signal on error */
3192
3190
if (err )
3193
3191
phy_device_reset (phydev , 1 );
3194
3192
3195
- mutex_unlock (& phydev -> lock );
3196
-
3197
3193
return err ;
3198
3194
}
3199
3195
@@ -3203,9 +3199,7 @@ static int phy_remove(struct device *dev)
3203
3199
3204
3200
cancel_delayed_work_sync (& phydev -> state_queue );
3205
3201
3206
- mutex_lock (& phydev -> lock );
3207
3202
phydev -> state = PHY_DOWN ;
3208
- mutex_unlock (& phydev -> lock );
3209
3203
3210
3204
sfp_bus_del_upstream (phydev -> sfp_bus );
3211
3205
phydev -> sfp_bus = NULL ;
You can’t perform that action at this time.
0 commit comments