From: Johan Jonker <hidden> Date: 2021-09-30 11:05:38
The tsadc node in rk356x.dtsi has more resets defined then currently
allowed by rockchip-thermal.yaml, so fix that in the documentation.
The driver now uses the devm_reset_control_array_get() function,
so reset-names is no longer required, but keep it for legacy reasons.
Signed-off-by: Johan Jonker <redacted>
---
Changed V2:
Remove deprecated
---
.../devicetree/bindings/thermal/rockchip-thermal.yaml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
From: Johan Jonker <hidden> Date: 2021-09-30 11:05:43
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 <redacted>
---
drivers/thermal/rockchip_thermal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -1383,7 +1383,7 @@ static int rockchip_thermal_probe(struct platform_device *pdev)if(IS_ERR(thermal->regs))returnPTR_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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Johan Jonker <hidden> Date: 2021-09-30 11:05:45
In the rockchip_thermal.c driver we now get the resets with
a devm_reset_control_array_get() function, so remove
the reset-names property as it is no longer needed.
Although no longer required in rockchip-thermal.yaml
sort tsadc-apb as first item.
Signed-off-by: Johan Jonker <redacted>
---
arch/arm64/boot/dts/rockchip/rk356x.dtsi | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
From: Rob Herring <robh@kernel.org> Date: 2021-10-06 21:14:00
On Thu, 30 Sep 2021 13:05:14 +0200, Johan Jonker wrote:
The tsadc node in rk356x.dtsi has more resets defined then currently
allowed by rockchip-thermal.yaml, so fix that in the documentation.
The driver now uses the devm_reset_control_array_get() function,
so reset-names is no longer required, but keep it for legacy reasons.
Signed-off-by: Johan Jonker <redacted>
---
Changed V2:
Remove deprecated
---
.../devicetree/bindings/thermal/rockchip-thermal.yaml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
On Thu, 30 Sep 2021 13:05:14 +0200, Johan Jonker wrote:
The tsadc node in rk356x.dtsi has more resets defined then currently
allowed by rockchip-thermal.yaml, so fix that in the documentation.
The driver now uses the devm_reset_control_array_get() function,
so reset-names is no longer required, but keep it for legacy reasons.
Applied, thanks!
Fixed the patch subject to the regular prefixes.
[4/4] arm64: dts: fix resets in tsadc node for rk356x.dtsi
commit: 5c9e66c6b75a754025c74bde7b7a6c52674d8aa1
Best regards,
--
Heiko Stuebner [off-list ref]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel