PATCH: specialix fix from 2.4 missing in 2.5

PATCH: specialix fix from 2.4 missing in 2.5

Post by Alan Co » Sun, 16 Feb 2003 21:30:18



diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.61/drivers/char/sx.c linux-2.5.61-ac1/drivers/char/sx.c
--- linux-2.5.61/drivers/char/sx.c      2003-02-15 03:39:30.000000000 +0000

                        return 0;
        }

+       /* Now we're pretty much convinced that there is an SI board here,
+          but to prevent trouble, we'd better double check that we don't
+          have an SI1 board when we're probing for an SI2 board.... */
+
+       write_sx_byte (board, SI2_ISA_ID_BASE,0x10);
+       if ( IS_SI1_BOARD(board)) {
+               /* This should be an SI1 board, which has this
+                  location writable... */
+               if (read_sx_byte (board, SI2_ISA_ID_BASE) != 0x10)
+                       return 0;
+       } else {
+               /* This should be an SI2 board, which has the bottom
+                  3 bits non-writable... */
+               if (read_sx_byte (board, SI2_ISA_ID_BASE) == 0x10)
+                       return 0;
+       }
+
        printheader ();

        printk (KERN_DEBUG "sx: Found an SI board at %lx\n", board->hw_base);

--
Dim rhyfel mewn ein enw ni
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. 2.4: Minor build fix for ext3 (2.4 and 2.5)


If you have ext2_fs.h and ext3_fs.h included at the same time,
we are missing one define used in ext3_should_journal_data() and
ext3_should_order_data() as part of the test_opt() macro (which
defaults to the ext2 definition if both are present).

--- linux-2.4-ext3push/include/linux/ext3_fs.h.=K0006=.orig     2003-03-25 10:59:15.000000000 +0000

 #else
 #define EXT2_MOUNT_NOLOAD              EXT3_MOUNT_NOLOAD
 #define EXT2_MOUNT_ABORT               EXT3_MOUNT_ABORT
+#define EXT2_MOUNT_DATA_FLAGS          EXT3_MOUNT_DATA_FLAGS
 #endif

 #define ext3_set_bit                   ext2_set_bit
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Solaris Systems Administration Position Opened

3. Fix incorrect enablebits for all AMD IDE chips, 2.4 and 2.5

4. recommendations for cheap ISA SCSI/IDE

5. 2.4 and 2.5: fix /proc/kcore

6. backwards port of abmerge?

7. lowlatency fixes needed in 2.4 and 2.5

8. xlock as screensaver in Solaris2.5.1

9. 2.5 and 2.4: fix PCI IO BAR flags

10. FIX: pc_keyb.c in >2.2.17 2.4.x 2.5.x

11. 2.4,2.5: fix pci compile without procfs support

12. [2.4/2.5] Fix ns83820 ioctl oops

13. Any compare of Solaris 2.4-> Solaris 2.5 bugs fixed/introduced??