Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp836006rwb; Thu, 4 Aug 2022 11:48:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR6MkiuVZr7hoOk+jqYwmGBgdUS4tSQDVjLfAz2iTlYYQOc5HktYlynTKIL6YB6+bePicL6L X-Received: by 2002:a05:6a00:150d:b0:52b:1ffb:503c with SMTP id q13-20020a056a00150d00b0052b1ffb503cmr3133252pfu.44.1659638904786; Thu, 04 Aug 2022 11:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659638904; cv=none; d=google.com; s=arc-20160816; b=RXeQiMMNN9RXpzHy18V4akhq+iDBo5JBzktCBuyZyZIYN/3gexvbVesWWBOIHpiAjk okvh5HD2p7i0KJ4nsWm9so753WXGIPCP/L/3i7XHmb+YixNUlAaX5laT2s/RIxuATPoL ZgMcTGxrcxCs9Y5hs+az33MViHglpDTvjx9LYPR1xwGBlGAZ4IM/2QYxQxvD4S1Q1uCD /OnmqYR9gEjtjdaDM7P5lSP/t70n9xusVOdIdtGjawmmbwjFP9AUkqWwEg+tJRr+SRQA sZWFIMEAn5/Wpe2yILhte5quz/Ctgru0KXI4ADF5vYybdKOP2JTFpkDZ5aJKdCDarKQR bY4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OauzY5NPoVxR96fxdrgvniM7lN8jaUTrviVvH2IM4yU=; b=jXZVnLNXKfs6BBPewatHnb6gwxrhTFz+ILTK3oQJu5YKVmzodFeCfxWTEuGz5rPNOd 2isJXBjrgkl42L3qjeyoCSEDm/ptYNxLrM2u584+SC/Rap3KLB3VZeEhLqK7OnAdKmrl k3uU3abYnUzDyGrBDqhLUlUSaj9u8tjzGmK+5qIkN9i+KcXafHzwe+rlGqTC/ISS8Z9i IOnCTlImeh2icYQiOa4Az7w/tSnunwPj98yFqyFNtHvUeoRJGUDabQ69sa+gay6druLm F1BB3uz6nTZE/bU/SSMIjVp2SeBlV4o0C2Z790Em3dsFOjEpXuRUgTz43syEEI90PIXy Dd+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=aT1bG0pO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a35-20020a631a23000000b0041a88ab4ff7si614470pga.72.2022.08.04.11.48.09; Thu, 04 Aug 2022 11:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=aT1bG0pO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239861AbiHDSQB (ORCPT + 99 others); Thu, 4 Aug 2022 14:16:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240011AbiHDSP7 (ORCPT ); Thu, 4 Aug 2022 14:15:59 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEB4A6573; Thu, 4 Aug 2022 11:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=OauzY5NPoVxR96fxdrgvniM7lN8jaUTrviVvH2IM4yU=; b=aT1bG0pOIRzByuU5LSozgfLcvg yR/XAd4ZqQFMTxsjJVVFqVCxU1Hrcgg6VB+8gVCf92fpf2GuRCIESt+wh5CQo5DgCkep0zsUx4NoO pINKsNVn9f63uQ915yotJ/D/kZO1lNT0kgi+tpgh6ZKLrs7fkuHTjMwZMBgznCW01+jSDcUFXvPXx hZDDLX/Jv/92AAnEFDCekdVgOhxrs3EtBdwYE2gZyT9jIPp7i0psbIFIq/IygKr1u7wgiGaj3TgiZ dUNdKey6zGGYbdwDjAqghRl/UqelGLOI1B0PCNcI1aaua+r0q7ryA/igzPS9kfoP6lI2lw01RQn42 WGMBHBcw==; Received: from [2601:1c0:6280:3f0::a6b3] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oJfNm-0087nh-M4; Thu, 04 Aug 2022 18:15:42 +0000 Message-ID: <30e4c6a0-cd8e-5a86-ac25-ac2af5ec53dd@infradead.org> Date: Thu, 4 Aug 2022 11:15:38 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v8.1, 4/7] thermal: mediatek: Add LVTS driver for mt8192 thermal zones Content-Language: en-US To: bchihi@baylibre.com, rafael@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, mka@chromium.org, robh+dt@kernel.org, krzk+dt@kernel.org, matthias.bgg@gmail.com, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, james.lo@mediatek.com, fan.chen@mediatek.com, louis.yu@mediatek.com, rex-bc.chen@mediatek.com, abailon@baylibre.com References: <20220804130912.676043-1-bchihi@baylibre.com> <20220804130912.676043-5-bchihi@baylibre.com> From: Randy Dunlap In-Reply-To: <20220804130912.676043-5-bchihi@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi-- On 8/4/22 06:09, bchihi@baylibre.com wrote: > diff --git a/drivers/thermal/mediatek/Kconfig b/drivers/thermal/mediatek/Kconfig > index 592c849b9fed..afef43a0e7ca 100644 > --- a/drivers/thermal/mediatek/Kconfig > +++ b/drivers/thermal/mediatek/Kconfig > @@ -20,4 +20,28 @@ config MTK_SOC_THERMAL > configures thermal controllers to collect temperature > via AUXADC interface. > > +config MTK_LVTS_THERMAL > + tristate "LVTS (Low Voltage Thermal Sensor) driver for MediaTek SoCs" > + depends on HAS_IOMEM > + depends on NVMEM > + depends on RESET_CONTROLLER > + help > + Enable this option if you want to get SoC temperature > + information for MediaTek platforms. This driver configures > + LVTS (Low Voltage Thermal Sensor) thermal controllers to > + collect temperatures via ASIF (Analog Serial Interface). > + > +if MTK_LVTS_THERMAL > + > +config MTK_LVTS_V4 > + tristate "LVTS V4 Thermal Driver for MediaTek SoCs" > + depends on HAS_IOMEM > + depends on NVMEM > + depends on RESET_CONTROLLER You shouldn't need to repeat all of these "depends on" lines since this Kconfig symbol depends on MTK_LVTS_THERMAL, which already depends on these 3 items. Have you seen any issue that this is supposed to fix? > + help > + Enable this option if you want to get SoC temperature > + information for LVTS V4. > + > +endif thanks. -- ~Randy