Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254346
b: refs/heads/master
c: 3ff0121
h: refs/heads/master
v: v3
  • Loading branch information
Piotr Sawicki authored and Dan Williams committed Jul 3, 2011
1 parent 44ec615 commit 2e3eed1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8d4b9fe911c7d48f7a75c37eb1bfa3273547d97
refs/heads/master: 3ff0121a704172aa4bca9c4026b419ddfe1921c8
25 changes: 21 additions & 4 deletions trunk/drivers/scsi/isci/core/scic_sds_stp_remote_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,27 @@ static enum sci_status scic_sds_stp_remote_device_ready_ncq_substate_frame_handl
);

if (status == SCI_SUCCESS) {
if (
(frame_header->fis_type == SATA_FIS_TYPE_SETDEVBITS)
&& (frame_header->status & ATA_STATUS_REG_ERROR_BIT)
) {
if (frame_header->fis_type == SATA_FIS_TYPE_SETDEVBITS &&
(frame_header->status & ATA_STATUS_REG_ERROR_BIT)) {
this_device->not_ready_reason =
SCIC_REMOTE_DEVICE_NOT_READY_SATA_SDB_ERROR_FIS_RECEIVED;

/*
* / @todo Check sactive and complete associated IO
* if any.
*/

sci_base_state_machine_change_state(
&this_device->ready_substate_machine,
SCIC_SDS_STP_REMOTE_DEVICE_READY_SUBSTATE_NCQ_ERROR
);
} else if (frame_header->fis_type == SATA_FIS_TYPE_REGD2H &&
(frame_header->status & ATA_STATUS_REG_ERROR_BIT)) {

/*
* Some devices return D2H FIS when an NCQ error is detected.
* Treat this like an SDB error FIS ready reason.
*/
this_device->not_ready_reason =
SCIC_REMOTE_DEVICE_NOT_READY_SATA_SDB_ERROR_FIS_RECEIVED;

Expand Down

0 comments on commit 2e3eed1

Please sign in to comment.