mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
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>
This commit is contained in:
parent
ab39385021
commit
e5e5b771f6
2 changed files with 3 additions and 0 deletions
|
@ -1117,6 +1117,8 @@ static int stmmac_phy_setup(struct stmmac_priv *priv)
|
||||||
priv->phylink_config.dev = &priv->dev->dev;
|
priv->phylink_config.dev = &priv->dev->dev;
|
||||||
priv->phylink_config.type = PHYLINK_NETDEV;
|
priv->phylink_config.type = PHYLINK_NETDEV;
|
||||||
priv->phylink_config.pcs_poll = true;
|
priv->phylink_config.pcs_poll = true;
|
||||||
|
priv->phylink_config.ovr_an_inband =
|
||||||
|
priv->plat->mdio_bus_data->xpcs_an_inband;
|
||||||
|
|
||||||
if (!fwnode)
|
if (!fwnode)
|
||||||
fwnode = dev_fwnode(priv->device);
|
fwnode = dev_fwnode(priv->device);
|
||||||
|
|
|
@ -81,6 +81,7 @@
|
||||||
struct stmmac_mdio_bus_data {
|
struct stmmac_mdio_bus_data {
|
||||||
unsigned int phy_mask;
|
unsigned int phy_mask;
|
||||||
unsigned int has_xpcs;
|
unsigned int has_xpcs;
|
||||||
|
unsigned int xpcs_an_inband;
|
||||||
int *irqs;
|
int *irqs;
|
||||||
int probed_phy_irq;
|
int probed_phy_irq;
|
||||||
bool needs_reset;
|
bool needs_reset;
|
||||||
|
|
Loading…
Reference in a new issue