Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp283927pxb; Thu, 30 Sep 2021 06:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzsmupi/o+mpDVZpqtN4kYDKK8SC9wDei3KECiSn25tmteOYnXdlWTuFRaGdtqVKUnYUcC X-Received: by 2002:a05:6a00:bcf:b0:44b:8d5c:e2dc with SMTP id x15-20020a056a000bcf00b0044b8d5ce2dcmr4199607pfu.66.1633007221596; Thu, 30 Sep 2021 06:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633007221; cv=none; d=google.com; s=arc-20160816; b=bEK/aZt4DGQjRATHgg3kWdrIwikQHZys6kNqrj8Lq8Dc/vTgclQgJyswrqQe8A3TRI Pqz0whBEbf29RHg0s9qyAioQcbkXn5FPBHx1dr6+sLRBJ0EB5Gox3Vw3FxyFOVEUR2QJ +XRPdLyAyiVxMvHNqlXFYZbKpHONhzr5ryL5aftEkr7Y8dva4Gu5PAMJbkC+mWzrjxvG YVSMsbz4OzDGMn5wbILdrqI5joKzT05iK5s95aYSGmLiShlvzErUq7RQf0ealf5HZvTa HUnTFLnu2pOUpdIJCSBZ2zlIrb8GuGm2978T4h4hOKIDRBojrb/TfZrGQe/fCNL1K/i+ 7lKw== 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=sb55SGRlI4LObbHcfqdLzdWZntlaMXaojpeej4VnqPY5KmbOo7wGC69PeZLiCcLKSE X1IaWEGU7xm580yeXHWqR5ncrsbYALr4vNz32uM8DqCcxJd+oEZy52eU3a3KAFB+xPkK JX9OjAz4cTmIO5uJqb2Y+t68b21Op9/31P3QNXbOeiB4jUaU1XTkYW1OtwvvPU7Vktc1 oJ/53R9lW5Ph2d9uXhd7Jrv0ovN9sCbDMh6P7rqJJ6nxvVUdX2JRtLZ9WRwiF95QJh/P 1uTtfgv8Bk5VAXyhGcHcIhreZMAEeVCVx47rNLFIIK3/mGcGMsia5QnCdhrOJRvm+OTS JxYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YIAyiuXj; 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 18si4413066pge.376.2021.09.30.06.06.39; Thu, 30 Sep 2021 06:07:01 -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=YIAyiuXj; 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 S1350327AbhI3LHU (ORCPT + 99 others); Thu, 30 Sep 2021 07:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350289AbhI3LHJ (ORCPT ); Thu, 30 Sep 2021 07:07:09 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE4FBC06176D; Thu, 30 Sep 2021 04:05:26 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id r18so20352221edv.12; Thu, 30 Sep 2021 04:05:26 -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=YIAyiuXj/TtHZgfD2uNj3qmZAlvslgwfgTNImQjcTdmg+Y0ntcaFbzPyE9bkbxkgAN M1ASIms+oiGJu6DgPXnYDYGFcGuhw7XKUf/d8oW8XpG/uj+r23Klbf55Ztl73wo08hoT U72PM3uKbn25ZloGgWDhNv6s1jnsujztSXFgPaxIhjHWwkFwfLSSyY+VYTKsYm1YFXsT soB47kM8dNuT5XZaQzy1oP6v2YzhJtjW6ei2LLj71QUvIkxzfF1QOtqOLuR7m5hPmGNv +rREb7AzVX29OMe3HXeg0CnDZ2ZYHHMBau41t9PJiLNu+Zr67jCrfAGBWbMii0HYO2h3 +p9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J5rWzfawpu0XOsLyVwwYFgYCCr8KgHSAplCrfWcEUCc=; b=z7cs9HSDyKBdmwCsfcS7soblI5QL6x8DrVNISlrdttEhts8L/18sX0jV8tNdJOugtc U6X97qR0xjgSPlGOV4i5eWzw7PTEpZt0Ops3Ma2+WN4in986r7kYOgDJ2JXQhI2WK6PA lZz5jzTqw8SuW+nv0gGxoB9Ii3AfuMun2UyRgkKV37SYxH8np5edq5zY+nOGYaq3dc/w PW4WHeCfaF9fKj1lbWKdYHZHKtcJH8cyPMYOrpbb4Z5lDriDEkenfpX9T2O0hmjJzaZ4 d82Gpos5K2z2F5H0HI3iPtblhEe5AJirHR7Ie7jkTgClDhxI4IBc3eYAl6YY1DyVkYko tVfw== X-Gm-Message-State: AOAM533JEFvG5AwYYZRGDj+fgJibJ5EdQ+/6REXxq7EUXHQ+MnROJTeb U/324MDjQ9WrloBqhUlymNE= X-Received: by 2002:a05:6402:203:: with SMTP id t3mr6332502edv.69.1632999925589; Thu, 30 Sep 2021 04:05:25 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id i2sm1305158edv.7.2021.09.30.04.05.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 04:05:25 -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: [PATCH v2 3/4] thermal: rockchip_thermal: allow more resets for tsadc node Date: Thu, 30 Sep 2021 13:05:16 +0200 Message-Id: <20210930110517.14323-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210930110517.14323-1-jbx6244@gmail.com> References: <20210930110517.14323-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