net: dsa: mediatek: add adjust link support for user ports
authorJohn Crispin <[email protected]>
Mon, 7 Aug 2017 14:20:49 +0000 (16:20 +0200)
committerDavid S. Miller <[email protected]>
Wed, 9 Aug 2017 01:01:25 +0000 (18:01 -0700)
commit8e6f1521ec431dbade73f57e21e5dc46eaae50ba
tree9881f43229f1a00d3359d1d62fc103e59a7ad53e
parente718fe450e616227b74d27a233cdf37b4df0c82b
net: dsa: mediatek: add adjust link support for user ports

Manually adjust the port settings of user ports once PHY polling has
completed. This patch extends the adjust_link callback to configure the
per port PMCR register, applying the proper values polled from the PHY.
Without this patch flow control was not always getting setup properly.

Signed-off-by: Shashidhar Lakkavalli <[email protected]>
Signed-off-by: Muciri Gatimu <[email protected]>
Signed-off-by: John Crispin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h