]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: rtl8366rb: Support port 4 (WAN)
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 8 Aug 2018 12:38:55 +0000 (14:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 21:15:00 +0000 (14:15 -0700)
commit800f6650476db40b9958e3d0cd21bec6888b3605
tree426941763388190203f66173988ab92056d35f8e
parent6c98aeb8867bb09e6b6a23a2f11b37439623f76c
net: dsa: rtl8366rb: Support port 4 (WAN)

The totally undocumented IO mode needs to be set to enumerator
0 to enable port 4 also known as WAN in most configurations,
for ordinary traffic. The 3 bits in the register come up as
010 after reset, but need to be set to 000.

The Realtek source code contains a name for these bits, but
no explanation of what the 8 different IO modes may be.

Set it to zero for the time being and drop a comment so
people know what is going on if they run into trouble. This
"mode zero" works fine with the D-Link DIR-685 with
RTL8366RB.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/rtl8366rb.c