diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-03-18 09:01:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-18 14:44:05 -0700 |
commit | 55cfeb396965c3906a84d09a9c487d065e37773b (patch) | |
tree | e72318dec817413f9e0b9b55df20dc8597018c5f /Documentation/hwmon/adt7462.rst | |
parent | a5538a777b73b35750ed1ffff8c1ef539e861624 (diff) |
net: dsa: bcm_sf2: add function finding RGMII register
Simple macro like REG_RGMII_CNTRL_P() is insufficient as:
1. It doesn't validate port argument
2. It doesn't support chipsets with non-lineral RGMII regs layout
Missing port validation could result in getting register offset from out
of array. Random memory -> random offset -> random reads/writes. It
affected e.g. BCM4908 for REG_RGMII_CNTRL_P(7).
Fixes: a78e86ed586d ("net: dsa: bcm_sf2: Prepare for different register layouts")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/hwmon/adt7462.rst')
0 files changed, 0 insertions, 0 deletions