From 81d3a02928083b54560709488ad81911494d3796 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Mon, 3 Mar 2008 22:19:38 +0000 Subject: 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 --- firmware/usbstack/usb_storage.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'firmware') 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) (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 */ -- cgit v1.2.3