Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750854AbVJQQwu (ORCPT ); Mon, 17 Oct 2005 12:52:50 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750819AbVJQQwu (ORCPT ); Mon, 17 Oct 2005 12:52:50 -0400 Received: from rwcrmhc11.comcast.net ([204.127.198.35]:48282 "EHLO rwcrmhc11.comcast.net") by vger.kernel.org with ESMTP id S1750814AbVJQQwt (ORCPT ); Mon, 17 Oct 2005 12:52:49 -0400 From: Jesse Barnes To: Linus Torvalds Subject: Re: [PATCH] libata: fix broken Kconfig setup Date: Mon, 17 Oct 2005 09:52:33 -0700 User-Agent: KMail/1.8.91 Cc: Jeff Garzik , Andrew Morton , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, davej@redhat.com References: <20051017044606.GA1266@havoc.gtf.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510170952.34174.jbarnes@virtuousgeek.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1456 Lines: 34 On Monday, October 17, 2005 8:14 am, Linus Torvalds wrote: > So it appears that your dependence on quirk_intel_ide_combined() is > fundamentally broken for the "m" case _anyway_. Correct. The quirk itself is a fragile hack. > Anyway, the second thing means that the whole configuration is > somewhat broken, but on the whole, why not this _much_ more trivial > patch? > > It's still broken, exactly because it depends on the modules being > defined when compiling the whole kernel, but hey, we probably have > other cases like that. > > My suggestion being that we should make it unconditional, but maybe > that breaks the case where we don't actually load the SATA module? It does, since it prevents one of the ports from being bound by the legacy IDE driver. But the whole thing is rather hackish to begin with, and I prefer this hack to the existing code (in fact, Andrew already queued up a patch from me in -mm that looks just like yours). Ultimately, when libata gets ATAPI support, I think we just have to declare libata and legacy IDE to be incompatible for combined mode devices and remove the quirk. Then whichever driver loads first will get the whole device, as it should. Jesse - 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/