[ewg] RE: [ofa-general] [PATCH 3/5] nes: fix link reset for certainphy types

Glenn Grundstrom ggrundstrom at NetEffect.com
Fri Nov 30 11:49:13 PST 2007


> >+
> >+	while (((nes_read32(nesdev->regs+NES_SOFTWARE_RESET)
> >+			& 0x00000040) != 0x00000040) && (i++ < 5000)) {
> >+	}
> 
> Is there a better way to wait for the read?

Typically, the reset is pretty quick and is complete within
a few loops.  The i++ counter is there to prevent a driver
hang in case the reset fails for some reason.

Thanks,
Glenn.

> 
> - Sean
> _______________________________________________
> ewg mailing list
> ewg at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ewg
> 



More information about the general mailing list