Commit 9f8b3ee1 authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller

net: dsa: mv88e6xxx: rename smi_mutex to reg_lock

The chip smi_mutex mutex is used to protect the access to the internal
switch registers, not only the Multi-chip Addressing Mode, as commented.

Since we will isolate SMI-specific pieces of code, avoid the confusion
now by renaming smi_mutex to reg_lock. No functional changes here.
Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f7c0367
This diff is collapsed.
...@@ -554,11 +554,8 @@ struct mv88e6xxx_priv_state { ...@@ -554,11 +554,8 @@ struct mv88e6xxx_priv_state {
/* The device this structure is associated to */ /* The device this structure is associated to */
struct device *dev; struct device *dev;
/* When using multi-chip addressing, this mutex protects /* This mutex protects the access to the switch registers */
* access to the indirect access registers. (In single-chip struct mutex reg_lock;
* mode, this mutex is effectively useless.)
*/
struct mutex smi_mutex;
/* The MII bus and the address on the bus that is used to /* The MII bus and the address on the bus that is used to
* communication with the switch * communication with the switch
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment