From: Rounak Das <rounakdas2025@gmail.com>
To: krzk@kernel.org
Cc: bp@alien8.de, conor+dt@kernel.org, devicetree@vger.kernel.org,
dinguyen@kernel.org, krzk+dt@kernel.org,
linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org,
niravkumar.l.rabara@altera.com, robh@kernel.org,
rounakdas2025@gmail.com, tony.luck@intel.com
Subject: [PATCH 2/2] EDAC/altera: Use an enum to identify the platform variant
Date: Thu, 30 Jul 2026 02:16:42 +0530 [thread overview]
Message-ID: <20260729204642.23281-1-rounakdas2025@gmail.com> (raw)
In-Reply-To: <20260724-spotted-resilient-badger-495b71@quoll>
In preparation for Agilex5 support the driver needs to distinguish
more than Stratix10 versus everything else. Replace the defines with
an enum. SOCFPGA_A10 is zero so the Arria10 match entry, which has no
match data, maps to it naturally.
Signed-off-by: Rounak Das <rounakdas2025@gmail.com>
---
drivers/edac/altera_edac.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/edac/altera_edac.h b/drivers/edac/altera_edac.h
index 30e35da7eb6a..79b51f051183 100644
--- a/drivers/edac/altera_edac.h
+++ b/drivers/edac/altera_edac.h
@@ -372,8 +372,11 @@ enum altr_agilex5_irq_idx {
#define ECC_READ_EOVR 0x2
#define ECC_READ_EDOVR 0x3
-#define SOCFPGA_S10 0x1
-#define SOCFPGA_AGILEX5 0x2
+enum altr_socfpga_platform {
+ SOCFPGA_A10,
+ SOCFPGA_S10,
+ SOCFPGA_AGILEX5,
+};
struct altr_edac_device_dev;
--
2.50.1 (Apple Git-155)
next prev parent reply other threads:[~2026-07-29 20:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-20 20:14 [PATCH 0/4] EDAC/altera: Add support for Agilex5 platform Dinh Nguyen
2026-07-20 20:14 ` [PATCH 1/4] dt-bindings: edac: altera: agilex5: document new edac support Dinh Nguyen
2026-07-20 20:21 ` sashiko-bot
2026-07-24 9:39 ` Krzysztof Kozlowski
2026-07-29 20:43 ` [PATCH 1/2] dt-bindings: altera-sdram: Add Agilex5 ECC manager compatible Rounak Das
2026-07-20 20:14 ` [PATCH 2/4] EDAC/altera: use flag to differentiate 64-bit platforms Dinh Nguyen
2026-07-20 20:30 ` sashiko-bot
2026-07-24 9:41 ` Krzysztof Kozlowski
2026-07-29 20:46 ` Rounak Das [this message]
2026-07-20 20:14 ` [PATCH 3/4] EDAC/altera: Add support for Agilex5 ECC manager Dinh Nguyen
2026-07-20 20:25 ` sashiko-bot
2026-07-20 20:14 ` [PATCH 4/4] arm64: dts: socfpga: agilex5: add support for the " Dinh Nguyen
2026-07-20 20:35 ` sashiko-bot
2026-07-24 9:43 ` Krzysztof Kozlowski
2026-07-20 20:33 ` [PATCH 0/4] EDAC/altera: Add support for Agilex5 platform Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260729204642.23281-1-rounakdas2025@gmail.com \
--to=rounakdas2025@gmail.com \
--cc=bp@alien8.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=niravkumar.l.rabara@altera.com \
--cc=robh@kernel.org \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox