From 2c40a6bc48f6701fe44cb7edadca26f6a40892da Mon Sep 17 00:00:00 2001 From: Sumit Gupta Date: Wed, 24 Mar 2021 19:41:56 +0530 Subject: pwm: fan: fix deadlock due to incorrect locking Bug 3227296 Bug 200695596 Bug 200728417 Signed-off-by: Sumit Gupta Change-Id: Ib64915556d285bd798e95da81a261eb2c16b4dab Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2503884 Reviewed-by: svcacv Reviewed-by: svc-mobile-coverity Reviewed-by: Bibek Basu Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: Bibek Basu Tested-by: mobile promotions --- include/linux/therm_est.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/linux') diff --git a/include/linux/therm_est.h b/include/linux/therm_est.h index 85284a5fe..5c5d916ce 100644 --- a/include/linux/therm_est.h +++ b/include/linux/therm_est.h @@ -1,7 +1,7 @@ /* * include/linux/therm_est.h * - * Copyright (c) 2010-2020, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2010-2021, NVIDIA CORPORATION. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -187,7 +187,7 @@ struct fan_dev_data { struct delayed_work fan_ramp_pwm_work; struct delayed_work fan_ramp_rpm_work; struct device *pwm_tach_dev; - struct mutex pwm_set; + struct completion pwm_set; bool fan_rpm_in_limits; int rpm_valid_retry_delay; int rpm_invalid_retry_delay; -- cgit v1.2.2