Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933262AbcDYRsB (ORCPT ); Mon, 25 Apr 2016 13:48:01 -0400 Received: from mail-bl2on0070.outbound.protection.outlook.com ([65.55.169.70]:49807 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932893AbcDYRrv (ORCPT ); Mon, 25 Apr 2016 13:47:51 -0400 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=pass (signature was verified) header.d=altera.onmicrosoft.com;vger.kernel.org; dmarc=none action=none header.from=opensource.altera.com; Authentication-Results: alien8.de; dkim=none (message not signed) header.d=none;alien8.de; dmarc=none action=none header.from=opensource.altera.com; From: To: , , , , , , , , , , CC: , , , , , , Subject: [PATCHv2 1/7] EDAC, altera: Check parent status for Arria10 EDAC block Date: Mon, 25 Apr 2016 12:52:42 -0500 Message-ID: <1461606768-14404-2-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1461606768-14404-1-git-send-email-tthayer@opensource.altera.com> References: <1461606768-14404-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR05CA0052.namprd05.prod.outlook.com (10.141.20.22) To BLUPR03MB1476.namprd03.prod.outlook.com (10.163.81.18) X-MS-Office365-Filtering-Correlation-Id: c5477cb3-154c-4ea6-b7cb-08d36d31b6d6 X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1476;2:LGVXhP/cXyPLbzUMCqjScv+IoGySD0NVoMxzcadCElABilY5p3J61h75xTXf8M/kEnqrI0Kx0CWwMoROgzOWBOa8dhv9oZdojNRwJ17bFnFGRrBcR3Ibz6T5l5SA1ndAJcqZnoJMGart7hc35wakCr50WgGHvRF2egjzakie7aE0zjMZ3uD1EjdodPxq6uxa;3:0WL/WVJLn8bihRjOoOLXKv8zklmGbmwOkD8zwwZmcNMbp6O1+ji+HmcjWvHyuHYfjrjFePTtddPquMWMa0UFSdChgupr1bPm/rq31BIZ928Mi/ICKTL5yAO48l5aWgvk X-Microsoft-Antispam-Untrusted: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1476; X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1476;25:5n6yyK+kEYDKf3VWJfwAnSEmAfMIX31exJRnIzodBn2R/3NuAx/PmcfZGubq3JBvpSoQQUo4+vBriqx6vEqDvr05NUHOzr7posceSlPqaTmjPjJvkegbuOcrKKdCzuD9eEBXsvivMN7enUBOP1482qn90NCsngnvEyShxARboFE1Q00ahT+44OWd49FIYQMS4oh3r8YFmRUs3OcKB4Nr4BfeBZuI9rMwYvu3Pw1f6nsczqAEoIGMc+iZl6Kl3QojFsOkB3UPCLiin+n0+9VwaYwSD0VyDIeEmMasGYeZICEIWBO8rymTqQ26vZcY4758D/IunkdgS+JSrXef6A5b1q5ASK5EKL7kuJvBWaBanTFmQI1MpJUMwmxV/RqfI0xkuWUdu4ygSvUN+1IiJaK4uak8ZHhrSn9DgcWTMysxqHbf3P5GSW6flxj8MFM+0Z+EUYCoNDtnnuFM/2h2Y7zlxx7JDTb+85rYzBOmDPGW3TdVycj7j1A7rsGyVvRUljY0VHcq6YpQjOxjQ3Z3/upN9U9SpzEtgCSDjfpqkIDkXgvWDWRQFPjUuYOD8epHYgbfj+8nDIo6pqPjQ+prRV1VSKtlqOb5pi0Btdr9HxEayh5LfEYZ6U2QPq5C7X9/dyHJE+bKjOSVJgQK+r5gepQnvg==;20:782PBiW8s0o96j87Cy6JW1fJy6ZmtsYdRxknT8uok9+gGve4HHuPbpqgQA+7vuOGvKpctilA3UjjquwbZEKS/2R4I08pCOVorhE3pd3BfkKPqAzkMFCvl3LfZncgc925vn3sSGDoGxY8OHXClzVEIY1Rmb+3YUXjfaiDShlGsBI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:BLUPR03MB1476;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1476;BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(13015025)(13023025)(13018025)(13017025)(13024025)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:BN3PR0301MB1284;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1284; X-Microsoft-Exchange-Diagnostics-untrusted: 1;BLUPR03MB1476;4:lNrVjRakxPgbJSSc49kf8yBxzpKCulIrrji8eheMcP7FfN7PDjd1RX8p9e7XoQx9r5eBuxgiaeSXp3T62uaqUiwWsjzUamLbOs8jnXy+J2nWxM8IX+xnWxASSuayKfC6TePQnPpiuBbS1oNKRaftY5jY302JmpAaFkXNZiLkFhha2QU4nqEBZdv576hlLi1STZT67JbaaQ+YoG6kAiISe6gNLcZAMlcvh4e5n00eeNKtOm44/eDKvQfnMuTgjnXgAXpyHvnxZe9pIu6/g/Oyn62IXdQiiM0/UzkRMHnXgkWYG+/95uG7OIdijuwgqeRyj6Hq1e4PgYkeTUNnf0a4QqhylGQ9XY5sIz5LA0vWzaGqFfuA2XQpUS6wVxtfrZltsDd7WC/D8zGbMqW4kVVO8pRcm2eP27rpG7TTtziMSkw= X-Forefront-PRVS: 0923977CCA X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6049001)(4326007)(2876002)(77096005)(2906002)(5004730100002)(42186005)(86362001)(48376002)(229853001)(5001770100001)(66066001)(3846002)(6116002)(1096002)(189998001)(2950100001)(19580405001)(19580395003)(586003)(92566002)(107886002)(5008740100001)(50986999)(33646002)(4001430100002)(86152002)(5003940100001)(81166005)(2201001)(47776003)(76176999)(61793002)(921003)(4720700001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB1476;H:tthayer-HP-Z620-Ubuntu.137.57.187.33;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1;BLUPR03MB1476;23:OwgvcprHf7quDZe+d/rMX0WavrFEY4Fl/bEy3IhEz?= =?us-ascii?Q?r/BzQgGhJ2bQQtdrn3Te9mSjqHFttG7ayFmS9skvArmE88srlSmHsP7Dlndt?= =?us-ascii?Q?KzRkA7Yj0YBG8jhy5wU+n4eQtAhYkFnqDkhPfY+O063kH4DiNGyb0B8NscMM?= =?us-ascii?Q?THacHDwGXd23ipEX0wiYTpeB99rbMiNoUMlc0Ftst/+6KWLpuX4DizvUA7Uh?= =?us-ascii?Q?T74z0BlM8zmcSaaPi9qLQ3DgV+HlREE4dNpq0bqMiZaSZciMNsBr6ElnV3V7?= =?us-ascii?Q?rf6vOKKSZi/PHtD6Ess4jJNRK0iOFj2Nj/FTq0iznNn01OyDvFxw+F8Gq3n+?= =?us-ascii?Q?MfxxDk+tw0W8NaRjv39BgZNiSIz4qALnHiwHDje/FylKQxAfB2Ox9uz+DS3n?= =?us-ascii?Q?oOsiO/oK1gzKQq7QXx6Ukj7AY+t6zz7Rpvb7X/0fzzTTth5POz9DX70xLWMK?= =?us-ascii?Q?aNC/OfxZVo937GFGy1GT4b/q4vJxCbVDgI8Ni0uxZwyN+WrwEOZXKaz8c5nO?= =?us-ascii?Q?2QPnnWTMfmMP2EIM0HAp1awODV5Noesul4Vs2jG8ZqksPu0ebiZozpDCp/u0?= =?us-ascii?Q?LN6fCxivVgxeOTEC9VUfeaQB308MrhWMjCm9/zL1gDDx2LxcGCFqyIn1h/2x?= =?us-ascii?Q?/NROPgVbWfK0H9tukNA0SvLGj9YLfyHXDgmdaqosTnrcSGZk8thReopqaMHK?= =?us-ascii?Q?YP5mAm3WW7GTys53ZtwgndtPZWK1/0UqyZnvm3SDzC8TGhqMZjB9ylel5lRw?= =?us-ascii?Q?+4uTfj99x8OS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s+h8FERc1dc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1476 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BY2FFO11OLC004.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.227;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(86152002)(229853001)(2201001)(48376002)(189998001)(19580395003)(66066001)(19580405001)(956001)(1096002)(85426001)(105606002)(5001770100001)(92566002)(11100500001)(2876002)(107886002)(5004730100002)(86362001)(4001430100002)(106466001)(47776003)(4326007)(87936001)(16796002)(33646002)(586003)(5003940100001)(50986999)(76176999)(2906002)(5008740100001)(3720700001)(2950100001)(6806005)(1220700001)(81166005)(77096005)(21840400001)(3846002)(6116002)(7099028)(61793002)(921003)(4720700001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0301MB1284;H:sj-itexedge03.altera.priv.altera.com;FPR:;SPF:Fail;MLV:sfv;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11OLC004;1:pqGOimI7+8rB5OaUZlhHDjau7J1PzVjcm/JXHItw0kp+svg8BnBO3jkH439X5oV7nBYA2hx2oxQs8b6F3TVDDOJGOiVC7a4q4VFrm5J4kL3EQroYplSKOoBjWTdxqfuTVt2r9SaMGfYRTV99w/0O/FB1sTTvpeLJspoXCTQaRGDs2WfykxfS0hPb7q9d3P4gjVcf9l/kdhgBdcdhRrR5iiol1miAbwWtENVU+EoV32kdgrYRLZijd9CORR5zs6WL/4rkxOEq1EwDq+y5nX05tPOEKVJOFmFUKt8dHjUMMvqMKtFXOIOktlTfOJYTUEh2NyCPN5kAPA0LBIWNXlKOBNNTTyu0V8tB4YbG9CSWI3sa6MuRYLc1lLjiC2vrzu3lUDq5QnXFaPQC9r0t0liDygGRmVZxrXMnjVdkgzLiuv2zmXzjJw0ZxBihwJeMzIfMFg0ZRUULrf6I+ZQ94VHjQ4rGx4RtFdUOOCN8BDYvofwk76r0kQhWVRWXlWJoFSKrfYQ0TkhqLGJbjr6QHd1WFiCNCjv7/5zfwo+o8YZazqfvmdLYIZiEURMMjtqixcrR X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1284;2:wsCbW5hHJT37BTemfiaxvlxY7L1JIH1Ahkg0RsfDR0yiuAxtianv1TqRIokt7I88w2OnS+gJihoJ+RrFp+HAYCOHCfBAsOca9lCtawm0WHoNT3X/RBlZ7mwhHPVl4ceTvJOumeblEi6emQjFAC25rxBI0JZD7gHn9sXyM4cHtVRcrrPmUNQFFAnMfnf6m23r;3:bGLc48mrXtCLmSgcItfZUxhD25j1XpOP7V/GBzaFdVbEX8pnBLsl11gJBpiVtV/zPVLcWI9LLLfPJJF6DHFM6pD1XYxanNl/JS2oI6DYhI1FUb1wVsPe3MDzpu1yx2zu4tiDTz8+S9zmCiKNrg/JUorb8CJcyTi2c2YaTF86EgvXi5AEcEYd4FPWPE1slC/DoW6OfUZrfB8wU0Whp6B5Sb2P0+cYK5V5Nj3L91zUvEJIgQPvUVTjkqViCs4a2vTB X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(3001016);SRVR:BN3PR0301MB1284; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0301MB1284;25:Cfmw7LH+lw03YViu4X7V0GYCLJT3NZS0u8uPhxoFwkeJt80Y2Z7gkVYSCrzyGPltGHqv8ZU/FuLLYPzSNrtlUFbyYp7uRnWO1ysG6L+Xl3jrCbclRInebxkoXn+OPf9upGfc1512//lxxcufIYp4I42QbZSwuz+xS4K4p5sspqJMYImWsZe00BAzxP1Tb+v2GarHFNMTn122Eqna7apIz2M8UpaxhsZI5IiXtNvtEC0oN36gewsIPvg9jGOyZjolk8kVwH1UyVHPqUz2pTz1uT0yxzbhiU410m0MEEwBDu1Eq2EUaAJ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eSXiKU9kY+5r1 X-Forefront-PRVS: 0923977CCA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0301MB1284;23:6um3ege155xDx9fgLTnpO4zuiUnZNbSvnFj1l3H?= =?us-ascii?Q?ID+bsTeXi8GI5k16Wb33TjDOFtaIpefwnS8z/qDyV3cgKZrRnxcuNJAoWgf1?= =?us-ascii?Q?x8jM4Z8ZVnLoSZtOKBgAF/edOdAQNHVVGxog4L7pAcneyIcL8Ug+U1acL5nL?= =?us-ascii?Q?N9684VZh9iasOpv8XEpgJNYi6Jq/9mnvWD1O3HFJr3s8psJ8m6ikgq/AKpRW?= =?us-ascii?Q?bWL1Ti/JE46TBE9lRBDeZiKbSOsg1f971nMzP06EE7Uej27Co1uOPpFhsWn5?= =?us-ascii?Q?Dy4Dh5iE3B4tFsAJJhs+T7/C3Cw8y1csher9Fg6XzVlJjoii0YBnKscoTaBi?= =?us-ascii?Q?bYOn6LoAj7jqH2xmt3hPyC80g4qHxSFRag+N0nn0IkCtU5Oq5Re5AvT7eZSZ?= =?us-ascii?Q?m5ZwmRUVoTnuZxdsPOu5G/vvfrfpH+o3mb0yHaU9u3ToCOKTIE3cB5cXpbj2?= =?us-ascii?Q?meQclrjG1iHo17G7UgFgDEnmuVSzO8c+26ttRI8LHXQZBiXdCbtadTuLITJf?= =?us-ascii?Q?8xgS8GupnDBvbOOWOzBGStzHmXemSeVRsfav7FnjKsel2G8aB7jGp1gwWtmI?= =?us-ascii?Q?K6UChJOSCEcgWmzEZ/McIX7O9qm/L29BUHJZOu8WNFleztZ0IoYZnU8/Ast7?= =?us-ascii?Q?BnN6oSTnhvRiS3mbHUrAPE24ow1SAt2PQTTPUdLFHNVPGa671M2+vtZrioYU?= =?us-ascii?Q?WSB7f15dEZnVNmy/5q03FSa1B4LdYknNd8TNlMGwdXwczBafeyqhLC5nv833?= =?us-ascii?Q?P2CALinLV/05JsZvnA7cX6U1Xrzh/EqgN8xJ6dOjSyuXl7aqikVpn7jK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boOUR1WYoZDdYE2KZb7hhs0638haQt0BrKoeWmaNlAq75s5mo/pIfEhbIKBapu5+l4MgG7q/g8u5WmU2LWLg7HuiTZS2m2HG4ZEJRgR9gpIVv1CWfu81xL4NtPs1nlVrK8+7cbx5HPpDBGInYajqmC0NC3N9ntbeCmBTpcWo0GdzKELQbB6jvWQ==;20:K+Kib6KITdyyC6uFFxZmemgNbIVWBZbJ5tA09bcM78PYeecG3ls12oFOY9XaO/KFbXkoAxCFbuMdt/RB2d8ueCS9ZXN845cSNk5oJw8mIikJuqHSMAfnhwjAY/cfRV2gUDO1d3ywX6vJ6Y4bMuls+hZlPsq4UycXNs+yuMMKnIg= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2016 17:47:47.5382 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.227];Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1284 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1348 Lines: 42 From: Thor Thayer In preparation for the Arria10 ECC modules, check the status of the parent in the device tree to ensure the block is enabled. Skip if no parent phandle is set in the device tree. Signed-off-by: Thor Thayer --- v2 No change --- drivers/edac/altera_edac.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index 5b4d223..b127e77 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -1108,6 +1108,7 @@ static int altr_edac_a10_device_add(struct altr_arria10_edac *edac, struct resource res; int edac_idx; int rc = 0; + struct device_node *parent; const struct edac_device_prv_data *prv; /* Get matching node and check for valid result */ const struct of_device_id *pdev_id = @@ -1120,6 +1121,14 @@ static int altr_edac_a10_device_add(struct altr_arria10_edac *edac, if (IS_ERR_OR_NULL(prv)) return -ENODEV; + /* If there is a parent parameter, exit if it is not available. */ + parent = of_parse_phandle(np, "parent", 0); + if (parent && !of_device_is_available(parent)) { + of_node_put(parent); + return -ENODEV; + } + of_node_put(parent); + if (!devres_open_group(edac->dev, altr_edac_a10_device_add, GFP_KERNEL)) return -ENOMEM; -- 1.7.9.5