init_registers() reinitialized the rx and tx ring pointers as seen by
the nic. You called it without init_ring(), i.e. the ring pointers as
seen by the driver didn't match the values used by the nic. It probably
only worked by chance. And changing the ring pointers while the nic is
in the middle of a data transfers just asks for trouble.
I agree that natsemi_stop_rxtx() instead of reset would be enough.
> > /* enable the WOL interrupt.
> > * Could be used to send a netlink message.
> > */
> > - writel(readl(ioaddr + IntrMask) | WOLPkt, ioaddr + IntrMask);
> > + writel(WOLPkt, ioaddr + IntrMask);
> > + writel(1, ioaddr + IntrEnable);
>
> is this intended to blow away the other bits in IntrMask? Keep in mind
> that Wake-On-Phy requires the PHY interrupt enabled, but I don't know if it
> needs it on in intrmask or just in the Phy intr reg.
>
Yes, they are always 0. Actually the code is (and was) never executed.
Everyone calls enable_wol_mode(,0).
-- Manfred- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/