It seems Eugene Grosbein wrote:
[ Charset KOI8-R unsupported, converting... ]
> "S?ren Schmidt" wrote:
> 
> > Of cause it should, and belive me I'm doing all I can to try get this
> > nailed. But I do have a real life as well, and a fulltime job, 3 kids,
> > vife and lots of other important things to care for, so excuse me if
> > I dont work 24 hours a day on this problem...
> 
> Of course. How about backing out new ATA code and stick with old
> for the sake of 4.6-RELEASE stability?

Yeah, right, thats to prove that progress comes hard or what ?

Anyhow, could those haivng this problem try this patch:

Index: ata-disk.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/ata/ata-disk.c,v
retrieving revision 1.60.2.22
diff -u -r1.60.2.22 ata-disk.c
--- ata-disk.c  11 Apr 2002 08:45:32 -0000      1.60.2.22
+++ ata-disk.c  21 May 2002 15:51:52 -0000
@@ -707,17 +707,17 @@
        int device = adp->device->unit;
 
        if (adp->device->unit == ATA_MASTER) {
-           if (adp->device->channel->devices & ATA_ATA_SLAVE &&
-               ((struct ad_softc *)
-                (adp->device->channel->
-                 device[ATA_DEV(ATA_SLAVE)].driver))->flags&AD_F_TAG_ENABLED)
+           if ((adp->device->channel->devices & ATA_ATA_SLAVE) &&
+               (adp->device->channel->device[SLAVE].driver) &&
+               ((struct ad_softc *) (adp->device->channel->
+                device[SLAVE].driver))->flags & AD_F_TAG_ENABLED)
                device = ATA_SLAVE;
        }
        else {
-           if (adp->device->channel->devices & ATA_ATA_MASTER &&
-               ((struct ad_softc *)
-                (adp->device->channel->
-                 device[ATA_DEV(ATA_MASTER)].driver))->flags&AD_F_TAG_ENABLED)
+           if ((adp->device->channel->devices & ATA_ATA_MASTER) &&
+               (adp->device->channel->device[MASTER].driver) &&
+               ((struct ad_softc *) (adp->device->channel->
+                device[MASTER].driver))->flags & AD_F_TAG_ENABLED)
                device = ATA_MASTER;
        }
        if (device != adp->device->unit &&
-Søren

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to