Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933657AbcLSQOp (ORCPT ); Mon, 19 Dec 2016 11:14:45 -0500 Received: from mail-cys01nam02on0070.outbound.protection.outlook.com ([104.47.37.70]:9384 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932931AbcLSQNp (ORCPT ); Mon, 19 Dec 2016 11:13:45 -0500 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; ellerman.id.au; dkim=none (message not signed) header.d=none;ellerman.id.au; dmarc=fail action=none header.from=nxp.com; From: Madalin Bucur To: CC: , , , , Subject: [PATCH net v3 2/4] powerpc: fsl/fman: remove fsl,fman from of_device_ids[] Date: Mon, 19 Dec 2016 18:13:31 +0200 Message-ID: <1482164013-6111-3-git-send-email-madalin.bucur@nxp.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1482164013-6111-1-git-send-email-madalin.bucur@nxp.com> References: <1482164013-6111-1-git-send-email-madalin.bucur@nxp.com> Reply-To: X-EOPAttributedMessage: 0 X-Matching-Connectors: 131266376218801300;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(6009001)(336005)(7916002)(39840400002)(39450400003)(39400400002)(39850400002)(39410400002)(39380400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(305945005)(106466001)(4326007)(77096006)(43066003)(356003)(105606002)(2351001)(81156014)(81166006)(86362001)(85426001)(104016004)(8676002)(36756003)(2906002)(8936002)(38730400001)(8666005)(50226002)(69596002)(68736007)(626004)(5660300001)(50986999)(76176999)(53806999)(33646002)(189998001)(2950100002)(6916009)(47776003)(97736004)(5003940100001)(6666003)(48376002)(3450700001)(110136003)(50466002)(7059030)(142933001)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB0745;H:az84smr01.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD010;1:ZEBPSln9lJkYL+b5zQgWvIn5WuDHEY4ieFY6fRfhDjnlu7Q0nF9YM6gV0BYrAaRvjFEWSd8/ICwxI7p8O5/y3zUXxvu6kXsB39vk/Pk5MC/2PPnvq40jWi4nSlfc8Ry0Q2UIQ7P/u/NC2J2Jgf5UDfje5ObBzEp+3BCazj54+F3RDMQmiQ5y6tH5VG3j+bU1vVhQ4BhM6jcnm/dX+4MsRZ4InFtTpDQnv41H0UVNlGE/8WOOXKiVJV6H90vw8/cQaKe43SPoFoS1ak8XcaLnxP9bPqVQY+AXUEy4GlP4s1pPs/w/DBXbmDX597csOFsmqC9f3aPYJ41U2xE4Cs9dG/H4HNCOpRZzPGYwlL+BE31rH5q6ONt0o/AmxHdASGjKc2nmu65iOraYmY032dMsT3s21DMsb85aVYvFo+djw/RjmGnV/jS+O90pho52vKwbc6Z+rArtNxKd2Gzoy6+aI0cs1E8j9yf79WRhRiXgmGvJUmNHN7Uh3FrhpSOfkzhQJav9P08g/g6OgRRt766m1L+e1Kqm6HrVrV/+YS13NLaqF2IO8IKqQ48lkR+AjjAVr0B6s30iaUpP3yCKBdIkec/TGbES+Uou2ExdTZVPQCgw60sRQ14eISmK0dkTvxVM MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 11c35771-f00d-4e81-1333-08d42829ffee X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR0301MB0745; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB0745;3:luyv4YlrfhC+sGdSFNRLHQ4jmBDz8bgNAUGiu6KvCI/OU8UeuppRwPFhAdqigzPL4kFY1m6XzxF84dEJJAs61EV/UtJpXYzuN94tBkaiTN7kCQ4GQhESjBTRx6EpE+Z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oft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095060)(601004)(2401047)(8121501046)(13018025)(13015025)(13024025)(5005006)(13023025)(13017025)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(20161123563025)(20161123559025)(20161123561025)(20161123556025);SRVR:CY1PR0301MB0745;BCL:0;PCL:0;RULEID:(400006);SRVR:CY1PR0301MB0745; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB0745;4:6Nb8YSCQ51ttb98m+UC2kRvW1PgoEVNIqhMRLFxhR5OPUb14MreHbO2Si4S/8pF6vf3eTixyldYyf7SVX6/BuNeYQgJ6NsF2GLUDnHuXmhGFsWc8ZkAfibsV2FQhLz4CtrUPRhTUZwEnT2Zkf6RmMAUk5b54BnVWakOIm7dD7h0HYiv/PihbH/EmuOHrWJs4oK23LRLjTi8dbRsEV7ZRCRHqenSGTI6ZYSVQb67Jl9vc+U4HtcOMlyM78Kfxd0f97H5aFaZVlpk4J87BiUofNYn236d+FCvQvLtgdI0fGNr1pzstHccnkX1O8tUDr9mENPNDtO0KEBzWknKalHpJXwIN8hcNuv9GmbZbLKIgZMykxy6boSsoHjc5TrGMzS4I49KQxxwuOnofcNh0iaJw2NXNa3ZSgr3aqm0Q9202zAmrJpRWZAjF1dolph8JmcaaPwBjscAMKjv3SjjmO5qaLUqJL8qqMkF1GqVOWCb1o3Nu3N9wbb5NtNzVUveTlMKlpEY81uxfjOOJEe8VKOGYIsKfAv9s2ezELOsCXkf4snO4RehPSMmC4/HicnRB4JbjnCARCtkxM7k5ZGk9F8HdTpDWD6pT0xTlDM54TuJF+9m45trDgRrz6fkOQX5zacNBw8yIxBiGUQIDgD7FKL/JV0XNstgKNAqV7ciX8esGb6wnj67K5HMoA2mgmTiCTlTJ2nWineo4N4zRDOfBGNprWQG4bN0wOjASfxr7NDxfdBrp0DdkRlBjLuBnL++BtWVSjNx8imb/STTGr/JKL13eXA== X-Forefront-PRVS: 01613DFDC8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB0745;23:OMEI4r1iHOESbrOWXMMXH9BXWpm4KeOSMqcoHvw?= =?us-ascii?Q?zpF4gGEHKVzK7PWQNoq/Od5AT3bZ3Q9v4Vl7g66IqBJhMnkiRy4kCYl6arSK?= =?us-ascii?Q?l/h1usAXfeeumFQohRPl6FV/O00RE/ryD1tbIGXuGaybt3DFSYaLtxIOq/oG?= =?us-ascii?Q?F8vfm/azgZTt9GX1+EpqBGrdamOpsTNz0R9UEwuyPSLYYI5PP8zBCFHEMtTo?= =?us-ascii?Q?zFpXwuvWjrH5ZyQ4ffQpoBs/FSPxatt3Cn7giCcqiPeAlN7+8BBoIWJ9Oxsj?= =?us-ascii?Q?0AJEAJlUEQmt91MpmhIfh3NPwcP2Ak1C1d2OuOGY6SyE6tBd71KzFoPz5vsh?= =?us-ascii?Q?F/oonQD/YIWY8w4D4LzJc/Y24w/NqtVOCfreykXczkgPOBbkTZ8B5/zwyudz?= =?us-ascii?Q?UUV5fDFfDQBd7tuJBr6Y72RD61dcAXIXa64hxqvN0fsUcBxXwmjaphf685w6?= =?us-ascii?Q?GsqPANsNkvJrMp6AshcbE9mvMuhI9c3jkf96pJxRFkF0ZxXuvwC6txJky9aT?= =?us-ascii?Q?AtrXNrgqJ20YuYMVFQEJ8BKkPRk9CQ3hHoeErhSwyY1yBePIjqkhhctLQL3u?= =?us-ascii?Q?wEMDLFEYZpkCGLUkvA7cywvmrpXhnp+2ql1Q1JtY21w4EF5ZFDA/xtVk9PNZ?= =?us-ascii?Q?dzYBk+Q62PfU/zocCvYiOE0qIKabCZ7WENAB61pVJD+8qVTtFNHbpv8U1stm?= =?us-ascii?Q?xQmQE5/NNwldXmGIB5wUdWVDmpc14X56j5t47spPt39yx9JkvfNc6WbmzMXh?= =?us-ascii?Q?um81FttoHAYUkpl8fgvSrpZkeCtY+zFScCPHhqw4yffOEwHe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ahYECA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2016 16:13:41.6305 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0745 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1547 Lines: 46 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", 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; + } + return fman; fman_node_put: -- 2.1.0