[lkml]   [2003]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: PATCH: clean up the IDE iops, add ones for a dead iface

On 19 Feb 2003, Benjamin Herrenschmidt wrote:
> Hrm... I tend to agree with Russell here... 0x7f is the "safe" value
> for IDE. IDE controllers with nothing wired shall have a pull down
> on D7. The reason is simple: busy loops in the IDE code waiting for
> BSY to go down.

But that's a BUG.

We've seen that before: try unplugging a PCMCIA IDE card unexpectedly.

Guess what? It will start returning 0xff. And the machine dies, because
the PCMCIA interrupt happened due to the removal event will also be shared
by the IDE driver, so the IDE driver will react badly even before anybody
has had a chance to tell it that the hardware no longer exists.

So if you have code that doesn't work with 0xff, then that code is already
a-priori buggy. And getting it fixed would be a damn good idea.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:33    [W:0.074 / U:2.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site