Skip to contentSkip to conversation

sata_qstor: use hardreset instead of softreset

PATCH Applied Tejun Heo 3 participants 3 messages Jan 3, 2008 – Jan 10, 2008 libata

lore
Share & tools
lore

Tejun Heo

author
#0 lore raw

PATCH 1/1 sata_qstor: use hardreset instead of softreset

During conversion to new EH, sata_qstor was accidentaly changed to use softreset, which is buggy on this chip, instead of hardreset. This patch updates sata_qstor such that it uses hardreset again.

This fixes bugzilla bug 9631.

---
 drivers/ata/sata_qstor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/sata_qstor.c +1 -1
index 2f1de6e..c68b241 100644
@@ -270,7 +270,7 @@ static int qs_scr_read(struct ata_port *ap, unsigned int sc_reg, u32 *val)
 static void qs_error_handler(struct ata_port *ap)
 {
 	qs_enter_reg_mode(ap);
-	ata_do_eh(ap, qs_prereset, ata_std_softreset, NULL,
+	ata_do_eh(ap, qs_prereset, NULL, sata_std_hardreset,
 		  ata_std_postreset);
 }
 
#1 lore raw
Quoted 17 lines · Tejun Heo

During conversion to new EH, sata_qstor was accidentaly changed to use softreset, which is buggy on this chip, instead of hardreset. This patch updates sata_qstor such that it uses hardreset again.

This fixes bugzilla bug 9631.

---
 drivers/ata/sata_qstor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ata/sata_qstor.c +0 -0
index 2f1de6e..c68b241 100644

drivers/ata/sata_qstor.c static int qs_scr_read(struct ata_port *ap, unsigned int sc_reg, u32 *val) · line 276

Quoted 8 lines
drivers/ata/sata_qstor.c +1 -1
@@ -270,7 +270,7 @@ static int qs_scr_read(struct ata_port *ap, unsigned int sc_reg, u32 *val)
 static void qs_error_handler(struct ata_port *ap)
 {
 	qs_enter_reg_mode(ap);
-	ata_do_eh(ap, qs_prereset, ata_std_softreset, NULL,
+	ata_do_eh(ap, qs_prereset, NULL, sata_std_hardreset,
 		  ata_std_postreset);
 }
 

Ack. This fixes a regression and should go out in 2.6.24.

And now we know that I'm not the only Linux user on the planet with a QStor card -- there's at least one other out there!

Cheers

Applied
#2 lore raw
In reply to Tejun Heo
Quoted 11 lines · Tejun Heo

During conversion to new EH, sata_qstor was accidentaly changed to use softreset, which is buggy on this chip, instead of hardreset. This patch updates sata_qstor such that it uses hardreset again.

This fixes bugzilla bug 9631.

---
 drivers/ata/sata_qstor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

applied