From patchwork Wed Dec 14 13:16:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 13073130 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6455BC001B2 for ; Wed, 14 Dec 2022 13:19:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238343AbiLNNTC (ORCPT ); Wed, 14 Dec 2022 08:19:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238426AbiLNNS4 (ORCPT ); Wed, 14 Dec 2022 08:18:56 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63AAE205D8; Wed, 14 Dec 2022 05:18:55 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0085361A6D; Wed, 14 Dec 2022 13:18:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47131C43392; Wed, 14 Dec 2022 13:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671023934; bh=nnr17/76ojmrtu3Co48KLMzaUzbzMgFxhN+A+PvMGo0=; h=From:To:Cc:Subject:Date:From; b=NyOELBd+dxAFQUM7O4WYB2KKigLf2eAT/a8BJX4Tdh5YFIE9DYaLwK/Sp8M7AZOeH q4yfeUsevr3vxsCb2CHZcnMSUkbv2iVQKbH7LjRN32deVSK38gKnNetUQK0HrUHj/5 L96KPkyfAP3IaElm6AdKXwXQN9PZxw1RNA3ipDxG/WoX9vXGMAnMhq2Fc00XuAyFBK CjS+nsV8qVkdsi3ecIpiU4vcvFO7UjVnfxi0OcV1qx5sBDU4oRXVbaInmiptqk34gV Ixony2FmcWvUQUVXipx/YaWTlBXDBrV2VXiVy/O0Bf23I30eQ/jc4QTyeVuBTBEs9+ zKdT9GtSM/TPA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1p5RfN-0000gG-Kq; Wed, 14 Dec 2022 14:19:22 +0100 From: Johan Hovold To: Daniel Lezcano , "Rafael J. Wysocki" Cc: Amit Kucheria , Thara Gopinath , Andy Gross , Bjorn Andersson , Konrad Dybcio , Zhang Rui , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Alim Akhtar , Thierry Reding , Jonathan Hunter , Dmitry Baryshkov , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Johan Hovold Subject: [PATCH 0/4] thermal: fix locking regressions in linux-next Date: Wed, 14 Dec 2022 14:16:13 +0100 Message-Id: <20221214131617.2447-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This series fixes some of the fallout after the thermal changes that just landed in linux-next. Lockdep reported a lock inversion in one of the Qualcomm drivers and a closer review revealed that the changes had also broken the sysfs interface for at least three drivers. Note that a simple revert of the offending patches was not an option as some of the infrastructure that the old implementation relied on has also been removed. Johan Johan Hovold (4): thermal/drivers/qcom: fix set_trip_temp() deadlock thermal/drivers/exynos: fix set_trip_temp() deadlock thermal/drivers/tegra: fix set_trip_temp() deadlock thermal/drivers/qcom: fix lock inversion drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 7 ++++++- drivers/thermal/samsung/exynos_tmu.c | 2 +- drivers/thermal/tegra/soctherm.c | 2 +- drivers/thermal/thermal_core.c | 1 + include/linux/thermal.h | 2 ++ 5 files changed, 11 insertions(+), 3 deletions(-)