Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932113Ab1BWIpj (ORCPT ); Wed, 23 Feb 2011 03:45:39 -0500 Received: from mail-qw0-f46.google.com ([209.85.216.46]:55316 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755049Ab1BWIph convert rfc822-to-8bit (ORCPT ); Wed, 23 Feb 2011 03:45:37 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=trgHduXWY+Gr+B5JX0IaxZxfZkha4KZEUFy3+GoryKujZEkLtETDghtpbrz0YsGjC3 FZAgE24v8wviW5QBMsLDCdYSlBjdO5YDcW3un99Otk19a/AtCayMd02wRYT/okbleJbr DY8YwDF11IZvMFAl3TdkQQmTxh6vYLVoMgXRE= MIME-Version: 1.0 In-Reply-To: <20110222111400.1114e8c5@lxorguk.ukuu.org.uk> References: <20110208122314.19110.4092.sendpatchset@linux-mhg7.site> <20110208122409.19110.4233.sendpatchset@linux-mhg7.site> <20110208130701.19709cc6@lxorguk.ukuu.org.uk> <20110208132518.300bb098@lxorguk.ukuu.org.uk> <4D514754.30203@ru.mvista.com> <4D62C5E1.9070307@pobox.com> <20110222111400.1114e8c5@lxorguk.ukuu.org.uk> Date: Wed, 23 Feb 2011 09:45:36 +0100 Message-ID: Subject: Re: [PATCH 05/20] pata_efar: always program master_data before slave_data From: Bartlomiej Zolnierkiewicz To: Alan Cox Cc: Jeff Garzik , Sergei Shtylyov , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1755 Lines: 35 On Tue, Feb 22, 2011 at 12:14 PM, Alan Cox wrote: >> I was thinking about re-doing ata_piix part in a way that we could >> merge it now by adding support for older PIIX-alikes to ata_piix and >> making it enabled only if "all_piixalikes" module parameter is >> specified. ? This way older drivers would be left untouched for now >> and we can easily get in-tree testing for a new code. ?Does it sound >> as a viable alternative? > > That is the bit to me that makes the least sense. Each of the devices in > question is found only in the chipset so they can never be in combination > on a board (except multiple PIIX4 which is already covered) > > Merging them makes it more likely stuff breaks and increases memory usage > - its a lose/lose situation. Each device is very similar to other one, so keeping 6 drivers for the (almost) same stuff makes a little sense from the long-term maintainability POV, It is a question of different trade-offs since on the other side of equation we have 5 drivers less, 1400 LOCs less, no risk of losing bugfixes and features (which is true already w/ pata_rdc lacking locking fixes + Power Management and pata_oldpiix lacking parallel scanning feature). As for increased memory usage -- we are talking here only about 10-20k more. If it really is a problem maybe ata_piix can be redesigned into ata_generic-style manner so with the help of existing config options we can keep code size / memory usage on a existing level. Thanks, 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/