linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [git-patch] libata: improve initialization and legacy handling, take #3
@ 2006-08-06 17:56 Tejun Heo
  2006-08-09  5:44 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Tejun Heo @ 2006-08-06 17:56 UTC (permalink / raw)
  To: Jeff Garzik, Alan Cox, linux-ide@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 787 bytes --]

Hello,

tj-upstream, tj-pata-drivers, tj-ALL have been updated per Alan's 
comment[1].  tj-upstream-fixes isn't affected.  Diff against the last 
take[L] is attached.

Updated git trees are available at...

http://htj.dyndns.org/git/?p=libata-tj.git;a=shortlog;h=tj-upstream-fixes
git://htj.dyndns.org/libata-tj tj-upstream-fixes

http://htj.dyndns.org/git/?p=libata-tj.git;a=shortlog;h=tj-upstream
git://htj.dyndns.org/libata-tj tj-upstream

http://htj.dyndns.org/git/?p=libata-tj.git;a=shortlog;h=tj-pata-drivers
git://htj.dyndns.org/libata-tj tj-pata-drivers

http://htj.dyndns.org/git/?p=libata-tj.git;a=shortlog;h=tj-ALL
git://htj.dyndns.org/libata-tj tj-ALL

Thanks.

-- 
tejun

[L] http://article.gmane.org/gmane.linux.ide/12401
[1] http://article.gmane.org/gmane.linux.ide/12412

[-- Attachment #2: diff-against-last.patch --]
[-- Type: text/x-patch, Size: 915 bytes --]

diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 0bcf867..d3dd8e6 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -3048,6 +3048,7 @@ static void ata_dev_xfermask(struct ata_
 	struct ata_port *ap = dev->ap;
 	struct ata_host_set *hs = ap->host_set;
 	unsigned long xfer_mask;
+	int i;
 
 	/* controller modes available */
 	xfer_mask = ata_pack_xfermask(ap->pio_mask,
@@ -3075,6 +3076,16 @@ static void ata_dev_xfermask(struct ata_
 			       "other device, disabling DMA\n");
 	}
 
+	/* Use the lowest common PIO mode to avoid violating device
+	 * selection timing.
+	 */
+	for (i = 0; i < ATA_MAX_DEVICES; i++) {
+		struct ata_device *d = &ap->device[i];
+		if (!ata_dev_absent(d))
+			xfer_mask &= ata_pack_xfermask(d->pio_mask,
+						       UINT_MAX, UINT_MAX);
+	}
+
 	if (ap->ops->mode_filter)
 		xfer_mask = ap->ops->mode_filter(ap, dev, xfer_mask);
 

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

* Re: [git-patch] libata: improve initialization and legacy handling, take #3
  2006-08-06 17:56 [git-patch] libata: improve initialization and legacy handling, take #3 Tejun Heo
@ 2006-08-09  5:44 ` Jeff Garzik
  2006-08-09  5:50   ` Tejun Heo
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2006-08-09  5:44 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Alan Cox, linux-ide@vger.kernel.org

Tejun Heo wrote:
> Hello,
> 
> tj-upstream, tj-pata-drivers, tj-ALL have been updated per Alan's 
> comment[1].  tj-upstream-fixes isn't affected.  Diff against the last 
> take[L] is attached.

What's the difference?

The patch you attached seems to be exactly the same as what Alan 
objected to...

	Jeff




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

* Re: [git-patch] libata: improve initialization and legacy handling, take #3
  2006-08-09  5:44 ` Jeff Garzik
@ 2006-08-09  5:50   ` Tejun Heo
  0 siblings, 0 replies; 3+ messages in thread
From: Tejun Heo @ 2006-08-09  5:50 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Alan Cox, linux-ide@vger.kernel.org

Jeff Garzik wrote:
> Tejun Heo wrote:
>> Hello,
>>
>> tj-upstream, tj-pata-drivers, tj-ALL have been updated per Alan's 
>> comment[1].  tj-upstream-fixes isn't affected.  Diff against the last 
>> take[L] is attached.
> 
> What's the difference?
> 
> The patch you attached seems to be exactly the same as what Alan 
> objected to...

Sorry, diff was done the other way around.  That part is removed.

-- 
tejun

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

end of thread, other threads:[~2006-08-09  5:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-06 17:56 [git-patch] libata: improve initialization and legacy handling, take #3 Tejun Heo
2006-08-09  5:44 ` Jeff Garzik
2006-08-09  5:50   ` Tejun Heo

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).