]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/unslung-kernel/ext3flash-on-disk1.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / unslung-kernel / ext3flash-on-disk1.patch
1 --- linux-2.4.22/drivers/scsi/scsi_scan.c.orig  2004-11-06 14:01:22.000000000 +1030
2 +++ linux-2.4.22/drivers/scsi/scsi_scan.c       2004-11-06 15:00:33.000000000 +1030
3 @@ -704,6 +704,7 @@
4          /* restrict device on certain port grant */
5         SDpnt->host->hostt->removable = SDpnt->removable;
6  
7 +#if 0
8          if ( SDpnt->removable && (USB_DEVPATH_1 == SDpnt->host->hostt->port) )
9          {
10                 create_proc_read_entry("usb_err",
11 @@ -718,8 +719,9 @@
12                 shpnt->porttype = 1;
13                 return 0;
14          }
15 +#endif
16                 // add by super
17 -        if (SDpnt->removable){
18 +        if (SDpnt->removable && (USB_DEVPATH_2 == SDpnt->host->hostt->port)){
19                 printk("is removable disk \n");
20                 *IXP425_GPIO_GPOUTR &= 0xfffb;
21                 create_proc_read_entry("usb_conn",
22 --- linux-2.4.22/drivers/usb/storage/usb.c.orig 2004-11-06 14:01:06.000000000 +1030
23 +++ linux-2.4.22/drivers/usb/storage/usb.c      2004-11-06 15:01:23.000000000 +1030
24 @@ -787,6 +787,7 @@
25                 ss->htmplt.removable = 1;
26         }
27  #endif
28 +#if 0
29                  /* restrict device on certain port */
30          if ( ss->htmplt.removable && (USB_DEVPATH_1 ==  dev->devpath[0]))
31                  if ( ss->htmplt.removable ^ (USB_DEVPATH_2 == dev->devpath[0]) )
32 @@ -803,7 +804,8 @@
33                         free_us_data( pre_ss, ss );
34                         return NULL;
35                  }
36 -                if (ss->htmplt.removable){
37 +#endif
38 +                if (ss->htmplt.removable && (USB_DEVPATH_2 == dev->devpath[0])){
39                         printk("is removable disk \n");
40                         *IXP425_GPIO_GPOUTR &= 0xfffb;
41                         create_proc_read_entry("usb_conn",