提交 0aa800db 编写于 作者: H Hannes Reinecke 提交者: James Bottomley

[SCSI] aic79xx: use tcq functions

This patch converts aic79xx to use the midlayer-supplied tcq
functions.

We also set the queuedepth to '1' if tcq is disabled; the
aic79xx driver gets confused otherwise. Will set it back to
'2' once I figure out how to queue requests in the driver.
Signed-off-by: NHannes Reinecke <hare@suse.de>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 7b22da38
...@@ -1336,14 +1336,12 @@ ahd_platform_set_tags(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, ...@@ -1336,14 +1336,12 @@ ahd_platform_set_tags(struct ahd_softc *ahd, struct ahd_devinfo *devinfo,
switch ((dev->flags & (AHD_DEV_Q_BASIC|AHD_DEV_Q_TAGGED))) { switch ((dev->flags & (AHD_DEV_Q_BASIC|AHD_DEV_Q_TAGGED))) {
case AHD_DEV_Q_BASIC: case AHD_DEV_Q_BASIC:
scsi_adjust_queue_depth(sdev, scsi_set_tag_type(sdev, MSG_SIMPLE_TASK);
MSG_SIMPLE_TASK, scsi_activate_tcq(sdev, dev->openings + dev->active);
dev->openings + dev->active);
break; break;
case AHD_DEV_Q_TAGGED: case AHD_DEV_Q_TAGGED:
scsi_adjust_queue_depth(sdev, scsi_set_tag_type(sdev, MSG_ORDERED_TASK);
MSG_ORDERED_TASK, scsi_activate_tcq(sdev, dev->openings + dev->active);
dev->openings + dev->active);
break; break;
default: default:
/* /*
...@@ -1352,9 +1350,7 @@ ahd_platform_set_tags(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, ...@@ -1352,9 +1350,7 @@ ahd_platform_set_tags(struct ahd_softc *ahd, struct ahd_devinfo *devinfo,
* serially on the controller/device. This should * serially on the controller/device. This should
* remove some latency. * remove some latency.
*/ */
scsi_adjust_queue_depth(sdev, scsi_deactivate_tcq(sdev, 1);
/*NON-TAGGED*/0,
/*queue depth*/2);
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册