Fix init() hang: make status() non-fatal, single attempt

status() (sub_cmd 0x13) returns ILLEGAL REQUEST on some drives.
Was retrying 6× with 30s timeouts = 180s hang during init().

Steps 1-10 all pass on hardware:
 unlock: OK, load_firmware: OK, calibrate: OK,
 register_a: OK, register_b: OK
Only status fails — not needed for reads.
This commit is contained in:
MattJackson
2026-04-08 21:27:34 -07:00
parent 71a21b5c6f
commit ecc6cd9f6b
+3 -4
View File
@@ -503,10 +503,9 @@ impl Platform for Mt1959 {
if a_ok && b_ok { break; } if a_ok && b_ok { break; }
} }
// Phase 5: Status (6 retries) // Phase 5: Status — non-fatal, single attempt
for _attempt in 0..6 { // Some drives reject sub_cmd 0x13. Not required for reads.
if self.status(scsi).is_ok() { break; } let _ = self.status(scsi);
}
Ok(()) Ok(())
} }