net: dsa: qca8k: pass switch_revision info to phy dev_flags
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 21:00:13 +0000 (23:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:23 +0000 (15:30 -0700)
commita46aec02bc06ac2c33f326339e4ef88c735dc30d
treee0db0501d1cfdaa7fb2a90f495d0601a1c220cac
parentb7ebac354d54f1657bb89b7a7ca149db50203e6a
net: dsa: qca8k: pass switch_revision info to phy dev_flags

Define get_phy_flags to pass switch_Revision needed to tweak the
internal PHY with debug values based on the revision.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c