From patchwork Tue Nov 21 12:50:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 167727 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2b07:b0:403:3b70:6f57 with SMTP id io7csp594799vqb; Tue, 21 Nov 2023 04:52:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGxlGYENqY4R/X8XGpCo+271ocX1ruHfwfw9/6W0HgS2agDiZVVAWKNNuA7MuqqU/oPDkto X-Received: by 2002:a05:6808:ecd:b0:3b2:e761:fadd with SMTP id q13-20020a0568080ecd00b003b2e761faddmr13085048oiv.16.1700571146770; Tue, 21 Nov 2023 04:52:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700571146; cv=none; d=google.com; s=arc-20160816; b=ByAKv6arVlLF+wOlgZlgNCDXzarONEYvo/uZ3Cpp+dq76XMLj6/ai/A7G34Y/tD/+A dW31dIbJV4edqo+YTqA0kiEn6Z72vbAkuIqht0m0rDSCJu+qgdiGCpG+Wj8yDFM5bewv NrI1w2vnCByqPMFJ0RPBpGZ8MXGiZL2fDdTUpUqHQVg8D7p/ck7PM9SM8+T7ZSNvL8F6 tmqOAAWr73vjpnH1jL+K/oMKPGdLg4rkcafIc/XjB2bKEILeG3WnXeNu3g+vJUdkWsPt zzc9FIM2siCdx45w2aRBWBeTEwG949HwA/RYuI5TIUedOxWGgppgXTq3yjevqul1Jfsh hyOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G4CiWflMa0UUyp9NbGyD/T0A000MhIAnhks0L2DnG2Q=; fh=m5p6pcg3y47Sg5VKYWXj0f0nOzgFq4l5+GGYwGce+t4=; b=vxYyPrTd4uzlo3+PtODzTczYryPveMYbkZUFWjCo+wnC5NZu+BGYxQmYTT0SLBs8RE iBkSfjiD0d0Mpn+qLiTwRiLBuLzgGSHNbWv6PIIbbpu6Io7hoeGXhxEFilrrWwiZpdhQ 7TF19MbNk7k4gBGEFjYuEOnukrRxKjlgZB94P/uyhZ/Ao2QhmRopfvOdfbbDN+cZXONb TNVODUPiVE/K8MVC4G9meUzD+dCj8Cslkv0aoOqJnsGmew3ZO8HIE0POF7elm4ctXDHk v/M/zDnOYreM2XYLyMHxD4MWCS+vbX+i4YrkfazfWjAUhc8vqf5uesm+6WlK/udYRoLC hRSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DBpzUERp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bv132-20020a632e8a000000b005bd68976351si10006232pgb.55.2023.11.21.04.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 04:52:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=DBpzUERp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1307C8027B24; Tue, 21 Nov 2023 04:52:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233837AbjKUMvM (ORCPT + 99 others); Tue, 21 Nov 2023 07:51:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233709AbjKUMvC (ORCPT ); Tue, 21 Nov 2023 07:51:02 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAF9BD52; Tue, 21 Nov 2023 04:50:58 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id AB37F660731B; Tue, 21 Nov 2023 12:50:56 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700571057; bh=rbMxFG/9Z/MvXIMSXdH+Z5ELUWvpXJ2G/c2LivRCtOk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DBpzUERpnXVxQTq62hizv4R8fVPbIUHQHcCLwXPwO6zzL2zGsXcb12DLbdmJUVFq1 ICTMNG8y4zzELKcVCaY3i0hTea/M301YmHNuOUmnpQ2pz4pWxQcUguqsJNusCGUBd7 oaV26QCH0nOlmXt5watgiE+y+quzHg6fcxah8oQ0qXb/q+/z14H18mRpCbob4ZDg+I yW2hH7epRTbxUOALclfGyTF/iYDR3Qp+vKjonIYo7SbHxlrtpd1omapjnm4EHLXRvS nhrxLhBGCOgs+wOEn1BJra0d2PvEUPnBbkO7WDN4WGhwxHUG+GVb6jrGY3IQGWnpmy k7/7fvcF4cPYA== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, robh+dt@kernel.org, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, wenst@chromium.org Subject: [PATCH v3 06/20] soc: mediatek: mtk-svs: Change the thermal sensor device name Date: Tue, 21 Nov 2023 13:50:30 +0100 Message-ID: <20231121125044.78642-7-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231121125044.78642-1-angelogioacchino.delregno@collabora.com> References: <20231121125044.78642-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 04:52:11 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783178090441511294 X-GMAIL-MSGID: 1783178090441511294 This driver tries to create a device link to the thermal sensor device: change all instances of "lvts" and "thermal" to "thermal-sensor", as that's what the devicetree node name must be. Note for MT8183: As specified in a previous commit, this SoC never got SVS probing, so this is not a breaking change and it does not require fallback for older device trees. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/mediatek/mtk-svs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c index 6c27fb523bfa..b5beb33c95ba 100644 --- a/drivers/soc/mediatek/mtk-svs.c +++ b/drivers/soc/mediatek/mtk-svs.c @@ -2329,7 +2329,7 @@ static int svs_mt8192_platform_probe(struct svs_platform *svsp) return dev_err_probe(svsp->dev, PTR_ERR(svsp->rst), "cannot get svs reset control\n"); - dev = svs_add_device_link(svsp, "lvts"); + dev = svs_add_device_link(svsp, "thermal-sensor"); if (IS_ERR(dev)) return dev_err_probe(svsp->dev, PTR_ERR(dev), "failed to get lvts device\n"); @@ -2362,7 +2362,7 @@ static int svs_mt8186_platform_probe(struct svs_platform *svsp) return dev_err_probe(svsp->dev, PTR_ERR(svsp->rst), "cannot get svs reset control\n"); - dev = svs_add_device_link(svsp, "lvts"); + dev = svs_add_device_link(svsp, "thermal-sensor"); if (IS_ERR(dev)) return dev_err_probe(svsp->dev, PTR_ERR(dev), "failed to get lvts device\n"); @@ -2401,7 +2401,7 @@ static int svs_mt8183_platform_probe(struct svs_platform *svsp) struct svs_bank *svsb; u32 idx; - dev = svs_add_device_link(svsp, "thermal"); + dev = svs_add_device_link(svsp, "thermal-sensor"); if (IS_ERR(dev)) return dev_err_probe(svsp->dev, PTR_ERR(dev), "failed to get thermal device\n");