This stabilizes the RTL8366 driver by checking validity of the passed VLANs and refactoring the member config (MC) code so we do not require strict call order and de-duplicate some code.
Changes from v1: incorporate review comments on patch 2. Changes from v2: a oneline bug fix in patch 2. Linus Walleij (2): net: dsa: rtl8366: Check validity of passed VLANs net: dsa: rtl8366: Refactor VLAN/PVID init drivers/net/dsa/realtek-smi-core.h | 4 +- drivers/net/dsa/rtl8366.c | 277 +++++++++++++++-------------- 2 files changed, 151 insertions(+), 130 deletions(-) -- 2.26.2