From 34d8735fb9bdab04a7cfaee566f60341b659a911 Mon Sep 17 00:00:00 2001 From: Ketan Patil Date: Tue, 9 Nov 2021 14:14:14 +0000 Subject: tegra: mc: Add resume function for mc mc_err is not reported after device resume as MC_INTMASK register is in reset state. Restore this register in resume. Bug 3418979 Change-Id: I04884b81164a4b95e1f11e6e78e35499b6f5e977 Signed-off-by: Ketan Patil Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2622984 (cherry picked from commit c9638f54e8b3dc48158cce548c24bae6dbf09adc) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2638812 Reviewed-by: svcacv Reviewed-by: Sachin Nikam Reviewed-by: Puneet Saxena Reviewed-by: Pritesh Raithatha Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- include/linux/platform/tegra/mcerr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/linux/platform/tegra/mcerr.h b/include/linux/platform/tegra/mcerr.h index 512b43e22..ead72f330 100644 --- a/include/linux/platform/tegra/mcerr.h +++ b/include/linux/platform/tegra/mcerr.h @@ -2,7 +2,7 @@ * MC error interrupt handling header file. Various defines and declarations * across tegra chips. * - * Copyright (c) 2010-2018, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2010-2021, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -53,6 +53,7 @@ struct platform_device; int tegra_mcerr_init(struct dentry *mc_paren, struct platform_device *pdev); +void tegra_mcerr_resume(void); irqreturn_t tegra_mc_handle_general_fault(int src_chan, int intstatus); /* -- cgit v1.2.2