Linus Torvalds 6cbf0c704d iomap: make the default iomap functions fail softer
We used to BUG_ON() for a badly mapped IO port, which is certainly
correct, but actually made it harder to debug the case where the ATA
drivers had incorrectly mapped a nonconnected ATA port.

So make badly mapped ports trigger a WARN_ON(), and throw the IO away
instead (and return all ones for reads).  For things like broken driver
initialization - which is the most likely cause anyway - that should
mean that the machine comes up and is usable (at least that was the case
for the ATA breakage that triggered this patch).

It tends to be a whole lot easier to do a "dmesg" on a working machine
than to try to capture logs off a dead one.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-04 20:44:23 -07:00
..
2006-12-08 08:28:39 -08:00
2007-04-25 22:28:53 -07:00
2007-02-20 17:10:15 -08:00
2006-12-13 09:05:52 -08:00
2006-10-06 08:53:40 -07:00
2007-02-11 11:18:07 -08:00
2007-04-25 22:23:33 -07:00
2006-12-04 02:00:22 -05:00
2007-02-17 19:07:33 +01:00
2007-04-30 16:40:40 -07:00