]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit099e6b07e9f54262a62e06afa94a00129a17c26d
tree9881f43229f1a00d3359d1d62fc103e59a7ad53e
parenteebd9462c33fcabef84362695599b589b4acdd83
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