diff options
| author | Frank Gevaerts <frank@gevaerts.be> | 2008-03-03 22:19:38 +0000 |
|---|---|---|
| committer | Frank Gevaerts <frank@gevaerts.be> | 2008-03-03 22:19:38 +0000 |
| commit | 81d3a02928083b54560709488ad81911494d3796 (patch) | |
| tree | 3f254604447921846968d9fd058f48de01ba517c /firmware/usbstack | |
| parent | ebb49434c69bb63763977b6a78def8c694d43e0a (diff) | |
| download | rockbox-81d3a02928083b54560709488ad81911494d3796.zip rockbox-81d3a02928083b54560709488ad81911494d3796.tar.gz rockbox-81d3a02928083b54560709488ad81911494d3796.tar.bz2 rockbox-81d3a02928083b54560709488ad81911494d3796.tar.xz | |
mark all drives as DEVICE_REMOVABLE to make mac osx (and some developers) happy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16502 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack')
| -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 746e275..9fae7fc 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c @@ -821,8 +821,10 @@ static void identify2inquiry(int lun) (void)lun; memset(tb.inquiry, 0, sizeof(struct inquiry_data)); +#if 0 if (identify[82] & 4) tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; +#endif /* ATA only has a 'model' field, so we copy the first 8 bytes to 'vendor' and the rest to 'product' (they are @@ -843,11 +845,14 @@ static void identify2inquiry(int lun) tb.inquiry->Versions = 4; /* SPC-2 */ tb.inquiry->Format = 2; /* SPC-2/3 inquiry format */ +#if 0 #ifdef HAVE_HOTSWAP if(lun>0) tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; #endif - +#endif + /* Mac OSX 10.5 doesn't like this driver if DEVICE_REMOVABLE is not set */ + tb.inquiry->DeviceTypeModifier = DEVICE_REMOVABLE; } #endif /* USB_STORAGE */ |