Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp125511pxy; Tue, 20 Apr 2021 14:24:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkzyQx/2uDCuGKvfYfMxL4obL2MwhZK7RYQGk+FDk83xdnwAO/e9qQsjBjtvVkBI7ZIMgC X-Received: by 2002:a63:6ec3:: with SMTP id j186mr18585817pgc.249.1618953885830; Tue, 20 Apr 2021 14:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618953885; cv=none; d=google.com; s=arc-20160816; b=rn5XGp+rVJjFf279hZSV+PI9xGTxXfYfx5H4AX4P4hUDTOaqQFK5SsNsIW8srwZDD1 E5gCvPL9XTuoEYvI8WvN4O5rdOihRLBS4QgS5ph8p+CFWg+aELLKMAi3a4yBT3+TFT1M QZpdJLjVA+PgVAgl2Vfc9+aKRgJoO945GvfuYdEUfAGtvPqDbvOcmUK5CTeqgrr24ug1 2RQMWE1ayoTK3LujwvTCvJemeXxbY68E712gVd++qvRC3sABAWOYGFgKG+7wkYjwYZg2 dGlCT239v93dfLacNHMSs1V2EWYFCGtF+LwPRY3u141uOcSCU/JVEP+62ronhMXfqJwt PDPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=kQP1W0MBWimzZ3NHtFo9wJkMkPBAuGsB/TCIhzxFq2s=; b=dXq4G8xLOTYeZSfkQ1H9dpewS2Fi6xaNM5+364VHKUqGXlIXTwGjpJU8mGt7Uv1y/z tsbIewIzZsH0duB6S1ZqiD/+3n8tOCIGs65ocOGo0C2/D+JyOkescRcaYQJ2bMf2RiFm z2kxO6KJzVr3KcD6XB/xrC9mTBodnOflrfPvnkn0EasFwmO5s4YIMvtuqVOrdeDYMEt0 VHOsjE3hzluf1+hY1Qi+sm6dWrltCOgUtwcZVulBnR11SzjvWFBAN9yKe3xktFQGD+Rx s1xkEVm49vSoYF/5111p4VJjjrlZ77Dv6tfcx7oiCA+YZqvCpFQ1CXVfCld6Wtmzz6LL tDlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rzuVUTTZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si14353plc.419.2021.04.20.14.24.22; Tue, 20 Apr 2021 14:24:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rzuVUTTZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233951AbhDTVXT (ORCPT + 99 others); Tue, 20 Apr 2021 17:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233896AbhDTVXQ (ORCPT ); Tue, 20 Apr 2021 17:23:16 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79425C06138B for ; Tue, 20 Apr 2021 14:22:44 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id o9-20020a1c41090000b029012c8dac9d47so90863wma.1 for ; Tue, 20 Apr 2021 14:22:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=kQP1W0MBWimzZ3NHtFo9wJkMkPBAuGsB/TCIhzxFq2s=; b=rzuVUTTZ+oUsaLSGlch2El9svn+1gJeN2CTAM2dlFJalEknnqY8jieUoKJMandXYw5 QZfWrO/fCtAS4Xwwq2TXM9Iy3uRy8QH+nuli3JqOjJc7EuPcVvIffhlAvN97Fz34l8ia WH3lI4+K1dKIYEAqzYnvbfvtHE9IR4bgWqp6+CPXN5V37w7Huz1aHSniLIckyAujhYA1 Z+1oizpgsPEIJqHLH4PvviEpK8DXrZj0iSCkGaMlUu6Nf1knvPWqKBMcnPfoq10ElgCI cmqTrIXD4kaQxJBtEfEFBAW+/ocrCUe+xYqD1l7Zw86HEs4V28M5Ahw7GfD+74LC9gXa o11A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kQP1W0MBWimzZ3NHtFo9wJkMkPBAuGsB/TCIhzxFq2s=; b=hyq4vJw8/dFKS2y4v6SDsL+NeXIIxEGjjZU1J2zdR+jLNU8IJPrsUvSXMPW5OPHs7G O+r+UcSoGNDcOYjw74oxWJcMwY1K0A6QSeA0mbP2vK37fE70+iFjKqj3B9YsYaTR9zsa yzTzgIqGM5rB1TiPTGQ3xHpS7/Ogi7jegBMocqJ3oJcs6O3Zy43N0HRV8XF3V7WKGTAx oN4HPx//CywoZgf0iOQDMJa7gWAjODZMehSKEUEdsSEEhCrV/5Xw6sx3pnwhdsp1P4w2 jQglz/rnZpI/xUA2YOaen1HHzkxQF2qg5meRX1O4qhH4LCE0htZKolE5LN5mDx5vOav5 /dKg== X-Gm-Message-State: AOAM532xfV4nWSlaeqU0EkQRJNUxMXhmk4prnRERCSTEWOGKIeinuOOL C9XVYD8XHo5oJlInAeYyvdMkwQ== X-Received: by 2002:a1c:4089:: with SMTP id n131mr6389622wma.77.1618953763027; Tue, 20 Apr 2021 14:22:43 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:d985:3a3b:ec32:bdfe? ([2a01:e34:ed2f:f020:d985:3a3b:ec32:bdfe]) by smtp.googlemail.com with ESMTPSA id z15sm267741wrv.39.2021.04.20.14.22.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Apr 2021 14:22:42 -0700 (PDT) Subject: Re: [v3,1/3] thermal: mediatek: Relocate driver to mediatek folder To: Michael Kao , Zhang Rui , linux-pm@vger.kernel.org, srv_heupstream@mediatek.com Cc: Eduardo Valentin , Rob Herring , Mark Rutland , Matthias Brugger , hsinyi@chromium.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20210312034018.17437-1-michael.kao@mediatek.com> <20210312034018.17437-2-michael.kao@mediatek.com> From: Daniel Lezcano Message-ID: <836581c1-0738-8e42-b168-b54d0bd078a5@linaro.org> Date: Tue, 20 Apr 2021 23:22:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210312034018.17437-2-michael.kao@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/2021 04:40, Michael Kao wrote: > Add Mediatek proprietary folder to upstream more thermal zone and cooler > drivers. Relocate the original thermal controller driver to it and rename > as soc_temp.c to show its purpose more clearly. We already know the purpose :) soc_temp gives no additional information. Either keep the name or give the hardware sensor name. It is a driver directory. > Signed-off-by: Michael Kao > --- > drivers/thermal/Kconfig | 14 ++++------- > drivers/thermal/Makefile | 2 +- > drivers/thermal/mediatek/Kconfig | 23 +++++++++++++++++++ > drivers/thermal/mediatek/Makefile | 1 + > .../{mtk_thermal.c => mediatek/soc_temp.c} | 0 [ ... ] vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv > +config MTK_THERMAL > + tristate "Mediatek thermal drivers" > + depends on THERMAL_OF > + help > + This is the option for Mediatek thermal software > + solutions. Please enable corresponding options to > + get temperature information from thermal sensors or > + turn on throttle mechaisms for thermal mitigation. > + > +if MTK_THERMAL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ All the above not needed. > +config MTK_SOC_THERMAL > + tristate "Temperature 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 thermal controllers to collect temperature > + via AUXADC interface. > + > +endif > diff --git a/drivers/thermal/mediatek/Makefile b/drivers/thermal/mediatek/Makefile > new file mode 100644 > index 000000000000..f75313ddce5e > --- /dev/null > +++ b/drivers/thermal/mediatek/Makefile > @@ -0,0 +1 @@ > +obj-$(CONFIG_MTK_SOC_THERMAL) += soc_temp.o > diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mediatek/soc_temp.c > similarity index 100% > rename from drivers/thermal/mtk_thermal.c > rename to drivers/thermal/mediatek/soc_temp.c -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog