diff options
-rw-r--r-- | firmware/usbstack/usb_storage.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index 746e275655..9fae7fc354 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c | |||
@@ -821,8 +821,10 @@ static void identify2inquiry(int lun) | |||
821 | (void)lun; | 821 | (void)lun; |
822 | memset(tb.inquiry, 0, sizeof(struct inquiry_data)); | 822 | memset(tb.inquiry, 0, sizeof(struct inquiry_data)); |
823 | 823 | ||
824 | #if 0 | ||
824 | if (identify[82] & 4) | 825 | if (identify[82] & 4) |
825 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; | 826 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; |
827 | #endif | ||
826 | 828 | ||
827 | /* ATA only has a 'model' field, so we copy the | 829 | /* ATA only has a 'model' field, so we copy the |
828 | first 8 bytes to 'vendor' and the rest to 'product' (they are | 830 | first 8 bytes to 'vendor' and the rest to 'product' (they are |
@@ -843,11 +845,14 @@ static void identify2inquiry(int lun) | |||
843 | tb.inquiry->Versions = 4; /* SPC-2 */ | 845 | tb.inquiry->Versions = 4; /* SPC-2 */ |
844 | tb.inquiry->Format = 2; /* SPC-2/3 inquiry format */ | 846 | tb.inquiry->Format = 2; /* SPC-2/3 inquiry format */ |
845 | 847 | ||
848 | #if 0 | ||
846 | #ifdef HAVE_HOTSWAP | 849 | #ifdef HAVE_HOTSWAP |
847 | if(lun>0) | 850 | if(lun>0) |
848 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; | 851 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; |
849 | #endif | 852 | #endif |
850 | 853 | #endif | |
854 | /* Mac OSX 10.5 doesn't like this driver if DEVICE_REMOVABLE is not set */ | ||
855 | tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; | ||
851 | } | 856 | } |
852 | 857 | ||
853 | #endif /* USB_STORAGE */ | 858 | #endif /* USB_STORAGE */ |