aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_sis.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-06-16 02:00:18 -0400
committerJeff Garzik <jeff@garzik.org>2006-06-20 05:12:15 -0400
commitd7a80dad2fe19a2b8c119c8e9cba605474a75a2b (patch)
treeb32a32f95bc40f7fa4dbc1f127213aaa75e96ca9 /drivers/scsi/sata_sis.c
parent40ef1d8d48e364dce689342adfdc475aa53f4808 (diff)
[PATCH] libata: convert several bmdma-style controllers to new EH, take #3
Convert sata_sis, svw, uli and vsc drivers to new EH. All the drivers used to specify ATA_FLAG_SATA_RESET to tell libata to use SATA hardreset instead of SRST. This patch makes all the converted drivers use the standard bmdma error handler which uses both SRST and SATA hardreset. All the controllers should be able to perform SRST but still needs verification. If some of the controllers can't do SRST, it will be very easy to spot as it will show up during boot probing. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/sata_sis.c')
-rw-r--r--drivers/scsi/sata_sis.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/sata_sis.c b/drivers/scsi/sata_sis.c
index a07e6e525173..809d337ed641 100644
--- a/drivers/scsi/sata_sis.c
+++ b/drivers/scsi/sata_sis.c
@@ -107,7 +107,6 @@ static const struct ata_port_operations sis_ops = {
107 .check_status = ata_check_status, 107 .check_status = ata_check_status,
108 .exec_command = ata_exec_command, 108 .exec_command = ata_exec_command,
109 .dev_select = ata_std_dev_select, 109 .dev_select = ata_std_dev_select,
110 .phy_reset = sata_phy_reset,
111 .bmdma_setup = ata_bmdma_setup, 110 .bmdma_setup = ata_bmdma_setup,
112 .bmdma_start = ata_bmdma_start, 111 .bmdma_start = ata_bmdma_start,
113 .bmdma_stop = ata_bmdma_stop, 112 .bmdma_stop = ata_bmdma_stop,
@@ -115,7 +114,10 @@ static const struct ata_port_operations sis_ops = {
115 .qc_prep = ata_qc_prep, 114 .qc_prep = ata_qc_prep,
116 .qc_issue = ata_qc_issue_prot, 115 .qc_issue = ata_qc_issue_prot,
117 .data_xfer = ata_pio_data_xfer, 116 .data_xfer = ata_pio_data_xfer,
118 .eng_timeout = ata_eng_timeout, 117 .freeze = ata_bmdma_freeze,
118 .thaw = ata_bmdma_thaw,
119 .error_handler = ata_bmdma_error_handler,
120 .post_internal_cmd = ata_bmdma_post_internal_cmd,
119 .irq_handler = ata_interrupt, 121 .irq_handler = ata_interrupt,
120 .irq_clear = ata_bmdma_irq_clear, 122 .irq_clear = ata_bmdma_irq_clear,
121 .scr_read = sis_scr_read, 123 .scr_read = sis_scr_read,
@@ -127,8 +129,7 @@ static const struct ata_port_operations sis_ops = {
127 129
128static struct ata_port_info sis_port_info = { 130static struct ata_port_info sis_port_info = {
129 .sht = &sis_sht, 131 .sht = &sis_sht,
130 .host_flags = ATA_FLAG_SATA | ATA_FLAG_SATA_RESET | 132 .host_flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY,
131 ATA_FLAG_NO_LEGACY,
132 .pio_mask = 0x1f, 133 .pio_mask = 0x1f,
133 .mwdma_mask = 0x7, 134 .mwdma_mask = 0x7,
134 .udma_mask = 0x7f, 135 .udma_mask = 0x7f,