linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sata_uli: ignore SIMPLEX
@ 2007-01-16  5:55 Tejun Heo
  2007-01-16 11:46 ` Alan
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Tejun Heo @ 2007-01-16  5:55 UTC (permalink / raw)
  To: Jeff Garzik, linux-ide

Some uli controllers have stuck SIMPLEX bit which can't be cleared
with ata_pci_clear_simplex(), but the controller is capable of doing
DMAs on both channels simultaneously.  Ignore it.

Signed-off-by: Tejun Heo <htejun@gmail.com>

diff --git a/drivers/ata/sata_uli.c b/drivers/ata/sata_uli.c
index 5c603ca..62b9269 100644
--- a/drivers/ata/sata_uli.c
+++ b/drivers/ata/sata_uli.c
@@ -226,6 +226,13 @@ static int uli_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
 
 	probe_ent->private_data = hpriv;
 
+	/* these chips have stuck dummy simplex bit, ignore it */
+	if (probe_ent->_host_flags & ATA_HOST_SIMPLEX) {
+		dev_printk(KERN_INFO, &pdev->dev,
+			   "BMDMA simplex set, ignored\n");
+		probe_ent->_host_flags &= ~ATA_HOST_SIMPLEX;
+	}
+
 	switch (board_idx) {
 	case uli_5287:
 		hpriv->scr_cfg_addr[0] = ULI5287_BASE;

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-01-25 22:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-16  5:55 [PATCH] sata_uli: ignore SIMPLEX Tejun Heo
2007-01-16 11:46 ` Alan
2007-01-20  0:17 ` Jeff Garzik
2007-01-20  3:41   ` Tejun Heo
2007-01-20  4:05     ` Jeff Garzik
2007-01-22 11:30       ` Alan
2007-01-25 10:40 ` [PATCH] libata: implement ATA_FLAG_IGN_SIMPLEX and use it in sata_uli Tejun Heo
2007-01-25 22:26   ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).