[parisc-linux-cvs] Fix parport for older boxes

Richard Hirst rhirst@linuxcare.com
Fri, 16 Feb 2001 08:54:29 +0000


This stops the kernel HPMC-ing on my 715/75.  Disables bidirectional mode for
these older boxes.

Richard


@@ -482,7 +482,7 @@
        /* 
            some older machines with ASP-chip don't support the enhanced parport modes 
        */
-       if (!pdc_add_valid( (void *)(port+4))) {
+       if (boot_cpu_data.cpu_type > pcxt && !pdc_add_valid( (void *)(port+4))) {
            /* Initialize bidirectional-mode (0x10) & data-tranfer-mode #1 (0x20) */
            printk("%s: initialize bidirectional-mode.\n", __FUNCTION__);
            parport_writeb ( (0x10 + 0x20), port + 4);