Re: 2.3.31: parport_lowlevel

Tim Waugh (twaugh@redhat.com)
Sun, 12 Dec 1999 13:11:35 -0500 (EST)


On Sun, 12 Dec 1999, Hans-Joachim Baader wrote:

> in 2.2 the parport module automatically looked for parport_lowlevel
> which could be defined in conf.modules as parport_pc, eg. In 2.3.31
> this seems to be no longer the case, you have to load the partport_pc
> manually. Is this a bug or a feature?

It's a bit of both. The parport_lowlevel alias shouldn't really be used
any more, and instead the following line in modules.conf ought to take its
place:

post-install parport /sbin/modprobe -k parport_pc

(adjust for your architecture). In 2.4, though, the intention is that the
alias will still work but will trigger a warning message.

Something like this patch should probably be applied (it's untested):

--- linux/drivers/parport/share.c~ Sun Dec 12 18:05:58 1999
+++ linux/drivers/parport/share.c Sun Dec 12 18:05:59 1999
@@ -107,6 +107,13 @@
for (port = portlist; port; port = port->next)
drv->attach (port);

+ /* For compatibility with 2.2, check the (obsolete) parport_lowlevel
+ * alias in case some people haven't changed to post-install rules
+ * yet. parport_enumerate (itself deprecated) will printk a
+ * friendly reminder. */
+ if (!portlist)
+ parport_enumerate ();
+
return 0;
}

Tim.
*/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/