From owner-freebsd-current@FreeBSD.ORG Mon Sep 8 00:25:55 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D87A016A4C0 for ; Mon, 8 Sep 2003 00:25:55 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FD9043F3F for ; Mon, 8 Sep 2003 00:25:54 -0700 (PDT) (envelope-from sos@spider.deepcore.dk) Received: from spider.deepcore.dk (localhost [127.0.0.1]) by spider.deepcore.dk (8.12.9/8.12.9) with ESMTP id h887PpIo042031; Mon, 8 Sep 2003 09:25:51 +0200 (CEST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.9/8.12.9/Submit) id h887Ppd1042030; Mon, 8 Sep 2003 09:25:51 +0200 (CEST) From: Soren Schmidt Message-Id: <200309080725.h887Ppd1042030@spider.deepcore.dk> In-Reply-To: <3F5BAB53.7020901@yazzy.org> To: YazzY Date: Mon, 8 Sep 2003 09:25:50 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL99f (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 X-mail-scanned: by DeepCore Virus & Spam killer v1.3 cc: freebsd-current Subject: Re: ATAng and CF cards X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 07:25:56 -0000 It seems YazzY wrote: > Hi. > > It can be mounted when I boot the laptop and do not take the card out of > the slot. > If I eject it and then put it back in, I cannot mount it or dd files to > it anymore... > Anyway, this bit of dmesg does not look healthy to me. And as I said, > everything worked fine before the ATAng code got changed. Please try this simple patch: Index: ata-lowlevel.c =================================================================== RCS file: /home/ncvs/src/sys/dev/ata/ata-lowlevel.c,v retrieving revision 1.8 diff -u -r1.8 ata-lowlevel.c --- ata-lowlevel.c 1 Sep 2003 11:13:21 -0000 1.8 +++ ata-lowlevel.c 8 Sep 2003 07:24:44 -0000 @@ -763,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