OSDN Git Service

net: stmmac: make in-band AN mode parsing is supported for non-DT
authorOng Boon Leong <boon.leong.ong@intel.com>
Mon, 15 Mar 2021 05:27:09 +0000 (13:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Mar 2021 19:53:12 +0000 (12:53 -0700)
commite5e5b771f684c22b25c67df85d2deb43901f7b95
tree4f7465052e933b99aa627b92c7e65d90e881ea06
parentab39385021d1e0b4cd6cc521dc35c2fe659bbddf
net: stmmac: make in-band AN mode parsing is supported for non-DT

Not all platform uses DT, so phylink_parse_mode() will skip in-band setup
of pl->supported and pl->link_config.advertising entirely. So, we add the
setting of ovr_an_inband flag to make it works for non-DT platform.

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
include/linux/stmmac.h