• Ansuel Smith's avatar
    net: dsa: qca8k: add support for cpu port 6 · 3fcf734a
    Ansuel Smith authored
    Currently CPU port is always hardcoded to port 0. This switch have 2 CPU
    ports. The original intention of this driver seems to be use the
    mac06_exchange bit to swap MAC0 with MAC6 in the strange configuration
    where device have connected only the CPU port 6. To skip the
    introduction of a new binding, rework the driver to address the
    secondary CPU port as primary and drop any reference of hardcoded port.
    With configuration of mac06 exchange, just skip the definition of port0
    and define the CPU port as a secondary. The driver will autoconfigure
    the switch to use that as the primary CPU port.
    Signed-off-by: default avatarAnsuel Smith <ansuelsmth@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3fcf734a
qca8k.c 50 KB