Commit b2ae7505 authored by lramos.prof@yahoo.com.br's avatar lramos.prof@yahoo.com.br Committed by David S. Miller

ide: Fix interface autodetection in legacy IDE driver (trial #2)

This humble patch was sent one or two months before, and had no actions,
except for a colleague reply which friendly pointed out some formatting
problems (which were solved in a second message).

It relates to an old code, the legacy IDE driver, but the bug it
addresses is real. The code, although rarely used, is
still there to be compiled if one chooses to do so (like me).

Also, the fix has a very low risk of present collateral effects IMHO.
It is already compiled and tested in some embedded machines.

So, again IMHO, it is worth be fixed.

This email is a second trial with it. I hope it can help the one or two
guys out there which are still running the legacy IDE driver and
haven't noticed the former email.

Fixes: 20df429d ("ide-generic: handle probing of legacy io-ports v5")
Signed-off-by: default avatarLuiz Carlos Ramos <lramos.prof@yahoo.com.br>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7ce7d89f
...@@ -96,10 +96,10 @@ static int __init ide_generic_init(void) ...@@ -96,10 +96,10 @@ static int __init ide_generic_init(void)
printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" " printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" "
"module parameter for probing all legacy ISA IDE ports\n"); "module parameter for probing all legacy ISA IDE ports\n");
if (primary == 0) if (primary)
probe_mask |= 0x1; probe_mask |= 0x1;
if (secondary == 0) if (secondary)
probe_mask |= 0x2; probe_mask |= 0x2;
} else } else
printk(KERN_INFO DRV_NAME ": enforcing probing of I/O ports " printk(KERN_INFO DRV_NAME ": enforcing probing of I/O ports "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment