diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2020-09-18 13:57:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-18 17:52:40 -0700 |
commit | c129fc55fec59ab744f5e1fb9eb5bb0e68c789fd (patch) | |
tree | 5afcd82eaeb766b8d451cb3cee055d9855978288 /drivers/net/dsa | |
parent | 9a73f0b580ff0b6d027298681737bec07d603fb4 (diff) | |
download | linux-next-c129fc55fec59ab744f5e1fb9eb5bb0e68c789fd.tar.gz |
net: dsa: ocelot: document why reset procedure is different for felix/seville
The overall idea (issue soft reset, enable memories, initialize
memories, enable core) is the same, so it would make sense that an
attempt is made to unify the procedures.
It is not immediately obvious that the fields are not part of the same
register targets, though. So add a comment.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/ocelot/felix_vsc9959.c | 3 | ||||
-rw-r--r-- | drivers/net/dsa/ocelot/seville_vsc9953.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c index 397d24c9f7c2..6f6e4ef299c3 100644 --- a/drivers/net/dsa/ocelot/felix_vsc9959.c +++ b/drivers/net/dsa/ocelot/felix_vsc9959.c @@ -737,6 +737,9 @@ static int vsc9959_sys_ram_init_status(struct ocelot *ocelot) return ocelot_read(ocelot, SYS_RAM_INIT); } +/* CORE_ENA is in SYS:SYSTEM:RESET_CFG + * RAM_INIT is in SYS:RAM_CTRL:RAM_INIT + */ static int vsc9959_reset(struct ocelot *ocelot) { int val, err; diff --git a/drivers/net/dsa/ocelot/seville_vsc9953.c b/drivers/net/dsa/ocelot/seville_vsc9953.c index 36cf83d188f3..565ea1608d5e 100644 --- a/drivers/net/dsa/ocelot/seville_vsc9953.c +++ b/drivers/net/dsa/ocelot/seville_vsc9953.c @@ -820,6 +820,10 @@ out: return err; } +/* CORE_ENA is in SYS:SYSTEM:RESET_CFG + * MEM_INIT is in SYS:SYSTEM:RESET_CFG + * MEM_ENA is in SYS:SYSTEM:RESET_CFG + */ static int vsc9953_reset(struct ocelot *ocelot) { int val, err; |