On Thursday 07 February 2008, Claudio Lanconelli wrote: > Sorry, > let me repeat what I said in previous mail. > I propose you to add set_lowpower(true) in the enc28j60_probe()
As the current patch does... > and in the enc28j60_net_close() after enc28j60_hw_disable(). > Probably we don't need to set_lowpower(false) in enc28j60_net_open() since > it performs a soft reset with enc28j60_hw_init() (not sure). The current patch sets the device in low power mode in hw_disable(), and takes it out of that mode in hw_enable(). I can move them; and the only "soft" thing about this chip's reset is when it starts from a protocol command not the reset command. > Furthermore, as you suggested, we also need to remove hw_init() from the > setlink() > because hw_init() is called when we bring link up. > > --- enc28j60.c 20 Dec 2007 10:47:01 -0000 1.22 > +++ enc28j60.c 7 Feb 2008 11:07:20 -0000 > @@ -740,12 +740,6 @@ > if (!priv->hw_enable) { > if (autoneg == AUTONEG_DISABLE && speed == SPEED_10) { > priv->full_duplex = (duplex == DUPLEX_FULL); > - if (!enc28j60_hw_init(priv)) { > - if (netif_msg_drv(priv)) > - dev_err(&ndev->dev, > - "hw_reset() failed\n"); > - ret = -EINVAL; > - } Right. Without the patch mangling presumably done by your mailer. ;) > } else { > if (netif_msg_link(priv)) > dev_warn(&ndev->dev, > > Can you update your low power patch with these modifications? > Done -- see my next patch. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html