From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0122.outbound.protection.outlook.com [207.46.100.122]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 713A91A0603 for ; Sat, 4 Oct 2014 06:24:32 +1000 (EST) Message-ID: <1412367858.13320.432.camel@snotra.buserror.net> Subject: Re: [PATCH 2/2] spi: fsl-spi: Allow dynamic allocation of CPM1 parameter RAM From: Scott Wood To: christophe leroy Date: Fri, 3 Oct 2014 15:24:18 -0500 In-Reply-To: <542F03CF.8010900@c-s.fr> References: <20141003125609.5BEA11AB276@localhost.localdomain> <20141003144420.GC24441@sirena.org.uk> <542F03CF.8010900@c-s.fr> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Cc: Marcelo Tosatti , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Mark Brown , Paul Mackerras , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2014-10-03 at 22:15 +0200, christophe leroy wrote: > Le 03/10/2014 16:44, Mark Brown a écrit : > > On Fri, Oct 03, 2014 at 02:56:09PM +0200, Christophe Leroy wrote: > > > >> +config CPM1_RELOCSPI > >> + bool "Dynamic SPI relocation" > >> + default n > >> + help > >> + On recent MPC8xx (at least MPC866 and MPC885) SPI can be relocated > >> + without micropatch. This activates relocation to a dynamically > >> + allocated area in the CPM Dual port RAM. > >> + When combined with SPI relocation patch (for older MPC8xx) it avoids > >> + the "loss" of additional Dual port RAM space just above the patch, > >> + which might be needed for example when using the CPM QMC. > > Something like this shouldn't be a compile time option. Either it > > should be unconditional or it should be triggered in some system > > specific manner (from DT, from knowing about other users or similar). > Can't be unconditional as older versions of mpc8xx (eg MPC860) don't > support relocation without a micropatch. > I have therefore submitted a v2 based on a DTS compatible property. So the device tree change is about whether relocation is supported, not whether it is required? Is this specific to SPI or does the relocation mechanism work for other things? How about checking for the existing specific-SoC compatibles? -Scott