From patchwork Fri Nov 8 06:46:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Te Yuan X-Patchwork-Id: 13867627 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFDABD5E141 for ; Fri, 8 Nov 2024 06:51:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=cn/Nc5RaHVF/e/nAEApB7fYMyWr4MBPCDZJyTNa0js8=; b=Wc+u1/+YmFyZcXi/OPr8E5HvkR xnBnsDtveZTYYY6Zlj1logAu45wiL1Goobb17qHj7xf9bSzctU61UZueT5eXpZJr4qYwU/Z8RpcTl pOvyKMas2Oa69LyGAmxIZ3yZF0cPk3OOe45eJSQSrstz8D9wX5aQPbZpnqYkF+QnigWsNE5n9K/6Q iFmgwF3gTvbfhLGeszftmUgSBUkQ/Mw3SLih1q4r1X2D7e63d9fea0QtOdsVWDk5JL4Mcicj0UkOn LTx/RtsPmMgsE6LqYrjZWeWMqGQIBw5tKjuKQva6Y9F0Rh8ABP9SJVNyKTRXxeMvsc2HQytvDTfyR JMS4594Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9Ipw-00000009YFJ-2cKe; Fri, 08 Nov 2024 06:51:16 +0000 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9Iln-00000009XCt-1Rgq for linux-mediatek@lists.infradead.org; Fri, 08 Nov 2024 06:47:00 +0000 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-3e604425aa0so1136828b6e.0 for ; Thu, 07 Nov 2024 22:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1731048418; x=1731653218; darn=lists.infradead.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=cn/Nc5RaHVF/e/nAEApB7fYMyWr4MBPCDZJyTNa0js8=; b=J10uTYX/oeFxzPM8hjjORM0BjNb9KdpRnASpuuKnB4xb+IrthilyTcyPcEY9S5KsOP XVKEgiNIJuVQsaF+Hn+ZY8u9Yk5YK3i5YzJsZHb9IWOz8c1Q+6jwzCP+4vskML5z6fmm AWbzXP59SmnpnluGSRRTQ+3CtufjpCw7cV/Ck= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731048418; x=1731653218; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cn/Nc5RaHVF/e/nAEApB7fYMyWr4MBPCDZJyTNa0js8=; b=HX/ZZb3NHokrOXKZmSx/fOzZD5txxMjHOPDv/lWtmJsgXutvLWQ07ETwOyDQU/oZga yddyYo8OIpw1E4Sf72JLr7goAqA9FxZoMeYTCS1NzoMxLzh3UtTg0Xhu7z6XOr/q7peU SCzuuw1IUcbOj7zcZLJXQJBjdTGKrMTeovJTgzc5hXsoWwPmnSR0vJrQQek7g9SsQJXx 7D7lUZE5Ru82RQbdsgjc0AVPTc8SLsMzipmqQNIFlmrzh4NrJNPiVAI/MbCSRnkkY1JH dgO0DpmUsF4WOvoNxjTl3hdfKGlCsmNI1ZKEFCrJCSUzUe+rXqGpNFYFORNw/DDArCRf 1/OA== X-Forwarded-Encrypted: i=1; AJvYcCU8vJlR2NngPUPBXjmApcD+08uDa8j1Y3G5/gJz4mA692wD+DiIFqPhxMPgKff9wje9hloxqV13KmCvp5/2aA==@lists.infradead.org X-Gm-Message-State: AOJu0YyqB2Df1Raak4DnlO2gIivTDH8tuQbBvPszd13P8Byu9el4ChOT KH1zK99F54Dn/kRmbmerZDsm8eh44Lc/J+DFI8aWxxtA07S0R4o1LA2qWv5Puw== X-Google-Smtp-Source: AGHT+IGIj8ppTDiKoQ1Ac0ZjCZ1batJcTJQ8Mib+/ozEVFfkH5rl/YxpGzi3ZzRXz5pAIQ9//uSnvQ== X-Received: by 2002:a05:6870:344c:b0:261:211:9d0d with SMTP id 586e51a60fabf-295603b7595mr1814461fac.40.1731048417707; Thu, 07 Nov 2024 22:46:57 -0800 (PST) Received: from yuanhsinte.c.googlers.com (176.220.194.35.bc.googleusercontent.com. [35.194.220.176]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724079aa8fasm2863065b3a.97.2024.11.07.22.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2024 22:46:57 -0800 (PST) From: Hsin-Te Yuan Date: Fri, 08 Nov 2024 06:46:53 +0000 Subject: [PATCH] thermal/drivers/mediatek/lvts_thermal: Switch to IMMEDIATE_MODE MIME-Version: 1.0 Message-Id: <20241108-lvts-v1-1-eee339c6ca20@chromium.org> X-B4-Tracking: v=1; b=H4sIANyzLWcC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxNDQwML3ZyykmLdNPOk1CRjs9S0ZFNLJaDSgqLUtMwKsDHRsbW1AICiAJZ WAAAA X-Change-ID: 20241108-lvts-f7beb36efc59 To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Hsin-Te Yuan X-Mailer: b4 0.15-dev-7be4f X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241107_224659_452788_4471FE87 X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Currently, MT8192 cannot suspend with FILTERED_MODE. Switch to IMMEDIATE_MODE will fix this. Signed-off-by: Hsin-Te Yuan --- drivers/thermal/mediatek/lvts_thermal.c | 3 --- 1 file changed, 3 deletions(-) --- base-commit: 906bd684e4b1e517dd424a354744c5b0aebef8af change-id: 20241108-lvts-f7beb36efc59 Best regards, diff --git a/drivers/thermal/mediatek/lvts_thermal.c b/drivers/thermal/mediatek/lvts_thermal.c index 1997e91bb3be94a3059db619238aa5787edc7675..daad52f14fc03d0c4131f2ffdf3eb6b49a4a43d0 100644 --- a/drivers/thermal/mediatek/lvts_thermal.c +++ b/drivers/thermal/mediatek/lvts_thermal.c @@ -1541,7 +1541,6 @@ static const struct lvts_ctrl_data mt8192_lvts_mcu_data_ctrl[] = { }, VALID_SENSOR_MAP(1, 1, 0, 0), .offset = 0x0, - .mode = LVTS_MSR_FILTERED_MODE, }, { .lvts_sensor = { @@ -1552,7 +1551,6 @@ static const struct lvts_ctrl_data mt8192_lvts_mcu_data_ctrl[] = { }, VALID_SENSOR_MAP(1, 1, 0, 0), .offset = 0x100, - .mode = LVTS_MSR_FILTERED_MODE, }, { .lvts_sensor = { @@ -1567,7 +1565,6 @@ static const struct lvts_ctrl_data mt8192_lvts_mcu_data_ctrl[] = { }, VALID_SENSOR_MAP(1, 1, 1, 1), .offset = 0x200, - .mode = LVTS_MSR_FILTERED_MODE, } };