Thread (4 messages) 4 messages, 3 authors, 2017-12-08

Re: [PATCH v2] net: sh_eth: do not advertise Gigabit capabilities when not available

flat view

From: Thomas Petazzoni <hidden>
Date: 2017-12-08 15:36:34
Also in: linux-renesas-soc

Hello,

On Tue, 5 Dec 2017 22:02:20 +0300, Sergei Shtylyov wrote:
quoted
+	/* mask with MAC supported features */
+	if (mdp->cd->register_type != SH_ETH_REG_GIGABIT) {
+		err = phy_set_max_speed(phydev, SPEED_100);
+		if (err) {
+			netdev_err(ndev, "failed to limit PHY to 100 Mbit/s\n");
+			goto err_phy_disconnect;  
    Er, why do we need a *goto* here at all? Just call phy_disconnect() here 
and be done with that...
Thanks for the feedback, I've sent a v3 that takes into account this
comment.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help