]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: expose static config as devlink region
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 25 Sep 2020 23:04:20 +0000 (02:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 23:35:27 +0000 (16:35 -0700)
commit78902577fbffc8db8f4a842c58e029ca6e4868c8
treebd0d0cce36bfd8b3d472425316c9110a4eaa1765
parent7e0f84434f45c277f530523a64db9010e40d61e8
net: dsa: sja1105: expose static config as devlink region

As explained in Documentation/networking/dsa/sja1105.rst, this switch
has a static config held in the driver's memory and re-uploaded from
time to time into the device (after any major change).

The format of this static config is in fact described in UM10944.pdf and
it contains all the switch's settings (it also contains device ID, table
CRCs, etc, just like in the manual). So it is a useful and universal
devlink region to expose to user space, for debugging purposes.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_devlink.c
drivers/net/dsa/sja1105/sja1105_spi.c