]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: Add define for port VID
authorJonathan McDowell <noodles@earth.li>
Sat, 1 Aug 2020 17:05:54 +0000 (18:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:45:39 +0000 (15:45 -0700)
commit8ec19ca4ce64f26db4f415156251a42670ac2748
tree6bb6bbd78e2e7d32562adb38ba1aecf3f117334f
parentdf307ab6816b35b1c011f4ae136da08b963ce08c
net: dsa: qca8k: Add define for port VID

Rather than using a magic value of 1 when configuring the port VIDs add
a QCA8K_PORT_VID_DEF define and use that instead. Also fix up the
bitmask in the process; the top 4 bits are reserved so this wasn't a
problem, but only masking 12 bits is the correct approach.

Signed-off-by: Jonathan McDowell <noodles@earth.li>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h