From patchwork Thu Jul 30 08:05:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SGVucnkgWWVuICjpoY/kv67muqsp?= X-Patchwork-Id: 11692473 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A02026C1 for ; Thu, 30 Jul 2020 08:16:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 795202074B for ; Thu, 30 Jul 2020 08:16:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="YjRa+MrW"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="Nx3HVLZW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 795202074B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To: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=Yq2Vhz5bZKFZHXeit0IQv1Ku6QgqOL/niSU/0Y6qizE=; b=YjRa+MrWOsJUXvEvCy7kwjDGkH DY/sZdHu1oxdrSCs2JPk56irY6Ue16zd8PwQuZiikCBgGzmPGVHEEb6w+4RbfG3IDhRpXBjQq3wJt 1MW/aNh2/WkmKminfYLTcFe0fKLQ2R6omv/mDCgCJsqZk+6nfacyZGarzYzuzH//rsvZiIHWCT5J+ wZmeJuUbqRTEuhWdMnYiuAWuKk/aowrdlqogaR5yeE4Th1BK0zjCx4Nb0GGLQz6J982w9PD7ae/ky 37/0dgc2wMWzy/KJ/tBYfVZAovXttHQTgI4GHdVsFyDUS7ozscXoYitjGhyd0+ume3e/WJdJfcZUQ Wu52lCQA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k13iJ-0004VK-VA; Thu, 30 Jul 2020 08:14:56 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k13iG-0004TW-HR; Thu, 30 Jul 2020 08:14:53 +0000 X-UUID: ed71cef205a649879e9fa66cb5bd2ae8-20200730 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=gtc/7yIbUp5/Z/sZoviqQWwUV/DSInVUWpg1vFZLruY=; b=Nx3HVLZWcN7KuAtbln5l++vbjwRlbUENDsOEJ4MlNyNynMs7GD6OIx3hwBPrvlu78CZOQI7FfkngU/VdOy8galJNypqrATQYSJupq9d2/d+k/90q3wyejC171YlGM8GIR6WCWPdXcsS2YqCK6Uu/jFQsbQbrJRohdCV7gmBZX+A=; X-UUID: ed71cef205a649879e9fa66cb5bd2ae8-20200730 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1721956277; Thu, 30 Jul 2020 00:14:47 -0800 Received: from mtkmbs05n1.mediatek.inc (172.21.101.15) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Jul 2020 01:05:16 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 30 Jul 2020 16:05:14 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 30 Jul 2020 16:05:15 +0800 From: Henry Yen To: Zhang Rui , Daniel Lezcano , Amit Kucheria , Matthias Brugger Subject: [PATCH] thermal: mediatek: Fix missing selection Date: Thu, 30 Jul 2020 16:05:04 +0800 Message-ID: <1596096304-16422-1-git-send-email-henry.yen@mediatek.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200730_041452_773497_CA465533 X-CRM114-Status: GOOD ( 13.27 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Steven Liu , Henry Yen , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Kao , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Mediatek thermal driver is compatible with multiple platforms. Some of the platforms (e.g., MT2701) requires to enable MEDIATEK_MT6577_AUXADC option. If lacks the config, the driver will not be able to read correct temperature. To fix it, select missing MEDIATEK_MT6577_AUXADC config. Signed-off-by: Henry Yen --- drivers/thermal/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index 3eb2348e5242..3a37f674f7f3 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig @@ -409,6 +409,7 @@ config MTK_THERMAL depends on NVMEM || NVMEM=n depends on RESET_CONTROLLER default y + select MEDIATEK_MT6577_AUXADC help Enable this option if you want to have support for thermal management controller present in Mediatek SoCs