[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87poan1w2q.fsf@weeman.i-did-not-set--mail-host-address--so-tickle-me>
Date: Mon, 18 Sep 2017 18:27:41 -0400
From: Vivien Didelot <vivien.didelot@...oirfairelinux.com>
To: Florian Fainelli <f.fainelli@...il.com>, netdev@...r.kernel.org
Cc: davem@...emloft.net, andrew@...n.ch,
Florian Fainelli <f.fainelli@...il.com>
Subject: Re: [PATCH net-next 08/12] net: dsa: b53: Move EEE functions to b53
Hi Florian,
Florian Fainelli <f.fainelli@...il.com> writes:
> @@ -649,7 +595,7 @@ static void bcm_sf2_sw_adjust_link(struct dsa_switch *ds, int port,
> core_writel(priv, reg, offset);
>
> if (!phydev->is_pseudo_fixed_link)
> - p->eee_enabled = bcm_sf2_eee_init(ds, port, phydev);
> + p->eee_enabled = b53_eee_init(ds, port, phydev);
> }
I know this is a bit out-of-scope of this patch, but I have to say I am
not confortable with having still phy device stuffs in switch drivers...
Can this is_pseudo_fixed_link check + phy_eee_init + eee_enable be moved
up to dsa_slave_adjust_link in a future patch maybe?
Thanks,
Vivien
Powered by blists - more mailing lists