patch-2.2.4 linux/include/asm-sparc/floppy.h

Next file: linux/include/asm-sparc/init.h
Previous file: linux/include/asm-sparc/ethtool.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/include/asm-sparc/floppy.h linux/include/asm-sparc/floppy.h
@@ -99,6 +99,7 @@
 /* Routines unique to each controller type on a Sun. */
 static unsigned char sun_82072_fd_inb(int port)
 {
+	udelay(5);
 	switch(port & 7) {
 	default:
 		printk("floppy: Asked to read unknown port %d\n", port);
@@ -115,6 +116,7 @@
 
 static void sun_82072_fd_outb(unsigned char value, int port)
 {
+	udelay(5);
 	switch(port & 7) {
 	default:
 		printk("floppy: Asked to write to unknown port %d\n", port);
@@ -150,6 +152,7 @@
 
 static unsigned char sun_82077_fd_inb(int port)
 {
+	udelay(5);
 	switch(port & 7) {
 	default:
 		printk("floppy: Asked to read unknown port %d\n", port);
@@ -167,6 +170,7 @@
 
 static void sun_82077_fd_outb(unsigned char value, int port)
 {
+	udelay(5);
 	switch(port & 7) {
 	default:
 		printk("floppy: Asked to write to unknown port %d\n", port);
@@ -337,6 +341,7 @@
 	}
 
 	/* Success... */
+	allowed_drive_mask = 0x01;
 	return (int) sun_fdc;
 
 no_sun_fdc:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)