net: dsa: mediatek: add adjust link support for user ports
authorJohn Crispin <john@phrozen.org>
Mon, 7 Aug 2017 14:20:49 +0000 (16:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
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 <shashidhar.lakkavalli@openmesh.com>
Signed-off-by: Muciri Gatimu <muciri@openmesh.com>
Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mt7530.c
drivers/net/dsa/mt7530.h