Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2771428pxb; Mon, 6 Sep 2021 05:08:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3Gk7YwChDYrPYUhJgm1Y6WtztCRN+ys2iUmB8a1RnXUsNNvvKcqanfCzbvdD32M0bOz1U X-Received: by 2002:a50:9f25:: with SMTP id b34mr13005818edf.323.1630930114991; Mon, 06 Sep 2021 05:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630930114; cv=none; d=google.com; s=arc-20160816; b=MRwXMJhdDIixbRDV1CatfTtinwshLnq8De6qpch/dRxMiCgldvdz1TPjo4Tr+V18Gw CE1OPPMSrX0CK459l5Mu+s5O/HM6gtCZe7dtkrq6z5DqpqiH/9TYovjEDXsN/OuQnIQn sz7myIE+JYWOToEswmX7ZSc0eImBYf/M23Rv9ypIcecYCWv4THDp82zOe2iNKoAtzOPY +WoLuZVahXK5bhf8mPQ93gTYxCSHVfvhpKm4f+eOXFXKN1oH0r+WnivKPAd68z5XJ9Zw K3wRcdQtOKYLE4cYCQ0PmgK7b2Jx2sDZKr/CmEs9i5NulOvL27OxhDpSbKL4almdfBxa pb4Q== 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=J5rWzfawpu0XOsLyVwwYFgYCCr8KgHSAplCrfWcEUCc=; b=KCc5M1y6jdXwHFC0TNPZk2aJ/YChzzRxNiHB6AtjaIPfVCizcnf3XChpBL58uPGN1o JlChmmSSvZFA44CYMdHtA0dg04MDOM1LdRlxLf1onMie8kobwOa8jQv/DoKCT8zHbZqA XmMgCUtqtl7tp23Zuf/MA700boq5DLDvzwNcilbf0f4DG95JY1R9WMGTT8Dg4D4M2zjd Az5NX0UBuIAnlgsfQod9qGICU/C/ffORWcdh5zD7E934CWo7cwkT8N+Bo9lw4fUihXE9 CDqJJ0lbKK6ImvdsDTq35z4zjL+1BEd//GFIPzeLPdlcddPEbMvWbCkubclabgT+Tetk hgtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KYUpVbsc; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si8253558edk.324.2021.09.06.05.08.11; Mon, 06 Sep 2021 05:08:34 -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=@gmail.com header.s=20210112 header.b=KYUpVbsc; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241781AbhIFMG5 (ORCPT + 99 others); Mon, 6 Sep 2021 08:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241352AbhIFMGo (ORCPT ); Mon, 6 Sep 2021 08:06:44 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7438BC06175F; Mon, 6 Sep 2021 05:05:36 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id x11so13154739ejv.0; Mon, 06 Sep 2021 05:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J5rWzfawpu0XOsLyVwwYFgYCCr8KgHSAplCrfWcEUCc=; b=KYUpVbsceN24EZchDkkkol2zEry8/zZBvVe/CMNKasw0zP0fQumSMEkppUrrAB+wGv RRfevlklzFRZtH9W/mNoHsu+GG/RjUOIGL6ChoMEHgK7sxD3RvqkLRZAvNQNqvipm7Qr cTQlfIPe1GsNW+UvZK7BNiUuMXdUASH+Aqnla+22Ask9dzyDNc6ehe95YdO2q0n8eCzY ZuJLzMs8RQ/uItFbxCO3WfXsNP5dywIi6b5gkewTZajSIhB6UdA8pR5UEWq9WTFHWKIo 1rQjMbJYLu8jsl82JOs/gHoMEf7B+/OHLCbf2CIqSjzSrrFck4NxU3uwEU99O0suf8eT 7axQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J5rWzfawpu0XOsLyVwwYFgYCCr8KgHSAplCrfWcEUCc=; b=hIkNoBkgUSVSdMB417fqYs7H6eWMWjn7Waj2E+oiXW8hH3i06Ev1dX1YYGdHtxwiW8 IMy4ZG2qSLqqYtrBxWJGMBAkLTaizXxnYqjY7HDBOzpCVGEZ//JAIdvUzwf4qre4X9oW 9HoWE+J6Vro+cqOnjxRl+PfhTYGfd1aCUf5MHPys97ARQX9sgcrUfvNKUXeT7qEkA7Pc +2fgBUx08h/pB5yl9OKMdT0TsC0JlMYVrqRB/b6qHZsqqjJ344ioJ6YYjXE2V2pSfWy8 I2WDYX3NMeZKzp5TCYMkuAqrohKaUoSkr3oMQPEUWGitrOiSis2KuSQ/OW20xFbwxcai Bmvg== X-Gm-Message-State: AOAM533MBPuz1x7vQUhdXMWM4AWLjl++sUFUcR9WoB0aRD+YQjX8DC+G 6qRljWuDsQ7g7IvywW88Wgw= X-Received: by 2002:a17:907:2a85:: with SMTP id fl5mr13028347ejc.91.1630929934659; Mon, 06 Sep 2021 05:05:34 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id b8sm4536954edv.96.2021.09.06.05.05.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 05:05:34 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, p.zabel@pengutronix.de, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 3/4] thermal: rockchip_thermal: allow more resets for tsadc node Date: Mon, 6 Sep 2021 14:04:03 +0200 Message-Id: <20210906120404.10005-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210906120404.10005-1-jbx6244@gmail.com> References: <20210906120404.10005-1-jbx6244@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The tsadc node in rk356x.dtsi has more resets then currently supported by the rockchip_thermal.c driver, so use devm_reset_control_array_get() to reset them all. Signed-off-by: Johan Jonker --- drivers/thermal/rockchip_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c index 657d84b99..dc3a9c276 100644 --- a/drivers/thermal/rockchip_thermal.c +++ b/drivers/thermal/rockchip_thermal.c @@ -1383,7 +1383,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev) if (IS_ERR(thermal->regs)) return PTR_ERR(thermal->regs); - thermal->reset = devm_reset_control_get(&pdev->dev, "tsadc-apb"); + thermal->reset = devm_reset_control_array_get(&pdev->dev, false, false); if (IS_ERR(thermal->reset)) { error = PTR_ERR(thermal->reset); dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error); -- 2.20.1