lkml.org 
[lkml]   [2005]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] 3c59x: read current link status from phy
Date

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 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/

\
 
 \ /
  Last update: 2005-09-08 20:59    [W:0.104 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site