Re: [PATCH] usbnet: smsc95xx: allow to down ethernet link

From: Maxim Uvarov
Date: Fri Jan 04 2019 - 16:24:00 EST


ÑÑ, 3 ÑÐÐ. 2019 Ð. Ð 16:19, <RaghuramChary.Jallipalli@xxxxxxxxxxxxx>:
>
> > allow ifconfig ethX to down ethernet link. Ethernet part of chip is switched to
> > power down more and on ifconfig up driver does soft reset and restores it's
> > state.
> >
> Thanks for the patch.
> If I understand the issue correctly, the ethernet link is not going down in power down mode? Pls clarify.

Issue was that if you down interface with ifconfig eth dow, then
ethtool showed that interface is down. But actually pairing ethernet
link is still up.
Later if ifconfig eth up is called then soft reset is called and
pairing ethernet link when down and up. So to down ethernet link I
just followed spec
a) disable autoneg b) enable powerdown bit.

> Does these changes be applied to smsc75xx driver as well??
>
Might be if they have the same sequence for powerdown ethernet part.

Best regards,
Max.


> Thanks,
> -Raghu
>
>