From: Tejun Heo Subject: Re: Question regarding PORT_IRQ_BAD_PMP (Re: AHCI support Port Multiplier problem.) Date: Tue, 15 Feb 2011 11:31:50 +0100 Message-ID: <20110215103150.GI3160@htj.dyndns.org> References: <20110107212537.GH7355@mtj.dyndns.org> <55871.3142.qm@web74203.mail.tp2.yahoo.com> <20110111143726.GE30607@htj.dyndns.org> <20110215085504.GA3160@htj.dyndns.org> <20110215100335.GH3160@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:58618 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754563Ab1BOKbz (ORCPT ); Tue, 15 Feb 2011 05:31:55 -0500 Received: by fxm20 with SMTP id 20so11913fxm.19 for ; Tue, 15 Feb 2011 02:31:53 -0800 (PST) Content-Disposition: inline In-Reply-To: Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Lin Mac Cc: linux-ide@vger.kernel.org, jgarzik@pobox.com On Tue, Feb 15, 2011 at 06:26:21PM +0800, Lin Mac wrote: > 2011/2/15 Tejun Heo : > > On Tue, Feb 15, 2011 at 05:50:55PM +0800, Lin Mac wrote: > >> > You're already working around buggy hardware. =A0It isn't surpri= sing > >> > that both behave incorrectly in their own separate ways. =A0Just= do > >> > what's necessary to get the hardware working as long as the work= around > >> > is localized to the specific controller. > >> > >> If I implement it as a quirk, would you prefer to add a new field > >> quirk, or just use flags of ahci_host_priv and add a new AHCI_HFLA= G*? > >> I prefer the later, but afraid that it's not what it is for. > > > > Please implement it as a separate ata_port_operations like > > ahci_CONTROLLER_NAME_ops and use the customized reset methods. >=20 > In fact, I did. But it doesn't get accepted. >=20 > [PATCH v5 0/3] add CNS3xxx AHCI support (Cavium Networks) > http://www.spinics.net/lists/linux-ide/msg39859.html >=20 > And given that there are many of them, shouldn't we implement it as q= uirk? IIRC, the rejected part was the renaming of files and addition of a new driver, no? --=20 tejun