Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755086AbcLSTqk (ORCPT ); Mon, 19 Dec 2016 14:46:40 -0500 Received: from host.buserror.net ([209.198.135.123]:45919 "EHLO host.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752691AbcLSTqg (ORCPT ); Mon, 19 Dec 2016 14:46:36 -0500 Message-ID: <1482176783.32531.28.camel@buserror.net> From: Scott Wood To: madalin.bucur@nxp.com, netdev@vger.kernel.org Cc: mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, davem@davemloft.net Date: Mon, 19 Dec 2016 13:46:23 -0600 In-Reply-To: <1482164013-6111-3-git-send-email-madalin.bucur@nxp.com> References: <1482164013-6111-1-git-send-email-madalin.bucur@nxp.com> <1482164013-6111-3-git-send-email-madalin.bucur@nxp.com> Organization: NXP Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 50.171.225.118 X-SA-Exim-Mail-From: oss@buserror.net X-Spam-Report: * 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. * See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block * for more information. * [URIs: buserror.net] * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -15 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Subject: Re: [upstream-release] [PATCH net v3 2/4] powerpc: fsl/fman: remove fsl, fman from of_device_ids[] X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:57:07 +0000) X-SA-Exim-Scanned: Yes (on host.buserror.net) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1829 Lines: 56 On Mon, 2016-12-19 at 18:13 +0200, Madalin Bucur wrote: > The fsl/fman drivers will use of_platform_populate() on all > supported platforms. Call of_platform_populate() to probe the > FMan sub-nodes. > > Signed-off-by: Igal Liberman > Signed-off-by: Madalin Bucur > --- >  arch/powerpc/platforms/85xx/corenet_generic.c | 3 --- >  drivers/net/ethernet/freescale/fman/fman.c    | 8 ++++++++ >  2 files changed, 8 insertions(+), 3 deletions(-) > > diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c > b/arch/powerpc/platforms/85xx/corenet_generic.c > index 1179115..824b7f1 100644 > --- a/arch/powerpc/platforms/85xx/corenet_generic.c > +++ b/arch/powerpc/platforms/85xx/corenet_generic.c > @@ -117,9 +117,6 @@ static const struct of_device_id of_device_ids[] = { >   { >   .compatible = "fsl,qe", >   }, > - { > - .compatible    = "fsl,fman", > - }, >   /* The following two are for the Freescale hypervisor */ >   { >   .name = "hypervisor", For this part: Acked-by: Scott Wood > diff --git a/drivers/net/ethernet/freescale/fman/fman.c > b/drivers/net/ethernet/freescale/fman/fman.c > index dafd9e1..0b7f711 100644 > --- a/drivers/net/ethernet/freescale/fman/fman.c > +++ b/drivers/net/ethernet/freescale/fman/fman.c > @@ -2868,6 +2868,14 @@ static struct fman *read_dts_node(struct > platform_device *of_dev) >   >   fman->dev = &of_dev->dev; >   > + /* call of_platform_populate in order to probe sub-nodes on arm64 > */ > + err = of_platform_populate(fm_node, NULL, NULL, &of_dev->dev); > + if (err) { > + dev_err(&of_dev->dev, "%s: of_platform_populate() > failed\n", > + __func__); > + goto fman_free; > + } The "on arm64" comment is no longer accurate (and the rest of the comment seems unnecessary). -Scott