]> git.hungrycats.org Git - linux/commit
mv88e6xxx: Cache scratch config3 of 6352
authorFidan Aliyeva <fidan.aliyeva.ext@ericsson.com>
Thu, 21 May 2026 20:29:22 +0000 (22:29 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 May 2026 10:11:32 +0000 (12:11 +0200)
commit948330d99feb1c9e5b8a63e940494f14e96e936c
tree5aa828135fd2ff988a376148a6a015cfd7045437
parentf21395a783ffa24c2b6fbe491f0172df8aa38e8b
mv88e6xxx: Cache scratch config3 of 6352

Changes:

1. Add g2_scratch_config3 member to mv88e6xxx_chip.

2. Add mv88e6352_g2_cache_global_scratch_config3  which reads the
CONFIG3 value from the scratch register and caches it.

3. Call this function in mv88e6352_reset.

Co-developed-by: Thomas Eckerman <thomas.eckerman.ext@ericsson.com>
Signed-off-by: Thomas Eckerman <thomas.eckerman.ext@ericsson.com>
Signed-off-by: Fidan Aliyeva <fidan.aliyeva.ext@ericsson.com>
Link: https://patch.msgid.link/20260521202924.727929-3-fidan.aliyeva.ext@ericsson.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h
drivers/net/dsa/mv88e6xxx/global2.h
drivers/net/dsa/mv88e6xxx/global2_scratch.c