diff options
author | Linus Walleij <[email protected]> | 2020-09-02 00:09:35 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-09-02 14:13:35 -0700 |
commit | 7e1301ed1881447d2a25f9c6423738c33cbca133 (patch) | |
tree | aa0ae8fe12420b66378109668c5209aed3432210 /include/linux/fpga/fpga-mgr.h | |
parent | 6641a2c42b0a307b7638d10e5d4b90debc61389d (diff) |
net: dsa: rtl8366: Refactor VLAN/PVID init
The VLANs and PVIDs on the RTL8366 utilizes a "member
configuration" (MC) which is largely unexplained in the
code.
This set-up requires a special ordering: rtl8366_set_pvid()
must be called first, followed by rtl8366_set_vlan(),
else the MC will not be properly allocated. Relax this
by factoring out the code obtaining an MC and reuse
the helper in both rtl8366_set_pvid() and
rtl8366_set_vlan() so we remove this strict ordering
requirement.
In the process, add some better comments and debug prints
so people who read the code understand what is going on.
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions