Both changes were fairly easy. It simplied the mrd_ready
TUR loop waiting for Port Accessed. It also simplied the
DSA case since its "TUR" equivalent can directly return
the appropriate error code. The summary of changes:
o Added dev_status to all test_unit_ready functions and
prototypes.
o Removed extra TURs from mrd_common after read element
status failures that didn't them (RES does it own
request sense calls).
o Removed an extra mrd_request_sense after the startup
TUR since the TUR does the Request Sense itself.
o Added an ASC/ASCQ check for the Port Accessed condition
to mrd_scsi_decode() that now returns MRD_STATUS_PORT_ACCESSED.
o Changed the mrd_ready() TUR loop to directly check the
status for MRD_STATUS_PORT_ACCESSED. This made the loop
much simplier.
o Removed "dsa_sense" from the robot_info_t structure.
o The DSA Request Sense always returns MRD_STATUS_NO_SENSE.
|