From patchwork Mon Jun 13 21:19:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tthayer@opensource.altera.com X-Patchwork-Id: 9174395 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED9376044F for ; Mon, 13 Jun 2016 21:16:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE54D27BE5 for ; Mon, 13 Jun 2016 21:16:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2DDC27C0F; Mon, 13 Jun 2016 21:16:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 69E0327BE5 for ; Mon, 13 Jun 2016 21:16:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCZCN-0005aZ-4N; Mon, 13 Jun 2016 21:15:07 +0000 Received: from mail-bn1bon0053.outbound.protection.outlook.com ([157.56.111.53] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCZCB-0004zt-9l for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2016 21:14:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Zg0GYW5Eh9LsW3A1L8v2roqOXtFcrdC8ARjKo7g4b0A=; b=qivkTxU2cj2WT5yRs+4dtjbtGAnRzMsqtvj/Vr65aIepvHrkwlDfKACeweGC8cZaQPYoutc4PjOWnWXBNK/dFQrspaslZKesjDyrx+9Xq9OPCAZkg6duMWw7wXixW+8KIE2FR8zyqynkxcuAB+3nM+HM4WlqZz8Pf/t5AwWprQI= Received: from BY2PR03CA002.namprd03.prod.outlook.com (10.255.93.19) by BN1PR03MB108.namprd03.prod.outlook.com (10.255.201.26) with Microsoft SMTP Server (TLS) id 15.1.497.12; Mon, 13 Jun 2016 21:14:32 +0000 Received: from BN1AFFO11FD054.protection.gbl (10.255.93.4) by BY2PR03CA002.outlook.office365.com (10.255.93.19) with Microsoft SMTP Server (TLS) id 15.1.497.12 via Frontend Transport; Mon, 13 Jun 2016 21:14:32 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) 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; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BN1AFFO11FD054.mail.protection.outlook.com (10.58.53.69) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Mon, 13 Jun 2016 21:14:31 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.207) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 13 Jun 2016 14:14:19 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Zg0GYW5Eh9LsW3A1L8v2roqOXtFcrdC8ARjKo7g4b0A=; b=qivkTxU2cj2WT5yRs+4dtjbtGAnRzMsqtvj/Vr65aIepvHrkwlDfKACeweGC8cZaQPYoutc4PjOWnWXBNK/dFQrspaslZKesjDyrx+9Xq9OPCAZkg6duMWw7wXixW+8KIE2FR8zyqynkxcuAB+3nM+HM4WlqZz8Pf/t5AwWprQI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.137.57.187.33 (64.129.157.38) by BY1PR03MB1484.namprd03.prod.outlook.com (10.162.210.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.8; Mon, 13 Jun 2016 21:14:20 +0000 From: To: , , , , , , , , , , Subject: [PATCHv3 1/7] EDAC, altera: Check parent status for Arria10 EDAC block Date: Mon, 13 Jun 2016 16:19:06 -0500 Message-ID: <1465852752-11018-2-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1465852752-11018-1-git-send-email-tthayer@opensource.altera.com> References: <1465852752-11018-1-git-send-email-tthayer@opensource.altera.com> MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BY1PR20CA0002.namprd20.prod.outlook.com (10.162.140.12) To BY1PR03MB1484.namprd03.prod.outlook.com (10.162.210.142) X-MS-Office365-Filtering-Correlation-Id: f73ed58e-0509-4e08-0d98-08d393cfb696 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1484; 2:lRB9BrUfqCktjFgbzBbvjh8WrfteuajOyEq6Y0wFnjw3THYlMG4SeSJQO2v0EywW3w8BnPebaKzMRvN7ejAs9qIo+7jzK6CSX+aoOItBYCgU2oIN+X1TD2MXeJCSrEpUnL++JD4SX9hRaCX2VB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J0gCBOa+kGQJRlIURlxKcyLc6RvEmh0JFfzdw6Qs6BCb1aqbRAAJS0jGx0k+v6uyupbdjsV7MgBiIkIoj6RSMEo3UONLX/izHQAN2Xhro7Qg1bFbC+MciHVBfZHBhhzzBWUfriHWnNR6YN0Du5c+4DPQ9fG9wFHgFZrp1w= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(80048183373757); UriScan:(80048183373757); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BY1PR03MB1484; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1484; BCL:0; PCL:0; RULEID:(601004)(2401047)(13017025)(13024025)(13018025)(5005006)(8121501046)(13023025)(13015025)(10201501046)(3002001)(6055026); SRVR:BN1PR03MB108; BCL:0; PCL:0; RULEID:; SRVR:BN1PR03MB108; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1484; 4:UTEDIgZKNIPE1v7h5P6aMUxa9qRcD0jjfEjGX/AqNKpj7S7eh4wEeaYW+GkHR4AGHYfSm1EYK8ZD6v1lmliixhSoG6v4ixmiNdwNSURGpm/rwfAnRPZnb2KnUM8Wmvp5r8kV2IJeSwyD3Hc5QKnIUs97txBYcC1NTZ7GKR3TzEmxPHl3ix0u7YGxiG5SxrkeaNHhydTFP2oapE2B8Hsh00a3uvT+a5bNc3SZ+uxWT8qpzc+wvoyyld7a00ba/uJ22XU2UJf6TT2+ls4hFxhU9hfHjPfyenNdHwWer6Wlwr8DfWGmKFyulPZ5HMWsZT9sHCMMxIsaCL9QMhFc2e6odk51eGwAFjn1Qm5z0j+ZpgAKKQt+pFBsHZPXIlaT7ZLWeKwf2/w+2DgH+JwF/LYoR8BbEOBUK9GlmWgebOoMpCLvtpQwYOeI0S0ncP1edNPi X-Forefront-PRVS: 0972DEC1D9 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(7916002)(199003)(189002)(2201001)(86152002)(42186005)(5008740100001)(50466002)(2950100001)(33646002)(106356001)(47776003)(77096005)(105586002)(48376002)(189998001)(229853001)(66066001)(50986999)(19580395003)(4001430100002)(68736007)(8676002)(107886002)(81166006)(76176999)(81156014)(101416001)(586003)(92566002)(97736004)(50226002)(5004730100002)(19580405001)(86362001)(2876002)(3846002)(6116002)(4326007)(5001770100001)(2906002)(5003940100001)(61793002)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1484; H:tthayer-HP-Z620-Ubuntu.137.57.187.33; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: opensource.altera.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; BY1PR03MB1484; 23:aUhlU8URmNj3OFOl2MUUNyf79MDAOg6wZ/Y1Sg2Nk?= =?us-ascii?Q?uCilxh6Lb+cG9sGsCgfcviBbDDD8ej78q75tv4L11AKD4pzNBTzpPW5818LR?= =?us-ascii?Q?hOIXFELuu79hju+37Fh+o1IOkTj+wiG1+oZ1F6dwrx3tV4crZ3C9Ei2WXNpz?= =?us-ascii?Q?DeCj12QzpDvuXfnfiqhJMQ9N9H8GGhSXKwgumgO9nyPboBc1gCT+IpyPIF/Q?= =?us-ascii?Q?2WUCxYiBoK5yR04yCnrgcvL7ZYjD89pRZY/wtTsWmhZ8DfGByQ0giBMgd4Uy?= =?us-ascii?Q?WWAhgB3ehjw+chlbdBzxhazqbLutJMqw7eCHJGC7eYqp3DGOh6RFHUkGdHfB?= =?us-ascii?Q?HjIeDQeEFCtYIjepTLe+9hvnY60liX6ZW6vjsHebJvCKtWcp2ZJcH7BeNZ8k?= =?us-ascii?Q?m/tIAbYC7d88gh/YWkAAQ5sslzs2R6nXlbANHbo/0cxi1xFW7uP+lFDyKfQn?= =?us-ascii?Q?jtcxP0GQQGP6PHHpEqd2uGR79WE6I1+pCopMaauQQuRMLx4HrQR5WuvZAl/c?= =?us-ascii?Q?M4rOvOzM9jM24mf9u96JIWPEcwVq6LJ+uC9uq3gR1A8jJZoEHqrwDruZM2Ud?= =?us-ascii?Q?QN7sW17rbS4tN9SAk7JAs4UbexCKEkfK8oYVqdxTRO9vgdQAdbD6e2zNTsWs?= =?us-ascii?Q?ji8XarUrySMOj0Vaa7S+XjXJrD73uhvrSeePMAKeHH06SZivQefBJJOzyUBv?= =?us-ascii?Q?eIvAz2PwmT0tYWME1TNXkcQzBH/suZ4y/shbM8FGsqubowtyQZg1SqOMQgLV?= =?us-ascii?Q?lfKzgKyrQuYCunnmvvMPWmBN+R/BZ3t1ubKzr7+0Bjm693xeVkDx3ROt4FBZ?= =?us-ascii?Q?6p8WOzXRLTln2q1SHKv6oD6n5+pZqKTzB8eqe5PoQdhEAeqroGGosmrh8+o1?= =?us-ascii?Q?8YrH8PJMjV0kLfhOCBrfNjCDW3FLA6CGdAgNAvJ4W8tG+fKavOGMAMyFYWzF?= =?us-ascii?Q?k/BGKel2kSFC71Gl69DRDmXEv61Al5kqhqe3HWWgcikXhGOVo56K4R6oCD+L?= =?us-ascii?Q?4qUek9PWiDW1VqpAU1z26V7fikckbVWj1YwbD+a5fT95on9g4JxNhptLrBCV?= =?us-ascii?Q?oNvNVsSQbOunr9aDSgnUT8wFgIi8ajF1pJClDmP5NTvNFV6WncKWOhvn0nsY?= =?us-ascii?Q?TMXz0QXn409rio6I9iQzdQNaAm7lRlMS+KgoVqX08wPfsNJTvWHgi9/uzng5?= =?us-ascii?Q?GG1CeHyoGNs/D/Lw72ULTtIH9dONHdCZAAq1fRvjzB/yzxFGsqyjE/j/jyKf?= =?us-ascii?Q?bF2wX5wKwuwcfBPP+M=3D?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1484; 5:gDm9SjyVWBa+khP+GcZW+d9Y+wZE8a9jgHpwv4Zdwl+n6oLBclKsoW7LfGvvuAgnno2NyEKyYiZowfs9YEsi/DeTC+/9Ji+Sz+w8BujNWwjItT3cS2yUuCrv5rPkcoFGzLEpp+esTOkF7aBK1JvO4g==; 24:/T8sAGdnFTHiYSYOQIEn01IPHSJGGt/JyMTZeepWUlrOk5bwe8vDGTX6o5RJJUi1RbsochL8faJpEIuITBWqTgFY1UoAb/2x0D3e4YdL0OA=; 7:rFCwEyXS65RvKFMrSyGx1jbGALE9ZetXRuOLE2ieCw/Q2DofmlsuroEdNU8acWCEzxfpHj1M/Q07oI6nJ3FO1/RZXH0soH2y7ktLQjmQsHeYZof+iI54JtQuxcIlxdWrKV65sSTwNDZyzBQ6r/8X/QProAFSr1I0myBjwEfOcquDGNfHGeQqtCbNgFKv/Ir2DKEMwHQWrcROZk+qAG/tSsr6Vg8Q+16OAxmcMk8X0+4=; 20:QHXhNlFjW10hiF2RXk0A27/IuUAP5ypCaPYiTMt4gVkqnPsoqUNiYbuDr1PuY3NT8JILcqhcKxLRNNIih0q6uoFroHzj4+zEzGoXnqKcmTa5gdS0aMUXSLzgj7+UlJtrF/jp73cxcboCYA9LDvyYQCjcgEaqME3Lt0tTbwUDGzA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1484 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1AFFO11FD054.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.236; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(105606002)(6116002)(97736004)(2876002)(6070500001)(76176999)(16796002)(2201001)(5008740100001)(19580395003)(87936001)(19580405001)(8676002)(107886002)(2906002)(68736007)(5001770100001)(50986999)(86152002)(4001430100002)(229853001)(6806005)(8936002)(50226002)(106466001)(189998001)(2950100001)(48376002)(47776003)(86362001)(5003940100001)(5004730100002)(85426001)(4326007)(77096005)(92566002)(956001)(586003)(3720700001)(66066001)(81156014)(81166006)(50466002)(33646002)(3846002)(11100500001)(356003)(7099028)(61793002)(921003)(1121003)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB108; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD054; 1:tfJik/gfJ98Ej1M8nWHPZuYst9jFSN66x3mM0xRp6lUQlchVIWWEnrPKFfquWScAsPCHaUHUSvxwO3mtZ1eCTcg1fknjFxwUBrHJvNpE7k/1htd5WawFQgyIQK3ydTGpiHGgzb/kPDCkDNZDd/xGQxJdBypUnVIKJmR3MHSwCdQ2mt9OzBc+VJ0frAX3M7Z/mBY14YZkznrGQBM53QFBYOY8LakLgkKBRArTVYkGyEN+sAE74kIQMuAJpZt78uuRZzYSptZoRFor4TRwimT0Qv8eJ6r08DcUA4Jmm0OBpfpaaRA2Qx5qwwO+P9kLLORPltkt2+2bz3wqxIyZASy2ImxPqGaGmUVZvISPNBFI2vh+J4X1ewCTkMeX8MWhiRrGZJle4Kx45xyodEMFtLYv/kX5fv/melahP+lm6Goj9lPdfXrqv02TvKXrmYgfvbVmWrStnKDZhS/710x8cgCuqN2x+gNnZWfZeNH+B8DU+T4gP8wp/iq8pZlGhlT9dqQZquKz9zj3WoWjZof7QNKwnP19PCh6CDBw2+CE8E5POZE= X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB108; 2:2H9fxsWBu3YOIMJG1oPbfon3RU+Ie2xGEI8SOq2Se/n9DGw7cV51vv1l5J1u57GBgDejAR75QecjGfBJH2XhF2igZX4g+S9VzJcgixgSPdXM7exR4SaciBIBqEey7KL4CcaEtzQPe9EYyBqr0oP0KY2bSIAb2/ikxxLrJae63dVg6PnU4OCmn39+9W/tbZUu; 3:77YFpeDDhw31GqvddNP3bG8fbMisXdKEY3EPob70jSu5TVWBgbkk8zRc7knXMIu0VGObM06qJEvNdH09qRKN+jjeLqj8hDhr+KQABb5WbQRFDHESExs9R0f3Vw7RNfmVFZRxDPC7bJl4t9tWrfyXn+VW8u1TcVGdaeSzkkHsvRvadyBM6oK0HHqMdG54nt8B0UBhVr2XyK08+rEdBe/+xbH2sq/LlRkxxXitvv66+sBtQFkNHYSpvxOTCPmUq5GQ; 25:HtAdKcnUmlzo2vkJjLrXjkew4PQ8X8Aag/h0iXRabUsmvyfvGeZLdHdbdj97Wc+VZpMxcoq3BmgeXc5P4vdgdkoD2xWYGqAV988k1CLcor41Kz13ROqe52Cu7LSbLoZyr7Kxun2rorGbfiI8M1Vmx8UwOO+iQ10JEz8FwQFkq2wyVTrHSThDTXBIiq/PPUIQcLRgAFl40VsIOTunlqPoy7W9e3VfveRMlp33QLx6HzWrzfy8hq6L9oBiljpoZU8YkToSLvWTFrb7Y6A6WRTAC49fL7MwH1PrHVgavX4X/he1XE2B4Xq0FV1s4wIBc2Gpj/yEm4wihGnklsuHYhETSs0HD+/oWalbFscWHWvlU1HVFaAJD8xvOHpbnMGzYGWRnkpWquakqSDa19bKfz5rP28pYCfI8daDCwC7d6Yw6Z0= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:BN1PR03MB108; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB108; 20:Bxc511ZLDQciKmRxTWOuo6HLqY8BLONQFdDUVw+zY2iYje3UxCJbH2RzfsCxcYDTCyOTua5WxfeDmi1MFmY0m22/NQRh9R3rzM4rigA3G2aol6zsWn12hSOX0tdtU+VrIDzJlGlVCoP4AYabuYDOKEh8OJQNStSmYQlOBNYEmY8=; 4:RmjBLHJhOB4JhCaloHheBsFmMsIvqichlDMd3Df4eccwZkVpwbHxfWdFV+X4mfytHxGk1C2Oy74BUI+0o5XheS84E9AjrUdqtBayJvMgAQXBKfqQpYmAo1O9kya6hSfmTcl6Salo2XszFOnZK4qLQF2UfgaI+kWMZrFeyY0JFvcHVhScY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=?us-ascii?Q?4Sq4k1w4oIA/GrWun+vcCFGSqHGr1nI5rpaI4YmQpsbajCcAKcxCoY7XwqTM?= =?us-ascii?Q?DW6UZS5niKng=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB108; 5:QAOiBELWKgGDm960ltAN0e4lyfYzhK5wvPlnDYBkOnIwBMwNLXuGr01I5x7dw/Y9xWmHb6LTXjYRwvQ8oNyWHDSDjpB6m7cv3fTLVVOyeUfIB9K2LrhznTrKf0KwmYoKpm6XJsJxN7g+Aq8QtGkY2g==; 24:PsR9o8/C+rJXzH9gMzqr3VLzzzjlmBJmn0GWLVei18LUVtDfxAbBGXjoMZj3KIeXFussB58TpIIfgidvw4QGMLJxmc0IapD7do2ifds0nX8=; 7:IO0fYrKij++Ppe6RRlL+vZE3LKNL33h0XhcKhyg8iz6L2iwGAgsczcBlgOswp60uNZMNUKnp4JD5nfGXK57ih16+ltOS0EhUCTRGdqB59FEdjQzEWX5gaieysj05Cm/k3CEHQbMIQ8TN7xTNGc6lr3w5BuND2NU9o0j75wRGSzWlMW2xl/Ee1uuUtIMM9obq; 20:nEmSqEmgVuce4bpwqUt2KHXsqVr1fzRHRsFAhbrAz31TxXbp8P6zAVVRVHS8x2M9H1xgiclaKmhlRnVRKNi8yiZg9HSSYNPjwrob8rUMXUYkiXD00q1830PD83+xghQbvJ6GMIzB2UE+EqWbiGnN6iUqlYWRZS0hU/CkQLk5GbM= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2016 21:14:31.5492 (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.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB108 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160613_141455_565271_37E19EBB X-CRM114-Status: UNSURE ( 3.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-doc@vger.kernel.org, tthayer.linux@gmail.com, tthayer@opensource.altera.com, linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 v3 Move check into validate_parent_available(). --- drivers/edac/altera_edac.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index 6f5d586..926bcaf 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -1125,6 +1125,20 @@ static void altr_edac_a10_irq_handler(struct irq_desc *desc) chained_irq_exit(chip, desc); } +static int validate_parent_available(struct device_node *np) +{ + struct device_node *parent; + + /* Ensure parent device is enabled if parent node exists */ + parent = of_parse_phandle(np, "parent", 0); + if (parent && !of_device_is_available(parent)) { + of_node_put(parent); + return -ENODEV; + } + of_node_put(parent); + return 0; +} + static int altr_edac_a10_device_add(struct altr_arria10_edac *edac, struct device_node *np) { @@ -1146,6 +1160,9 @@ static int altr_edac_a10_device_add(struct altr_arria10_edac *edac, if (IS_ERR_OR_NULL(prv)) return -ENODEV; + if (validate_parent_available(np)) + return -ENODEV; + if (!devres_open_group(edac->dev, altr_edac_a10_device_add, GFP_KERNEL)) return -ENOMEM;