git: 9front

Download patch

ref: bfc1ca3757694aa26d8839e4e87f3d803633b800
parent: a9ad44c008832c23c5bd4a618991bf200eb4583b
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;
 }
 
--