On Mon, Dec 03, 2018 at 03:34:52PM -0800, tristram...@microchip.com wrote: > From: Tristram Ha <tristram...@microchip.com> > > Prepare PHY for proper advertisement and get link status for the port. > > Signed-off-by: Tristram Ha <tristram...@microchip.com> > Reviewed-by: Woojung Huh <woojung....@microchip.com> > --- > drivers/net/dsa/microchip/ksz9477.c | 12 ++++++++++++ > drivers/net/dsa/microchip/ksz_common.c | 17 +++++++++++++++++ > drivers/net/dsa/microchip/ksz_common.h | 2 ++ > drivers/net/dsa/microchip/ksz_priv.h | 2 ++ > 4 files changed, 33 insertions(+) > > diff --git a/drivers/net/dsa/microchip/ksz9477.c > b/drivers/net/dsa/microchip/ksz9477.c > index 0684657..98aa25e 100644 > --- a/drivers/net/dsa/microchip/ksz9477.c > +++ b/drivers/net/dsa/microchip/ksz9477.c > @@ -969,6 +969,16 @@ static void ksz9477_port_mirror_del(struct dsa_switch > *ds, int port, > PORT_MIRROR_SNIFFER, false); > } > > +static void ksz9477_phy_setup(struct ksz_device *dev, int port, > + struct phy_device *phy) > +{ > + if (port < dev->phy_port_cnt) { > + /* SUPPORTED_Asym_Pause and SUPPORTED_Pause can be removed to > + * disable flow control when rate limiting is used. > + */ > + }
Hi Tristram Is this meant to be a TODO comment? What is supposed to happen here is that all forms of pause are disable by default. The MAC driver needs to enable what it supports by calling phy_support_sym_pause() or phy_support_asym_pause(). Ah, is this because there is not a real PHY driver? Thanks Andrew