Conversation
|
Kudos, SonarCloud Quality Gate passed! |
rdmark
left a comment
There was a problem hiding this comment.
So you're saying that the BSY pin must be set for initiator mode and target mode alike, not just target mode?
|
@rdmark Yes, exactly. The initiator has to set BSY in particular for a proper arbitration/selection, but the original code did not configure the BSY pin as output pin when setting BSY in initiator mode. So BSY was affectively never set in initiator mode. The result was the target only seeing the initiator ID but not its own when there was arbitration before selection, which is what the SCSI standard requires. And when there is no target ID on the bus, no potential target will do anything. |
* In initiator mode configure BSY as an output pin when BSY is set
* In initiator mode configure BSY as an output pin when BSY is set
* In initiator mode configure BSY as an output pin when BSY is set
* In initiator mode configure BSY as an output pin when BSY is set








Just like #1284 this is another bug that must have always been there but has never been detected because usually initiator mode is not used. It's a pity, because I guess that none of the other SCSI solutions supports initiator mode.
Tested with the upcoming scsidump, which supports bus arbitration, which requires BSY to work.