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:
@@ -503,10 +503,9 @@ impl Platform for Mt1959 {
|
||||
if a_ok && b_ok { break; }
|
||||
}
|
||||
|
||||
// Phase 5: Status (6 retries)
|
||||
for _attempt in 0..6 {
|
||||
if self.status(scsi).is_ok() { break; }
|
||||
}
|
||||
// Phase 5: Status — non-fatal, single attempt
|
||||
// Some drives reject sub_cmd 0x13. Not required for reads.
|
||||
let _ = self.status(scsi);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user