From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.lixom.net (lixom.net [66.141.50.11]) by ozlabs.org (Postfix) with ESMTP id 630DBDDE98 for ; Fri, 7 Sep 2007 19:16:23 +1000 (EST) Date: Fri, 7 Sep 2007 04:16:37 -0500 From: Olof Johansson To: Milton Miller Subject: Re: [PATCH] powerpc: Add workaround for MPICs with broken register reads Message-ID: <20070907091637.GA32102@lixom.net> References: <20070905024417.GE27139@lixom.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: ppcdev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Sep 06, 2007 at 09:55:21AM -0500, Milton Miller wrote: > On Wed Sep 5 12:44:17 EST 2007, Olof Johansson wrote: >> diff --git a/arch/powerpc/platforms/Kconfig >> b/arch/powerpc/platforms/Kconfig >> index 041df77..b9f1efa 100644 >> --- a/arch/powerpc/platforms/Kconfig >> +++ b/arch/powerpc/platforms/Kconfig >> @@ -137,6 +137,10 @@ config MPIC_U3_HT_IRQS >> depends on PPC_MAPLE >> default y >> >> +config MPIC_BROKEN_REGREAD >> + bool >> + depends on PPC_PASEMI >> + >> config IBMVIO >> depends on PPC_PSERIES || PPC_ISERIES >> bool >> diff --git a/arch/powerpc/platforms/pasemi/Kconfig >> b/arch/powerpc/platforms/pasemi/Kconfig >> index 95cd90f..117d90a 100644 >> --- a/arch/powerpc/platforms/pasemi/Kconfig >> +++ b/arch/powerpc/platforms/pasemi/Kconfig >> @@ -5,6 +5,7 @@ config PPC_PASEMI >> select MPIC >> select PPC_UDBG_16550 >> select PPC_NATIVE >> + select MPIC_BROKEN_REGREAD >> help >> This option enables support for PA Semi's PWRficient line >> of SoC processors, including PA6T-1682M > > > Since you are using select (and not default y), instead of the depends on > PPC_PASEMI how about adding a short description of what the config does as > help text, in case some future mpic has a similar bug? Thanks Milton, that's a reasonable suggestion (not that any of the other options do it, including the very vague MPIC_WEIRD :-). New patch posted shortly. -Olof