Skip to content

Commit c2df2e4

Browse files
sc53c94: fix int_status for CMD_COMPLETE_STEPS.
No known manual specifies interrupt status for COMPLETE_STEPS. MkLinux DR3 expects that int_status contains INTSTAT_SO after this command.
1 parent df36ad8 commit c2df2e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devices/common/scsi/sc53c94.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ void Sc53C94::sequencer()
560560
this->bus_obj->target_xfer_data();
561561
break;
562562
case SeqState::CMD_COMPLETE:
563-
this->int_status = INTSTAT_SR | INTSTAT_SO;
564563
this->cur_state = SeqState::IDLE;
565564
this->update_irq();
566565
exec_next_command();
@@ -640,6 +639,7 @@ void Sc53C94::sequencer()
640639
} else if (this->cur_state == SeqState::RCV_MESSAGE) {
641640
this->bus_obj->assert_ctrl_line(this->my_bus_id, SCSI_CTRL_ACK);
642641
if (this->cur_cmd == CMD_COMPLETE_STEPS) {
642+
this->int_status = INTSTAT_SO;
643643
this->cur_state = SeqState::CMD_COMPLETE;
644644
this->sequencer();
645645
}

0 commit comments

Comments
 (0)