summaryrefslogtreecommitdiff
path: root/sys/src/cmd/nusb/disk/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/nusb/disk/disk.c')
-rw-r--r--sys/src/cmd/nusb/disk/disk.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/src/cmd/nusb/disk/disk.c b/sys/src/cmd/nusb/disk/disk.c
index 41260aacd..60052922b 100644
--- a/sys/src/cmd/nusb/disk/disk.c
+++ b/sys/src/cmd/nusb/disk/disk.c
@@ -341,7 +341,13 @@ umsinit(void)
i, lun->inquiry[0]);
continue;
}
- SRstart(lun, 1);
+
+ if(SRready(lun) < 0 && SRready(lun) < 0 && SRready(lun) < 0)
+ dprint(2, "disk: lun %d not ready\n", i);
+
+ if((lun->inquiry[0] & 0x1F) == 0)
+ SRstart(lun, 1);
+
/*
* we ignore the device type reported by inquiry.
* Some devices return a wrong value but would still work.