shithub: riscv

Download patch

ref: 523955c36466dac64e8ec19068333408ba4a00c7
parent: 41d1a883e53baf66918c35cb0e84eab899a16259
author: Noam Preil <noam@pixelhero.dev>
date: Tue Aug 8 15:35:04 EDT 2023

nusb/disk: work around quirk in some CD drives

--- a/sys/src/cmd/nusb/disk/disk.c
+++ b/sys/src/cmd/nusb/disk/disk.c
@@ -222,6 +222,8 @@
 		max &= 017;			/* 15 is the max. allowed */
 		dprint(2, "%s: %s: maxlun %d\n", argv0, dev->dir, max);
 	}
+	/* 0e8d:1887 does not respond to followup commands without a delay */
+	sleep(1);
 	return max;
 }