Re: [PATCH 11/13] rapidio: modify for rev.3 specification changes

From: Michael Ellerman
Date: Thu Jul 28 2016 - 09:52:58 EST


Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> writes:

> On Wed, 27 Jul 2016 14:53:25 +1000 Michael Ellerman <mpe@xxxxxxxxxxxxxx> wrote:
>> 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)
>
> 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);
> -

Yep, thanks.

Hopefully someone somewhere is testing this on powerpc, I don't have one
of those FSL boxes. But at least it will build now.

cheers