Re: why this 1ms delay in mdio_read? (cont'd from "are ioctl calls supposed to take this long?")

2001-07-06 Thread Chris Friesen
"Richard B. Johnson" wrote: > > On Fri, 6 Jul 2001, Chris Friesen wrote: > > mdelay(1); /* One ms delay... */ > > > > ...rest of code... > > > > What? What kernel version? > The code here says: > /* Establish sync by sending at least 32 logic ones */ > for (i = 32; i >=0;

Re: why this 1ms delay in mdio_read? (cont'd from "are ioctl calls supposed to take this long?")

2001-07-06 Thread Richard B. Johnson
On Fri, 6 Jul 2001, Chris Friesen wrote: > The beginning of mdio_read() in tulip.c goes like this: > > static int mdio_read(struct device *dev, int phy_id, int location) > { > struct tulip_private *tp = (struct tulip_private *)dev->priv; > int i; > int read_cmd = (0xf6 << 10) |

why this 1ms delay in mdio_read? (cont'd from "are ioctl calls supposed to take this long?")

2001-07-06 Thread Chris Friesen
The beginning of mdio_read() in tulip.c goes like this: static int mdio_read(struct device *dev, int phy_id, int location) { struct tulip_private *tp = (struct tulip_private *)dev->priv; int i; int read_cmd = (0xf6 << 10) | (phy_id << 5) | location; int retval = 0;