From 279bf4e7f8d602931cd746b8748217876ba9df88 Mon Sep 17 00:00:00 2001 From: Prasun Kumar Date: Thu, 2 Jan 2025 12:27:03 +0530 Subject: [PATCH] NVIDIA: SAUCE: hsierrrptinj: Update I2C instances Update the number of I2C instances to support error reporting. Bug 4771468 Bug 5421820 Change-Id: I20de21c578489b476118440497ec7f716492775f Signed-off-by: Prasun Kumar Reviewed-on: https://git-master.nvidia.com/r/c/3rdparty/canonical/linux-noble/+/3424477 GVS: buildbot_gerritrpt Reviewed-by: Bibek Basu Reviewed-by: svcacv Tested-by: Akhil R Reviewed-by: Akhil R --- drivers/platform/tegra/tegra-hsierrrptinj.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/platform/tegra/tegra-hsierrrptinj.c b/drivers/platform/tegra/tegra-hsierrrptinj.c index 73b0d8fee32a..f908d6fbd124 100644 --- a/drivers/platform/tegra/tegra-hsierrrptinj.c +++ b/drivers/platform/tegra/tegra-hsierrrptinj.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 -// SPDX-FileCopyrightText: Copyright (c) 2021-2024 NVIDIA CORPORATION. All rights reserved. +// SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION. All rights reserved. /** * @file tegra-hsierrrptinj.c @@ -35,7 +35,7 @@ #define WRITE_USER 0200 /* S_IWUSR */ /* Max instance of any registred IP */ -#define MAX_INSTANCE 11U +#define MAX_INSTANCE 20U /* Timeout in millisec */ #define TIMEOUT 1000 @@ -68,7 +68,7 @@ struct hsm_error_report_frame { * MGBE - 20 * PCIE - 11 * PSC - 1 - * I2C = 10 + * I2C = 17 * QSPI - 2 * SDMMC - 9 * TSEC - 1 @@ -76,7 +76,7 @@ struct hsm_error_report_frame { * SMMU - 1 * DLA - 2 */ -static unsigned int ip_instances[NUM_IPS] = {1, 1, 5, 20, 11, 1, 10, 2, 9, 1, 1, 1, 2}; +static unsigned int ip_instances[NUM_IPS] = {1, 1, 5, 20, 11, 1, 17, 2, 9, 1, 1, 1, 2}; /* This directory entry will point to `/sys/kernel/debug/tegra_hsierrrptinj`. */ static struct dentry *hsierrrptinj_debugfs_root;