aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlramos.prof@yahoo.com.br <lramos.prof@yahoo.com.br>2016-10-11 21:12:45 -0400
committerDavid S. Miller <davem@davemloft.net>2016-12-26 11:45:12 -0500
commitb2ae75052a8c1611b2030fa49ba1c6b6439fa04f (patch)
treef43b13c19366ad780fe96e843dfedb32d13c7980
parent7ce7d89f48834cefece7804d38fc5d85382edf77 (diff)
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: 20df429dd667 ("ide-generic: handle probing of legacy io-ports v5") Signed-off-by: Luiz Carlos Ramos <lramos.prof@yahoo.com.br> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/ide/ide-generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-generic.c b/drivers/ide/ide-generic.c
index 54d7c4685d23..419818a39c27 100644
--- a/drivers/ide/ide-generic.c
+++ b/drivers/ide/ide-generic.c
@@ -96,10 +96,10 @@ static int __init ide_generic_init(void)
96 printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" " 96 printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" "
97 "module parameter for probing all legacy ISA IDE ports\n"); 97 "module parameter for probing all legacy ISA IDE ports\n");
98 98
99 if (primary == 0) 99 if (primary)
100 probe_mask |= 0x1; 100 probe_mask |= 0x1;
101 101
102 if (secondary == 0) 102 if (secondary)
103 probe_mask |= 0x2; 103 probe_mask |= 0x2;
104 } else 104 } else
105 printk(KERN_INFO DRV_NAME ": enforcing probing of I/O ports " 105 printk(KERN_INFO DRV_NAME ": enforcing probing of I/O ports "