Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Sep 2003 11:48:55 +0200 (CEST)
From:      Soren Schmidt <sos@spider.deepcore.dk>
To:        Soren Schmidt <sos@spider.deepcore.dk>
Cc:        freebsd-current <freebsd-current@FreeBSD.ORG>
Subject:   Re: ATAng and CF cards
Message-ID:  <200309080948.h889mtBJ043298@spider.deepcore.dk>
In-Reply-To: <200309080938.h889c7UZ043165@spider.deepcore.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
It seems Soren Schmidt wrote:
> Forget that, wrong patch, here goes the right one:

DOH! things are not going weel this morning, this patch should be right:

Index: ata-lowlevel.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v
retrieving revision 1.10
diff -u -r1.10 ata-lowlevel.c
--- ata-lowlevel.c	8 Sep 2003 08:36:46 -0000	1.10
+++ ata-lowlevel.c	8 Sep 2003 09:47:14 -0000
@@ -772,7 +772,10 @@
     struct ata_channel *ch = request->device->channel;
     int resid;
 
-    if (ch->flags & ATA_USE_16BIT || (size % sizeof(int32_t)))
+    if ((!(request->flags & ATA_R_ATAPI) && 
+	 (request->u.ata.command == ATA_ATA_IDENTIFY ||
+	  request->u.ata.command == ATA_ATAPI_IDENTIFY)) ||
+	ch->flags & ATA_USE_16BIT || (size % sizeof(int32_t)))
 	ATA_IDX_INSW_STRM(ch, ATA_DATA,
 			  (void*)((uintptr_t)request->data+request->donecount),
 			  size / sizeof(int16_t));
-Søren



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309080948.h889mtBJ043298>