summaryrefslogtreecommitdiff
path: root/linux/nslu2-unslung-kernel-2.3r25/unslung-kernel-vfatdisk2.patch
blob: d424daf26a5edb09ad7fcde2e300469e6745373b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- linux-2.4.22/drivers/scsi/scsi_scan.c.orig	2004-09-23 22:26:35.000000000 +0930
+++ linux-2.4.22/drivers/scsi/scsi_scan.c	2004-09-23 22:43:16.000000000 +0930
@@ -657,7 +657,7 @@
         SDpnt->removable = (0x80 & scsi_result[1]) >> 7;
         
         
-#if 1 
+#if 0
 	if (!SDpnt->removable)
        {
 		unsigned int the_result;
@@ -704,6 +704,7 @@
         /* restrict device on certain port grant */
 	SDpnt->host->hostt->removable = SDpnt->removable;
 
+#if 0
         if ( SDpnt->removable && (USB_DEVPATH_1 == SDpnt->host->hostt->port) )
         {
 		create_proc_read_entry("usb_err",
@@ -729,6 +730,7 @@
 				NULL
 			);
 	}else {
+#endif
 		printk("%x port connect!!!!!\n",SDpnt->host->hostt->port);
 		if(0x31 == SDpnt->host->hostt->port){
 			*IXP425_GPIO_GPOUTR &= 0xfff7;
@@ -740,14 +742,16 @@
 			);
 		}else{
 			*IXP425_GPIO_GPOUTR &= 0xfffb;
-			create_proc_read_entry("hd2_conn",
+			create_proc_read_entry("usb_conn",
 					0,
 					NULL,
 					NULL,
 					NULL
 			);
 		}
+#if 0
 	}
+#endif
 		//end
 	/*
 	 * Check the peripheral qualifier field - this tells us whether LUNS