dt-bindings: reset: convert Hisilicon reset controller bindings to json-schema
PATCH v3 1/4 reset: hisilicon: correct vendor prefix
In reply to Zhen LeiThe vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "vendor-prefixes.yaml".
For backward compatibility reasons fall back to the deprecated compatible if the new one failed.
--- drivers/reset/hisilicon/reset-hi3660.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/reset/hisilicon/reset-hi3660.c +7 -2
@@ -83,9 +83,14 @@ static int hi3660_reset_probe(struct platform_device *pdev)if (!rc)return -ENOMEM ; - rc->map =syscon_regmap_lookup_by_phandle (np,"hisi,rst-syscon" ); + rc->map =syscon_regmap_lookup_by_phandle (np,"hisilicon,rst-syscon" ); +if (rc->map ==ERR_PTR (-ENODEV )) { +/* fall back to the deprecated compatible */ + rc->map =syscon_regmap_lookup_by_phandle (np, +"hisi,rst-syscon" ); + }if (IS_ERR (rc->map)) { -dev_err (dev,"failed to get hi3660,rst-syscon\n" ); +dev_err (dev,"failed to get hisilicon,rst-syscon\n" );return PTR_ERR (rc->map); }
Signature · 1 line
1.8.3
PATCH v3 4/4 dt-bindings: reset: convert Hisilicon reset controller bindings to json-schema
In reply to Zhen LeiConvert the Hisilicon reset controller binding to DT schema format using json-schema.
--- .../bindings/reset/hisilicon,hi3660-reset.txt | 44 ------------- .../bindings/reset/hisilicon,hi3660-reset.yaml | 77 ++++++++++++++++++++++ 2 files changed, 77 insertions(+), 44 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.yaml
Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt deleted +0 -44
@@ -1,44 +0,0 @@ -Hisilicon System Reset Controller -====================================== - -Please also refer to reset.txt in this directory for common reset -controller binding usage. - -The reset controller registers are part of the system-ctl block on -hi3660 and hi3670 SoCs. - -Required properties: -- compatible: should be one of the following: - "hisilicon,hi3660-reset" for HI3660 - "hisilicon,hi3670-reset", "hisilicon,hi3660-reset" for HI3670 -- hisilicon,rst-syscon: phandle of the reset's syscon. -- #reset-cells : Specifies the number of cells needed to encode a - reset source. The type shall be a <u32> and the value shall be 2. - - Cell #1 : offset of the reset assert control - register from the syscon register base - offset + 4: deassert control register - offset + 8: status control register - Cell #2 : bit position of the reset in the reset control register - -Example: - iomcu: iomcu@ffd7e000 { - compatible = "hisilicon,hi3660-iomcu", "syscon"; - reg = <0x0 0xffd7e000 0x0 0x1000>; - }; - - iomcu_rst: iomcu_rst_controller { - compatible = "hisilicon,hi3660-reset"; - hisilicon,rst-syscon = <&iomcu>; - #reset-cells = <2>; - }; - -Specifying reset lines connected to IP modules -============================================== -example: - - i2c0: i2c@..... { - ... - resets = <&iomcu_rst 0x20 3>; /* offset: 0x20; bit: 3 */ - ... - };
Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.yaml new file +77 -0
77 lines not on this page · raw message
Signature · 1 line
1.8.3
PATCH v3 2/4 arm64: dts: correct vendor prefix hisi to hisilicon
In reply to Zhen LeiThe vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "vendor-prefixes.yaml".
--- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 4 ++-- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/hisilicon/hi3660.dtsi +2 -2
@@ -345,7 +345,7 @@ crg_rst: crg_rst_controller { compatible = "hisilicon,hi3660-reset"; #reset-cells = <2>; - hisi,rst-syscon = <&crg_ctrl>; + hisilicon,rst-syscon = <&crg_ctrl>; };
@@ -376,7 +376,7 @@ iomcu_rst: reset { compatible = "hisilicon,hi3660-reset"; - hisi,rst-syscon = <&iomcu>; + hisilicon,rst-syscon = <&iomcu>; #reset-cells = <2>; };
arch/arm64/boot/dts/hisilicon/hi3670.dtsi +1 -1
@@ -155,7 +155,7 @@ compatible = "hisilicon,hi3670-reset", "hisilicon,hi3660-reset"; #reset-cells = <2>; - hisi,rst-syscon = <&crg_ctrl>; + hisilicon,rst-syscon = <&crg_ctrl>; }; pctrl: pctrl@e8a09000 {
Signature · 1 line
1.8.3
PATCH v3 3/4 dt-bindings: reset: correct vendor prefix hisi to hisilicon
In reply to Zhen LeiThe vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "vendor-prefixes.yaml".
--- Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt +2 -2
@@ -11,7 +11,7 @@ Required properties: - compatible: should be one of the following: "hisilicon,hi3660-reset" for HI3660 "hisilicon,hi3670-reset", "hisilicon,hi3660-reset" for HI3670 -- hisi,rst-syscon: phandle of the reset's syscon. +- hisilicon,rst-syscon: phandle of the reset's syscon. - #reset-cells : Specifies the number of cells needed to encode a reset source. The type shall be a <u32> and the value shall be 2.
@@ -29,7 +29,7 @@ Example: iomcu_rst: iomcu_rst_controller { compatible = "hisilicon,hi3660-reset"; - hisi,rst-syscon = <&iomcu>; + hisilicon,rst-syscon = <&iomcu>; #reset-cells = <2>; };
Signature · 1 line
1.8.3
v3 cover dt-bindings: reset: convert Hisilicon reset controller bindings to json-schema
v2 --> v3:
1. Keep device tree patches and reset driver patch separate, as they were in v1. That is, revert v2.
2. When the new compatible match failed, fall back to the deprecated compatible.
3. Fix a typo, correct "hi3660,rst-syscon" to "hisilicon,rst-syscon".
v1 --> v2:
Merge the driver and DT modification(correct vendor prefix hisi to hisilicon) into one patch.
v1:
Patch 1-3 change the vendor prefix from "hisi" to "hisilicon", to eliminate below warnings:
crg_rst_controller: 'hisi,rst-syscon' does not match any of the regexes: '^#.*', ... , '^hisilicon,.*', ... From schema: /root/leizhen/linux-next/Documentation/devicetree/bindings/vendor-prefixes.yaml
Patch 4 does the json-schema conversion.
Zhen Lei (4):
reset: hisilicon: correct vendor prefix
arm64: dts: correct vendor prefix hisi to hisilicon
dt-bindings: reset: correct vendor prefix hisi to hisilicon
dt-bindings: reset: convert Hisilicon reset controller bindings to
json-schema
.../bindings/reset/hisilicon,hi3660-reset.txt | 44 ------------- .../bindings/reset/hisilicon,hi3660-reset.yaml | 77 ++++++++++++++++++++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 4 +- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 2 +- drivers/reset/hisilicon/reset-hi3660.c | 9 ++- 5 files changed, 87 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.yaml
Signature · 8 lines
1.8.3 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v3 3/4] dt-bindings: reset: correct vendor prefix hisi to hisilicon
In reply to Zhen LeiQuoted 10 lines · Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "
vendor-prefixes.yaml".Fixes 836e23549583 ("dt-bindings: Document the hi3660 reset bindings")Signed-off-by Zhen Lei <[email protected]>Cc Zhangfei Gao <[email protected]>--- Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 11 lines · Zhen Lei
Convert the Hisilicon reset controller binding to DT schema format using json-schema.
Signed-off-by Zhen Lei <[email protected]>--- .../bindings/reset/hisilicon,hi3660-reset.txt | 44 ------------- .../bindings/reset/hisilicon,hi3660-reset.yaml | 77 ++++++++++++++++++++++ 2 files changed, 77 insertions(+), 44 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.txt create mode 100644 Documentation/devicetree/bindings/reset/hisilicon,hi3660-reset.yaml
Philipp Zabel
maintainerQuoted 9 lines · Zhen Lei
v2 --> v3:
1. Keep device tree patches and reset driver patch separate, as they were in v1. That is, revert v2.
2. When the new compatible match failed, fall back to the deprecated compatible.
3. Fix a typo, correct "hi3660,rst-syscon" to "hisilicon,rst-syscon".v1 --> v2:
Merge the driver and DT modification(correct vendor prefix hisi to hisilicon) into one patch.
Quoted 6 lines
v1:
Patch 1-3 change the vendor prefix from "hisi" to "hisilicon", to eliminate below warnings:
crg_rst_controller: 'hisi,rst-syscon' does not match any of the regexes: '^#.*', ... , '^hisilicon,.*', ... From schema:/root/leizhen/linux-next/Documentation/devicetree/bindings/vendor-prefixes.yamlPatch 4 does the json-schema conversion.
Thank you, I've applied patches 1, 3, and 4 to the reset/next branch.
regards
Philipp
Wei Xu
maintainerRe: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
In reply to Zhen LeiHi Zhen Lei,
Quoted 8 lines · Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "
vendor-prefixes.yaml".Fixes 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC")Fixes dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC")Signed-off-by Zhen Lei <[email protected]>Cc Chen Feng <[email protected]>Cc Manivannan Sadhasivam <[email protected]>
Thanks!
Applied to the hisilicon arm64 dt tree.
Best Regards,
Wei
Quoted 33 lines
--- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 4 ++-- arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)arch/arm64/boot/dts/hisilicon/hi3660.dtsi +2
-2@@ -345,7 +345,7 @@ crg_rst: crg_rst_controller { compatible = "hisilicon,hi3660-reset"; #reset-cells = <2>; - hisi,rst-syscon = <&crg_ctrl>; + hisilicon,rst-syscon = <&crg_ctrl>; };@@ -376,7 +376,7 @@ iomcu_rst: reset { compatible = "hisilicon,hi3660-reset"; - hisi,rst-syscon = <&iomcu>; + hisilicon,rst-syscon = <&iomcu>; #reset-cells = <2>; };arch/arm64/boot/dts/hisilicon/hi3670.dtsi +0
-0
arch/arm64/boot/dts/hisilicon/hi3670.dtsi line 161
Quoted 8 lines
arch/arm64/boot/dts/hisilicon/hi3670.dtsi +1
-1@@ -155,7 +155,7 @@ compatible = "hisilicon,hi3670-reset", "hisilicon,hi3660-reset"; #reset-cells = <2>; - hisi,rst-syscon = <&crg_ctrl>; + hisilicon,rst-syscon = <&crg_ctrl>; }; pctrl: pctrl@e8a09000 {
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
In reply to Zhen LeiQuoted 9 lines · Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "
vendor-prefixes.yaml".Fixes 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC")Fixes dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC")Signed-off-by Zhen Lei <[email protected]>Cc Chen Feng <[email protected]>Cc Manivannan Sadhasivam <[email protected]>
I see this change in the pull request I got, but I'm a bit worried about the incompatible binding change. Wouldn't the correct path forward be to list both the correct and the incorrect properties, both in the dts file and in the driver that interprets the properties?
The binding file in this case would need to list the old name as deprecated, though I'm not sure how that would work without causing a warning about the unknown vendor prefix.
Arnd
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Wei Xu
maintainerRe: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
Hi Arnd,
Quoted 11 lines · Arnd Bergmann
Quoted 9 lines · Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "
vendor-prefixes.yaml".Fixes 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC")Fixes dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC")Signed-off-by Zhen Lei <[email protected]>Cc Chen Feng <[email protected]>Cc Manivannan Sadhasivam <[email protected]>
Quoted 4 lines
I see this change in the pull request I got, but I'm a bit worried about the incompatible binding change. Wouldn't the correct path forward be to list both the correct and the incorrect properties, both in the dts file and in the driver that interprets the properties?
Thanks for the comment!
The reset driver will look for "hisilicon" firstly and fall back to "hisi". And the DTS is shipped with the driver together.
So I think there is no compatible issue here.
Please let me know if missed anything. Thanks!
Best Regards,
Wei
Quoted 8 lines
The binding file in this case would need to list the old name as deprecated, though I'm not sure how that would work without causing a warning about the unknown vendor prefix.
Arnd
.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
In reply to Arnd BergmannQuoted 11 lines · Arnd Bergmann
Quoted 9 lines · Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "
vendor-prefixes.yaml".Fixes 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC")Fixes dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC")Signed-off-by Zhen Lei <[email protected]>Cc Chen Feng <[email protected]>Cc Manivannan Sadhasivam <[email protected]>
Quoted 4 lines
I see this change in the pull request I got, but I'm a bit worried about the incompatible binding change. Wouldn't the correct path forward be to list both the correct and the incorrect properties, both in the dts file and in the driver that interprets the properties?
Hi, Arnd:
This is one of the patch series. The other three patches have been applied by Philipp Zabel and are currently in linux-next.
https://lkml.org/lkml/2020/12/10/697
Quoted 9 lines
The binding file in this case would need to list the old name as deprecated, though I'm not sure how that would work without causing a warning about the unknown vendor prefix.
Arnd
.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
In reply to Wei XuQuoted 17 lines · Wei Xu
Quoted 11 lines · Arnd Bergmann
Quoted 9 lines · Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "
vendor-prefixes.yaml".Fixes 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC")Fixes dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC")Signed-off-by Zhen Lei <[email protected]>Cc Chen Feng <[email protected]>Cc Manivannan Sadhasivam <[email protected]>Quoted 4 lines
I see this change in the pull request I got, but I'm a bit worried about the incompatible binding change. Wouldn't the correct path forward be to list both the correct and the incorrect properties, both in the dts file and in the driver that interprets the properties?
Quoted 5 lines
Thanks for the comment!
The reset driver will look for "hisilicon" firstly and fall back to "hisi". And the DTS is shipped with the driver together.
So I think there is no compatible issue here.
Please let me know if missed anything. Thanks!
There are three things that can go wrong here, and this is only addressing one of them:
1. Updating the kernel on a machine with a dtb provided by the firmware is a problem if the new driver can not handle the old properties. This is correctly handled by the driver's fallback as soon as both trees are merged.
2. Updating the dtb while running an older kernel is now broken since the driver can no longer read the property. This is less critical, but it does seem easy enough to work around here by leaving both properties in place.
3. Bisecting through the git history across an incompatible change means you can run into broken commits. We try hard to avoid that if we are aware of a problem in advance. In this case it could be avoided by only merging the incompatible DT change in a following merge window after the driver change, or (better) by making it a backward-compatible change the same way as addressing 2.
Arnd
Wei Xu
maintainerRe: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
Hi Arnd,
Quoted 18 lines · Arnd Bergmann
Quoted 17 lines · Wei Xu
Quoted 15 lines · Arnd Bergmann
Quoted 9 lines · Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "
vendor-prefixes.yaml".Fixes 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC")Fixes dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC")Signed-off-by Zhen Lei <[email protected]>Cc Chen Feng <[email protected]>Cc Manivannan Sadhasivam <[email protected]>I see this change in the pull request I got, but I'm a bit worried about the incompatible binding change. Wouldn't the correct path forward be to list both the correct and the incorrect properties, both in the dts file and in the driver that interprets the properties?
Quoted 8 lines
Quoted 5 lines
Thanks for the comment!
The reset driver will look for "hisilicon" firstly and fall back to "hisi". And the DTS is shipped with the driver together.
So I think there is no compatible issue here.
Please let me know if missed anything. Thanks!There are three things that can go wrong here, and this is only addressing one of them:
Thanks for the detailed explanation!
Quoted 5 lines
1. Updating the kernel on a machine with a dtb provided by the firmware is a problem if the new driver can not handle the old properties. This is correctly handled by the driver's fallback as soon as both trees are merged.
Agreed and the driver has been merged into the v5.11-rc1.
Quoted 5 lines
2. Updating the dtb while running an older kernel is now broken since the driver can no longer read the property. This is less critical, but it does seem easy enough to work around here by leaving both properties in place.
Yes, it is.
But if leaving both in place, the dtbs_check will report following warning again:
'hisi,rst-syscon' does not match any of the regexes
That is why leizhen changed the dtb.
Do you think it is OK to assume no one will use the new dtb with an older kernel?
Quoted 7 lines
3. Bisecting through the git history across an incompatible change means you can run into broken commits. We try hard to avoid that if we are aware of a problem in advance. In this case it could be avoided by only merging the incompatible DT change in a following merge window after the driver change, or (better) by making it a backward-compatible change the same way as addressing 2.
Yes, agreed.
And The DT change pull request is sent after the driver has been merged into v5.11-rc1.
Really appreciate the detail you went to!
Best Regards,
Wei
Quoted 4 lines
Arnd
.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Wei Xu
maintainerRe: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
Hi Arnd,
Quoted 33 lines · Wei Xu
Hi Arnd,
Quoted 18 lines · Arnd Bergmann
Quoted 17 lines · Wei Xu
Quoted 15 lines · Arnd Bergmann
Quoted 9 lines · Zhen Lei
The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly stated in "
vendor-prefixes.yaml".Fixes 35ca8168133c ("arm64: dts: Add dts files for Hisilicon Hi3660 SoC")Fixes dd8c7b78c11b ("arm64: dts: Add devicetree for Hisilicon Hi3670 SoC")Signed-off-by Zhen Lei <[email protected]>Cc Chen Feng <[email protected]>Cc Manivannan Sadhasivam <[email protected]>I see this change in the pull request I got, but I'm a bit worried about the incompatible binding change. Wouldn't the correct path forward be to list both the correct and the incorrect properties, both in the dts file and in the driver that interprets the properties?
Quoted 8 lines
Quoted 5 lines
Thanks for the comment!
The reset driver will look for "hisilicon" firstly and fall back to "hisi". And the DTS is shipped with the driver together.
So I think there is no compatible issue here.
Please let me know if missed anything. Thanks!There are three things that can go wrong here, and this is only addressing one of them:
Thanks for the detailed explanation!
Quoted 1 line
Quoted 6 lines
Quoted 4 lines
1. Updating the kernel on a machine with a dtb provided by the firmware is a problem if the new driver can not handle the old properties. This is correctly handled by the driver's fallback as soon as both trees are merged.
Agreed and the driver has been merged into the v5.11-rc1.
Sorry, I made a mistake. It has been merged into linux-next *not* the v5.11-rc1.
Quoted 22 lines
Quoted 6 lines
2. Updating the dtb while running an older kernel is now broken since the driver can no longer read the property. This is less critical, but it does seem easy enough to work around here by leaving both properties in place.
Yes, it is.
But if leaving both in place, thedtbs_checkwill report following warning again:
'hisi,rst-syscon' does not match any of the regexesThat is why leizhen changed the dtb.
Do you think it is OK to assume no one will use the new dtb with an older kernel?Quoted 7 lines
3. Bisecting through the git history across an incompatible change means you can run into broken commits. We try hard to avoid that if we are aware of a problem in advance. In this case it could be avoided by only merging the incompatible DT change in a following merge window after the driver change, or (better) by making it a backward-compatible change the same way as addressing 2.
Quoted 2 lines
Yes, agreed.
And The DT change pull request is sent after the driver has been merged into v5.11-rc1.
I can drop this patch and revert what I have changed in Mauro's following patch:
"arm64: dts: hisilicon: hi3670.dtsi: add iomcu_rst"
Then resend the pull request. And pick up this patch after the next merge window. Do you think is it OK?
Thanks!
Best Regards,
Wei
Quoted 10 lines
Really appreciate the detail you went to!
Best Regards,
WeiQuoted 4 lines
Arnd
.
Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
Quoted 22 lines · Wei Xu
Quoted 21 lines · Wei Xu
Quoted 4 lines · Arnd Bergmann
2. Updating the dtb while running an older kernel is now broken since the driver can no longer read the property. This is less critical, but it does seem easy enough to work around here by leaving both properties in place.
Yes, it is.
But if leaving both in place, thedtbs_checkwill report following warning again:
'hisi,rst-syscon' does not match any of the regexesThat is why leizhen changed the dtb.
Do you think it is OK to assume no one will use the new dtb with an older kernel?Quoted 7 lines
3. Bisecting through the git history across an incompatible change means you can run into broken commits. We try hard to avoid that if we are aware of a problem in advance. In this case it could be avoided by only merging the incompatible DT change in a following merge window after the driver change, or (better) by making it a backward-compatible change the same way as addressing 2.
Quoted 8 lines
Quoted 2 lines
Yes, agreed.
And The DT change pull request is sent after the driver has been merged into v5.11-rc1.I can drop this patch and revert what I have changed in Mauro's following patch:
"arm64: dts: hisilicon: hi3670.dtsi: add iomcu_rst"Then resend the pull request. And pick up this patch after the next merge window. Do you think is it OK?
Let's start with the updated pull request without this patch so I can merge the other changes you sent.
I'm still not convinced it helps to drop the property rather than having both. I think it should be possible to list the old property name in the binding as 'deprecated' and keep it in the .dts for backwards compatibility but leave it out in future dts files. Maybe move it into the board .dts file(s) and make the .dtsi file have only the new property.
Arnd
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Wei Xu
maintainerRe: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon
Hi Arnd,
Quoted 26 lines · Arnd Bergmann
Quoted 25 lines · Wei Xu
Quoted 23 lines · Wei Xu
Quoted 4 lines · Arnd Bergmann
2. Updating the dtb while running an older kernel is now broken since the driver can no longer read the property. This is less critical, but it does seem easy enough to work around here by leaving both properties in place.
Yes, it is.
But if leaving both in place, thedtbs_checkwill report following warning again:
'hisi,rst-syscon' does not match any of the regexesThat is why leizhen changed the dtb.
Do you think it is OK to assume no one will use the new dtb with an older kernel?Quoted 7 lines
3. Bisecting through the git history across an incompatible change means you can run into broken commits. We try hard to avoid that if we are aware of a problem in advance. In this case it could be avoided by only merging the incompatible DT change in a following merge window after the driver change, or (better) by making it a backward-compatible change the same way as addressing 2.
Yes, agreed.
And The DT change pull request is sent after the driver has been merged into v5.11-rc1.
Quoted 8 lines
Quoted 5 lines
I can drop this patch and revert what I have changed in Mauro's following patch:
"arm64: dts: hisilicon: hi3670.dtsi: add iomcu_rst"Then resend the pull request. And pick up this patch after the next merge window. Do you think is it OK?
Let's start with the updated pull request without this patch so I can merge the other changes you sent.
Got it. Thanks!
Quoted 6 lines
I'm still not convinced it helps to drop the property rather than having both. I think it should be possible to list the old property name in the binding as 'deprecated' and keep it in the .dts for backwards compatibility but leave it out in future dts files. Maybe move it into the board .dts file(s) and make the .dtsi file have only the new property.
Thanks!
I will check with Lei Zhen to see which is possible.
Best Regards,
Wei
Quoted 4 lines
Arnd
.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel