Re: [PATCH] 3c59x: read current link status from phy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sep 8, 2005, at 10:42, Bogdan Costescu wrote:

On Thu, 8 Sep 2005, Tommy Christensen wrote:

Personally, I'd prefer the delay to be < 10 seconds.


If you sample every 60 seconds ? Teach Shannon how to do it ;-)

If you mean to reduce the sampling period, there is a very good reason not to do it: these MDIO operations are expensive - it's a serial protocol. vortex_timer() might do 2 (and with the discussed change - 3) of them - there are better things to do for the CPU than wait for these I/O operations. Plus, vortex_timer() also disables the interrupt...

The Tornado and at least some Cyclone chips support generating an interrupt whenever the link changes, which can be used instead of polling for link state. This feature is not used in the 3c59x driver and could give you much less than 10 seconds accuracy - but you have to code it. ;-)


The new PHY Layer (drivers/net/phy/*) can provide all these features for you without much difficulty, I suspect. The layer supports handling the interrupts for you, or (if it's shared with your controller's interrupt) provides simple hooks to make supporting interrupts easy.

Is the cost of an extra read every minute really too high? It's such a small fraction of the CPU time, and provides a better user experience.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux