From 54e431bcc9928c552baf52542c774165a8a00caf Mon Sep 17 00:00:00 2001 From: Manish Bhardwaj Date: Fri, 1 Dec 2023 07:23:25 +0000 Subject: [PATCH] ivc: fix ivc driver issue for noble kernel Bug 4377196 Change-Id: I4acc2d4e419f0ee95be760910f27da592369875c Signed-off-by: Manish Bhardwaj Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3026287 Reviewed-by: Laxman Dewangan Tested-by: Akhil R --- drivers/firmware/tegra/ivc_ext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/tegra/ivc_ext.c b/drivers/firmware/tegra/ivc_ext.c index 7be90b85..396b780c 100644 --- a/drivers/firmware/tegra/ivc_ext.c +++ b/drivers/firmware/tegra/ivc_ext.c @@ -197,7 +197,7 @@ static inline int tegra_ivc_check_read(struct tegra_ivc *ivc) tegra_ivc_invalidate(ivc, ivc->rx.phys + offset); #if defined(NV_TEGRA_IVC_STRUCT_HAS_IOSYS_MAP) - if (!tegra_ivc_empty(ivc, &ivc->rx.map)) + if (tegra_ivc_empty(ivc, &ivc->rx.map)) #else if (tegra_ivc_empty(ivc, ivc->rx.channel)) #endif @@ -229,7 +229,7 @@ static inline int tegra_ivc_check_write(struct tegra_ivc *ivc) tegra_ivc_invalidate(ivc, ivc->tx.phys + offset); #if defined(NV_TEGRA_IVC_STRUCT_HAS_IOSYS_MAP) - if (!tegra_ivc_full(ivc, &ivc->tx.map)) + if (tegra_ivc_full(ivc, &ivc->tx.map)) #else if (tegra_ivc_full(ivc, ivc->tx.channel)) #endif