Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272327AbTHNMsL (ORCPT ); Thu, 14 Aug 2003 08:48:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272336AbTHNMsL (ORCPT ); Thu, 14 Aug 2003 08:48:11 -0400 Received: from mion.elka.pw.edu.pl ([194.29.160.35]:5045 "EHLO mion.elka.pw.edu.pl") by vger.kernel.org with ESMTP id S272327AbTHNMsK (ORCPT ); Thu, 14 Aug 2003 08:48:10 -0400 From: Bartlomiej Zolnierkiewicz To: Alan Cox Subject: Re: [PATCH] ide: limit drive capacity to 137GB if host doesn't support LBA48 Date: Thu, 14 Aug 2003 14:48:27 +0200 User-Agent: KMail/1.5 Cc: Andries Brouwer , Linux Kernel Mailing List References: <200308140324.45524.bzolnier@elka.pw.edu.pl> <1060851207.5535.15.camel@dhcp23.swansea.linux.org.uk> In-Reply-To: <1060851207.5535.15.camel@dhcp23.swansea.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308141448.27905.bzolnier@elka.pw.edu.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 980 Lines: 23 On Thursday 14 of August 2003 10:53, Alan Cox wrote: > On Iau, 2003-08-14 at 02:24, Bartlomiej Zolnierkiewicz wrote: > > hwif->rqsize = old_hwif.rqsize; > > - hwif->addressing = old_hwif.addressing; > > + hwif->no_lba48 = old_hwif.no_lba48; > > This change is a bad idea. Its called "addressing" because that is what > it is about (see SATA and ATA specs). In future SATA addressing becomes > a 0,1,2 value because 48bits isnt enough, it may get more forms beyond > that. Its hwif->addressing not drive->addressing. Look at the current usage. It is 1 when host doesn't support LBA48, otherwise its 0. We can add "real" hwif->addressing when needed. IDE driver is already full of unfinished, unused "features". --bartlomiej - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/