[patch] Disable parport autoprobing on !X86
Randolph Chung <[email protected]> Thu, 14 Jun 2007 22:36:00 +0800
| Newsgroups | gmane.linux.ports.hppa,gmane.linux.parport |
|---|---|
| Message-ID | <[email protected]> |
The attached patch disables auto-probing on non-X86 platforms. On many other platforms, autoprobing causes a machine check. Thanks to Julian Stecklina for reporting and helping to debug the problem. thoughts/comments? randolph _______________________________________________ parisc-linux mailing list [email protected] http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
pp.diff
(text/plain, 709 B)
Disable autoprobing on non-x86 archs because it may cause machine checks. Signed-off-by: Randolph Chung <[email protected]> diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index b61c17b..117f273 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c @@ -3381,6 +3381,8 @@ static int __init parport_pc_init(void) if (parse_parport_params()) return -EINVAL; + /* Most architectures do not allow auto-probing */ +#ifdef CONFIG_X86 if (io[0]) { int i; /* Only probe the ports we were given. */ @@ -3395,6 +3397,7 @@ static int __init parport_pc_init(void) } } else parport_pc_find_ports (irqval[0], dmaval[0]); +#endif return 0; }