Commit 060019f
committed
shared/usb: per-LUN response to PREVENT_ALLOW_MEDIUM_REMOVAL
Respond with "unsupported" for the SD LUN (removable media) and OK for
internal flash / SAVES LUNs (non-removable). Responding OK for a
removable LUN tells macOS the medium is always present, and macOS then
skips TEST_UNIT_READY polling. If the SD isn't ready at the single
enumeration probe, macOS never re-checks and LUN 1 fails to publish an
IOMedia node.
Hathach documented this behavior back in #6555; the SD case wasn't
differentiated at the time.
Fixes #10965.1 parent abb3cbb commit 060019f
1 file changed
Lines changed: 16 additions & 2 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
219 | 233 | | |
220 | 234 | | |
221 | 235 | | |
| |||
0 commit comments