Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef0cc4b1 authored by Johannes Berg's avatar Johannes Berg Committed by David S. Miller
Browse files

alx: treat flow control correctly in alx_set_pauseparam()



Even when alx_setup_speed_duplex() is called, we still
need to call alx_cfg_mac_flowcontrol() and set hw->flowctrl
if flow control changed.

This was a bug I accidentally introduced while simplifying
the original driver.

Reported-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a6eac24
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -187,6 +187,7 @@ static int alx_set_pauseparam(struct net_device *netdev,

	if (reconfig_phy) {
		err = alx_setup_speed_duplex(hw, hw->adv_cfg, fc);
		if (err)
			return err;
	}