drivers: soc: xilinx: add check for platform
authorJay Buddhabhatti <jay.buddhabhatti@amd.com>
Tue, 19 Dec 2023 05:50:25 +0000 (21:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 16:02:49 +0000 (17:02 +0100)
commit97d62760e441af9ed393e127a46172f9534b5808
tree2ed71a26263196aef84a6157ea693773549c2103
parent0c4b2255b7afbcc80f4efcc8f67425162f49c263
drivers: soc: xilinx: add check for platform

Some error event IDs for Versal and Versal NET are different.
Both the platforms should access their respective error event
IDs so use sub_family_code to check for platform and check
error IDs for respective platforms. The family code is passed
via platform data to avoid platform detection again.
Platform data is setup when even driver is registered.

Signed-off-by: Jay Buddhabhatti <jay.buddhabhatti@amd.com>
Link: https://lore.kernel.org/r/20231219055025.27570-3-jay.buddhabhatti@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/versal_edac.c
drivers/soc/xilinx/xlnx_event_manager.c
include/linux/firmware/xlnx-zynqmp.h