diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-09-11 17:50:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-12 10:47:31 +0100 |
commit | ce062a0adbfe933b1932235fdfd874c4c91d1bb0 (patch) | |
tree | 53da0870879d3b14fa9ca03c45f5069dea1b4cbd /tools | |
parent | 08dad2f4d541fcfe5e7bfda72cc6314bbfd2802f (diff) | |
download | linux-ce062a0adbfe933b1932235fdfd874c4c91d1bb0.tar.bz2 |
net: dsa: qca8k: fix kernel panic with legacy mdio mapping
When the mdio legacy mapping is used the mii_bus priv registered by DSA
refer to the dsa switch struct instead of the qca8k_priv struct and
causes a kernel panic. Create dedicated function when the internal
dedicated mdio driver is used to properly handle the 2 different
implementation.
Fixes: 759bafb8a322 ("net: dsa: qca8k: add support for internal phy and internal mdio")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions