From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757960AbcG0ThR (ORCPT ); Wed, 27 Jul 2016 15:37:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:41548 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753189AbcG0ThP (ORCPT ); Wed, 27 Jul 2016 15:37:15 -0400 Date: Wed, 27 Jul 2016 12:37:13 -0700 From: Andrew Morton To: Michael Ellerman Cc: Alexandre Bounine , Matt Porter , Andre van Herk , Barry Wood , linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/13] rapidio: modify for rev.3 specification changes Message-Id: <20160727123713.8d61bed160fbfa3631b0066e@linux-foundation.org> In-Reply-To: <87vazrvfzu.fsf@concordia.ellerman.id.au> References: <1469125134-16523-1-git-send-email-alexandre.bounine@idt.com> <1469125134-16523-12-git-send-email-alexandre.bounine@idt.com> <87vazrvfzu.fsf@concordia.ellerman.id.au> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Jul 2016 14:53:25 +1000 Michael Ellerman wrote: > Alexandre Bounine writes: > > > Implement changes made in RapidIO specification rev.3 to LP-Serial Physical > > Layer register definitions: > > - use per-port register offset calculations based on LP-Serial Extended > > Features Block (EFB) Register Map type (I or II) with different per-port > > offset step (0x20 vs. 0x40 respectfully). > > - remove deprecated Parallel Physical layer definitions and related code. > > > > Signed-off-by: Alexandre Bounine > > Tested-by: Barry Wood > > Cc: Matt Porter > > Cc: Andre van Herk > > Cc: Barry Wood > > Cc: linux-kernel@vger.kernel.org > > --- > > drivers/rapidio/devices/rio_mport_cdev.c | 2 +- > > drivers/rapidio/devices/tsi721.c | 8 +- > > drivers/rapidio/rio-scan.c | 74 +++---------- > > drivers/rapidio/rio.c | 149 ++++++++++++++------------- > > drivers/rapidio/rio.h | 2 +- > > drivers/rapidio/switches/tsi57x.c | 26 ++--- > > include/linux/rio.h | 11 +-- > > include/linux/rio_regs.h | 167 +++++++++++++++++++++++------ > > 8 files changed, 248 insertions(+), 191 deletions(-) > > This is breaking the build for me on powerpc, for > corenet64_smp_defconfig at least. > > eg. > > http://kisskb.ellerman.id.au/kisskb/buildresult/12750751/ > > Commit: Add linux-next specific files for 20160722 > 13123042d0dbf7635f052efc2ae69fd9af624f1d > Compiler: powerpc-linux-gcc (GCC) 4.6.3 > > Possible errors > --------------- > > arch/powerpc/sysdev/fsl_rio.c:702:11: error: 'struct rio_mport' has no member named 'phy_type' > arch/powerpc/sysdev/fsl_rio.c:702:25: error: 'RIO_PHY_SERIAL' undeclared (first use in this function) > make[2]: *** [arch/powerpc/sysdev/fsl_rio.o] Error 1 > make[1]: *** [arch/powerpc/sysdev] Error 2 > make: *** [sub-make] Error 2 I'll go out on a limb and assume it's this: --- a/arch/powerpc/sysdev/fsl_rio.c~powerpc-fsl_rio-apply-changes-for-rio-spec-rev-3-fix +++ a/arch/powerpc/sysdev/fsl_rio.c @@ -698,11 +698,6 @@ int fsl_rio_setup(struct platform_device RIO_INB_ATMU_REGS_PORT2_OFFSET)); - /* Set to receive any dist ID for serial RapidIO controller. */ - if (port->phy_type == RIO_PHY_SERIAL) - out_be32((priv->regs_win - + RIO_ISR_AACR + i*0x80), RIO_ISR_AACR_AA); - /* Configure maintenance transaction window */ out_be32(&priv->maint_atmu_regs->rowbar, port->iores.start >> 12); _