cf7352672f87fb395c4d509c93bc98ecb046acc3
[openembedded.git] / recipes / linux / unslung-kernel / flash-is-now-hdd.patch
1 --- linux-2.4.22/drivers/scsi/sd.c~     2005-12-13 06:04:08.000000000 +1030
2 +++ linux-2.4.22/drivers/scsi/sd.c      2005-12-13 10:08:13.912932696 +1030
3 @@ -1087,6 +1087,7 @@
4                         rscsi_disks[i].capacity >>= 1;
5         }
6                          // add by super, moified by pete
7 +#if 0
8          if (rscsi_disks[i].device->removable){
9                  if(0x32 == rscsi_disks[i].device->host->hostt->port){
10                                 printk("is removable disk \n");
11 @@ -1113,6 +1114,7 @@
12                                 );
13                 }
14          }else {
15 +#endif
16                  printk("%x port connect!!!!!\n",rscsi_disks[i].device->host->hostt->port);
17                  if(0x32 == rscsi_disks[i].device->host->hostt->port){
18                          *IXP425_GPIO_GPOUTR &= 0xfffb;
19 @@ -1133,7 +1135,9 @@
20                                          NULL
21                          );
22                  }
23 +#if 0
24          }
25 +#endif
26                  //end
27  
28  
29 @@ -1682,22 +1686,28 @@
30                                                         port2_attached = 0;
31                          if(port2_attached == 0)
32                                                         *IXP425_GPIO_GPOUTR |= 0x8;
33 +#if 0
34                                                 if(SDp->removable == 1){
35                                 sprintf(flash, "flash_sd%c", 'a' + i);
36                                 remove_proc_entry(flash, NULL);
37                                 remove_proc_entry(media, NULL);
38                                                 }else{
39 +#endif
40                                                         sprintf(hdd, "hdd_sd%c", 'a' + i);
41                                                         remove_proc_entry(hdd,NULL);
42                                                         remove_proc_entry(media, NULL);
43 +#if 0
44                                                 }                
45 +#endif
46                          break;
47                  case 0x32:
48                          *IXP425_GPIO_GPOUTR |= 0x4;
49 +#if 0
50                                                 if(SDp->removable == 1){
51                                                         remove_proc_entry("flash_sda",NULL);
52                                                 }
53                                                 else
54 +#endif
55                                 remove_proc_entry("hdd_sda",NULL);
56                          break;
57                  default: