From patchwork Mon Jun 13 21:19:08 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: 9174401 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 7E6716044F for ; Mon, 13 Jun 2016 21:17:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F07B27BE5 for ; Mon, 13 Jun 2016 21:17:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63E2D27C0F; Mon, 13 Jun 2016 21:17:14 +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 ECB0227BE5 for ; Mon, 13 Jun 2016 21:17:13 +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 1bCZCg-0006Pu-Vl; Mon, 13 Jun 2016 21:15:27 +0000 Received: from mail-bl2on0071.outbound.protection.outlook.com ([65.55.169.71] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1bCZCS-00052K-HS for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2016 21:15:14 +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=DSExzpVPXE9TmGZpeodeZyyNHZrmcFIrr2EgLqgsnpE=; b=YvMsUeh106jSS5BbLfmGyrivDAmk9KT8+5T3Dlm/mwBuqbIHI/ZqpwCskPWAJH4sL2yNrvRJxux8aDoLQfS3FMtq9m31W3VNzmPADxPwsnvDS5vjVOTAdtWzZp5IMOP4TUU4/N7k0gxf05pUysKpSRVXUBq2KgxALJCXAx1u9jU= Received: from BLUPR0301CA0006.namprd03.prod.outlook.com (10.162.113.144) by BL2PR03MB097.namprd03.prod.outlook.com (10.255.230.15) with Microsoft SMTP Server (TLS) id 15.1.497.12; Mon, 13 Jun 2016 21:14:50 +0000 Received: from BN1BFFO11FD012.protection.gbl (2a01:111:f400:7c10::1:106) by BLUPR0301CA0006.outlook.office365.com (2a01:111:e400:5259::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8 via Frontend Transport; Mon, 13 Jun 2016 21:14:50 +0000 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; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.227 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.227; helo=sj-itexedge03.altera.priv.altera.com; Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BN1BFFO11FD012.mail.protection.outlook.com (10.58.144.75) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Mon, 13 Jun 2016 21:14:50 +0000 Received: from na01-bl2-obe.outbound.protection.outlook.com (207.46.163.203) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Mon, 13 Jun 2016 14:14:31 -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=DSExzpVPXE9TmGZpeodeZyyNHZrmcFIrr2EgLqgsnpE=; b=YvMsUeh106jSS5BbLfmGyrivDAmk9KT8+5T3Dlm/mwBuqbIHI/ZqpwCskPWAJH4sL2yNrvRJxux8aDoLQfS3FMtq9m31W3VNzmPADxPwsnvDS5vjVOTAdtWzZp5IMOP4TUU4/N7k0gxf05pUysKpSRVXUBq2KgxALJCXAx1u9jU= 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:23 +0000 From: To: , , , , , , , , , , Subject: [PATCHv3 3/7] EDAC, altera: Share Arria10 check_deps & IRQ functions Date: Mon, 13 Jun 2016 16:19:08 -0500 Message-ID: <1465852752-11018-4-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: 40171f22-100b-444e-fc18-08d393cfc18e X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1484; 2:+FAQOPJGC7kO1KxHV/By0roa4cDpExhmywBzTE/JY8sy6EMJ8XqL+Sss0U5iLT69i8XppaJmk8j62edoQn5eGnd/tKJNJBDA/aD+ZXekxRQpLrbXtQwzyvBHYOG1xTrvgHM0dmzIPfhVPqp/2T/dvFZPSPI/YjqvgQIZ1b06FrlosMXS/TXXVf2bm8jtZjmJ; 3:ALEH+eTSfWniNss1lNHlbwQUfkIzby/7T0+YSa5lqZ5noGVIUqFIpQ0excXV2GS4SWZHuxT+JVmC+Y8jI0tf6aVDa9zdViTFW4uxqhMZNts08QeumtyB869W/arjT/c1; 25:udq22PpgZOyCQw4CdSbo/xalhT/tCON3KjTnQqRB42WAN87UOKL2Hltb76JX7Awvmg/PFo5M8mjxdZ4jS6lL6O1kk4OsLyo0EyKG5Vuo0BdDAuvvEfecN7GQ1TXUAKbr97j/9e+t3YxseVNbW/MVaXUGNCraThj5rCF59KwgDgrx/TLyDowLTBOKs5yamarAoqfkopBaTXr16dt/E9n6VH1IdcqB4PttQFcpArAzMTXxJIvtETwVad7FQQNFDn7oDTsoeyjkCKKehiMmScvhKQe3Ta64nmr7mbs14UXOtXHgEavHRea2ZQ3nrlOxjiuGTRTyZ7zsuF5Hvqh56qUQt+FSPEyFEsJRFYFOp6t4MZhoHXBgeLldJCF4pw8UNt3YSKbWjZdfeAUOA5ux6zz7fXViDYBnnLs66qt66VSLJVY=; 20:Mt8dkej8/MzHnVzB4pJeOpmy5lC+GWbAUux5ySpmYnZagPKDDRZRVRoHh3Rn3qySLdyETUdVUlYemomdumnZeO1TYMPxpbVxtsdWejo/VyUkT/6zVYbgH48EXJQIUInJwJjcXEnKv32HoJnS9DJV+gVaxJ4GGo8YW4x2+ud6YAs= X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1484; 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)(5005006)(8121501046)(13015025)(13017025)(13023025)(13018025)(13024025)(3002001)(10201501046)(6055026); SRVR:BL2PR03MB097; BCL:0; PCL:0; RULEID:; SRVR:BL2PR03MB097; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BY1PR03MB1484; 4:P/cbROfHtC8BAPsQPb4Y3ntKDY9b8v1xiBJVTEcRPzK6l2CxTrZcFdbikcPMvYd1Hruxwfs2YtbXHkwN4rbvo6zez/3M85zO/1I3cEZux7LFJZFuiclstK2hX5nehcQ6Er3igXeVinE3fSpRiiK6gFH8/39KfAPlN9MoOUnf9d1MrWHvdOlXg+OuIzQvxeGWPCr7dTgcdiZNz5we8W564VomjJtrNqCQdIhfd1KSWl0WaZ1xpcM9P6029yIQkhZXSB6fFVqmVLciPBxuIV2EDgaztQHAQr1xRtwdmtDOL0jDkD0FNzoSSfbEOdslegjqlnyHYg/QDg5ug4/UR//5NYP0LQJ6AwvewGMCM/M/blXO85LuxHrZd0TLxyBS9lHYuyslK4P8sEFcWr4kMo5R1ZMdqJSiAU0DWh8szb574D1XnWagTQsg5BH12HcIOvvQ 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)(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:rPVyhEBDAoi4T/7ZJrktaHiCU1XswxohoyJJ853ma?= =?us-ascii?Q?pyj3rIy29rkDT8UYqjBG/DdguApqN1D1JFrIVd2i60iOpfSCJJklzlO2LOuH?= =?us-ascii?Q?AmgZn/QF9HMz2TYME8Y6afnvP+p4lAXy0oi7ftI3OsT/mjkedB7WDZoO/Liq?= =?us-ascii?Q?qM/okHjrjGggjx7pHK3NQdc4kYki0T/0gAkdeaBMIu04W5J8P3DAv/EysGj1?= =?us-ascii?Q?El1vEPXCd8nwkjLnQxlpmesezE5GLBFkcVu0UKzmcgeW+gDjso5ZiAN21zz2?= =?us-ascii?Q?d73kZlcfwqcdOWTdNx14+YfmhzC5T5GMLBwiAShM4HEwGNtbaaV6FB1kS6jn?= =?us-ascii?Q?t4iIFCLfcTtJWwwocaL6eDRBpZeZhs1hF9pEBoj/7H/rFtII+lPluLXoyoE/?= =?us-ascii?Q?dN9u0p0fiRmeA1eYPbJxsMhU7MymrMqKSOS6DKE8tMHRFiKTyPmmMuVa1uz4?= =?us-ascii?Q?1XjjyDnXVlSH8NO6MSTGfPjDfJeWocELZeeS7QiJESAgobIhLtehKjPTGHhn?= =?us-ascii?Q?rTadzwQz8CPFK3WdKPH3W7WS/COqRclYZGrW8HnFIXVPXT5SFReAQirx63MX?= =?us-ascii?Q?D3N99yhO52MVGZ/bEbUTIHbbJhG9h09YYWMQ39PY2ZY0WtZeb4gNpVZGi0/U?= =?us-ascii?Q?imex7M7tZRq5Ksga+WWUVypQoUfH+/ymHMTjE3dap6GCblWyGu6GDvrHngcC?= =?us-ascii?Q?F7Xd6bVCQzyBZgTAw0ipw1mmQKF+xp+z4XHzuSsEgPM/4H4ZVVeM96E6krRe?= =?us-ascii?Q?PLPn0XniJHrbFFRYI78eFm7NoYo8ukrNT6LaHDdpN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B1YCgG6ztiyS4WjudzjcrmUfAkJI=; 20:ITmvEiEBifMUl+0PGh3IKQmQL2dHW+JfXNS/qDoGsU/cny/Pg4Fww5oX7yF6yfDrrVRXjaS8XGqIPc8DXBgbWnFuUbt71BWKhg+9I+PPKNOX9IEC1QZJsDmXnTUljwPrB55sAI5j08njE1XFtfVGSjx/SB54kWvRzaFj3dF/3vo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1484 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD012.protection.gbl X-Forefront-Antispam-Report: CIP:66.35.236.227; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(85426001)(5003940100001)(68736007)(11100500001)(16796002)(48376002)(87936001)(86362001)(2950100001)(107886002)(956001)(4326007)(8676002)(47776003)(2201001)(356003)(6070500001)(5001770100001)(97736004)(2876002)(81156014)(81166006)(189998001)(77096005)(2906002)(5004730100002)(8936002)(86152002)(66066001)(92566002)(586003)(33646002)(3720700001)(4001430100002)(50986999)(19580405001)(19580395003)(6806005)(6116002)(76176999)(5008740100001)(229853001)(105606002)(106466001)(50226002)(50466002)(3846002)(7099028)(921003)(4720700001)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB097; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD012; 1:yVKAUNdWXpGKqWqnwznwx0PcrtHtofMAA1lgtcK3BluglB+Ba0zUhEAM0lS+0hXWP4uB71PDZfLwAi7EYIQ+CLjGD9EgF6pXBki7vZijcgWhhcCaYTTabPBaR9cIruEy65FgWGFJ18jsdtc8Wi69UVz45O3OQSFo1HJ0U9imj9unGl+fkPzEdiSPR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IMqic+lAVFwyZl5Az7DEaGFsb+BYgjp9pxuuHz2jLLgpJ03uWVCO8Sm+aBCc+MqReuT83JG6y5wWnopVgK/fgzD5uG567eR3CnzJqh0YkvbAXQDYAb5B0FQ6SuYu1GSC92t2JuyTN1DJiCLuhi8fqn7SfMQqZ+xXCLxjTm7T6U7j6AAt9CDdYcQzeSCsG2mAFa6JbpGWLMYGXcykKPKaRg= X-DkimResult-Test: Passed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3001016); SRVR:BL2PR03MB097; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB097; 20:o657I9XeEoZHaKv7GQdMdiSSvri1ycKW0f+ucKfcN1AZJs4IDMYOsJ+8R+n5m/wfGtwRyY+R2H9ITtIvOHnTid5JoGheJnvronvS3aMGl1JddpQa59gycM56N1g4nXV5zq2BpyCsGsyDxmaNtRkXKY+OIs9+z2o5LJDKB8Fn5N0=; 4:BHuAAt8Bi6Bqxzg40Q7vCAz0QlehSzoaW8VEj3gBzxM9qBTZqYOP20WloNQ7fwlNTaOiojXTSHbrWyjGIO37BJHiSMzfNt8uxRHv1qRzZfhJcC0q07OyJI5VxG1hcmCpkgUpGm2YTh7EpwHcLngN1hzA9g8DlpohiS2ggPTENnBu3+2ohahnEeqREVAkZUq1sLmRJXiIvgSANM/D54yXQhii0L3AJz5bMx34hbJa3+yAQO4kTWDaSC87miP5kUqkXCdEEP3k1OLtewpfVT07g9jGGsa26dmxNoJNDRV+Dq6Tj1Fe4m/sTyfRbRqjlQ/hLg91TKEA/cFC8DNPPP359ceXSEd3w5aO1yTt9FBfhwtZytuek/6cPhXGkFp7E5MHh9yeBggCPEA1IF1xdixtuOHQskqOkgSLGhXCZ2nFxoYOCVq6+IyKDa+aNQw9IAWwexXyCmPI+gNScrf4PlbaLwkqn9lQlpoIYSKq4TmcJ/tGKrOZd0su085SIvuPft9RnhQYnHPJ9Srm0mi73S7jIg== X-Forefront-PRVS: 0972DEC1D9 X-Microsoft-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BZGGz0CKaxGW6H90h2KvVaBnz8wC5gmQTs7pliT/eZu2xa5OiL9U4hl/Fg+wWY2SzwpsvMHG1cgMnnOnq6ky77Ah/GbnimZOt5Px3RcchtT97OvseUFp6kiGpTEm9Yy3PZ5DwH1WY8WoiPCfSPzSEI/O0dSSKeghpKUV3+F2dSJsDYNY74tWWx+PoLD3+SSCgMYLC8C+ViC/rNi68IvxLw==; 20:gUdaho8dH2yiRHTFQy3b9v1tkEMPP3Pdlnrpw2dNurOIDzrfv6ohnnphSvV20u3ZgqL92vGk/zF74UELsSQO816GynNFQzkK9iH/ZmuaNVa2kgjb+31ZMDdueyqKLnvSc9DygD0rgE/CpGEfH8N/EjJ7/WMienpB1/vbHJodw/0= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2016 21:14:50.0670 (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: BL2PR03MB097 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160613_141512_927022_3C60E437 X-CRM114-Status: UNSURE ( 4.27 ) 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 additional memory module ECCs, the IRQ and check_deps() functions are being made available to all the memory buffers. Move them outside of the OCRAM only area. Signed-off-by: Thor Thayer --- v2 New patch. Move shared functions outside OCRAM only area. v3 Change title line - check_deps & IRQ. --- drivers/edac/altera_edac.c | 62 ++++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 28 deletions(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c index a9d8fa7..a3f490d 100644 --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -825,9 +825,9 @@ static struct platform_driver altr_edac_device_driver = { }; module_platform_driver(altr_edac_device_driver); -/*********************** OCRAM EDAC Device Functions *********************/ +/******************* Arria10 Device ECC Shared Functions *****************/ -#ifdef CONFIG_EDAC_ALTERA_OCRAM +#if defined(CONFIG_EDAC_ALTERA_OCRAM) || defined(CONFIG_EDAC_ALTERA_ETHERNET) /* * Test for memory's ECC dependencies upon entry because platform specific * startup should have initialized the memory and enabled the ECC. @@ -848,6 +848,38 @@ static int altr_check_ecc_deps(struct altr_edac_device_dev *device) return -ENODEV; } +static irqreturn_t altr_edac_a10_ecc_irq(int irq, void *dev_id) +{ + struct altr_edac_device_dev *dci = dev_id; + void __iomem *base = dci->base; + + if (irq == dci->sb_irq) { + writel(ALTR_A10_ECC_SERRPENA, + base + ALTR_A10_ECC_INTSTAT_OFST); + edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); + + return IRQ_HANDLED; + } else if (irq == dci->db_irq) { + writel(ALTR_A10_ECC_DERRPENA, + base + ALTR_A10_ECC_INTSTAT_OFST); + edac_device_handle_ue(dci->edac_dev, 0, 0, dci->edac_dev_name); + if (dci->data->panic) + panic("\nEDAC:ECC_DEVICE[Uncorrectable errors]\n"); + + return IRQ_HANDLED; + } + + WARN_ON(1); + + return IRQ_NONE; +} + +#endif /* CONFIG_EDAC_ALTERA_OCRAM || CONFIG_EDAC_ALTERA_ETHERNET */ + +/*********************** OCRAM EDAC Device Functions *********************/ + +#ifdef CONFIG_EDAC_ALTERA_OCRAM + static void *ocram_alloc_mem(size_t size, void **other) { struct device_node *np; @@ -882,32 +914,6 @@ static void ocram_free_mem(void *p, size_t size, void *other) gen_pool_free((struct gen_pool *)other, (u32)p, size); } -static irqreturn_t altr_edac_a10_ecc_irq(int irq, void *dev_id) -{ - struct altr_edac_device_dev *dci = dev_id; - void __iomem *base = dci->base; - - if (irq == dci->sb_irq) { - writel(ALTR_A10_ECC_SERRPENA, - base + ALTR_A10_ECC_INTSTAT_OFST); - edac_device_handle_ce(dci->edac_dev, 0, 0, dci->edac_dev_name); - - return IRQ_HANDLED; - } else if (irq == dci->db_irq) { - writel(ALTR_A10_ECC_DERRPENA, - base + ALTR_A10_ECC_INTSTAT_OFST); - edac_device_handle_ue(dci->edac_dev, 0, 0, dci->edac_dev_name); - if (dci->data->panic) - panic("\nEDAC:ECC_DEVICE[Uncorrectable errors]\n"); - - return IRQ_HANDLED; - } - - WARN_ON(1); - - return IRQ_NONE; -} - const struct edac_device_prv_data ocramecc_data = { .setup = altr_check_ecc_deps, .ce_clear_mask = (ALTR_OCR_ECC_EN | ALTR_OCR_ECC_SERR),