* [PATCH] ARM: dts: skov-imx6: fix wrong display-timings native-mode binding
@ 2022-12-19 18:18 Ahmad Fatoum
2022-12-19 22:26 ` Sam Ravnborg
0 siblings, 1 reply; 3+ messages in thread
From: Ahmad Fatoum @ 2022-12-19 18:18 UTC (permalink / raw)
To: barebox; +Cc: jbe, ore, Ahmad Fatoum
The value of the native-mode property is supposed to be a phandle to
the entry in question, but instead the full node path was used because
the <angle brackets> were missing. Fix this. This should not involve any
functional change as the default mode would've been the first element,
which is the same element the malformed native-mode now points at.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
arch/arm/dts/imx6qdl-skov-imx6.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/dts/imx6qdl-skov-imx6.dtsi b/arch/arm/dts/imx6qdl-skov-imx6.dtsi
index f4610ee1e7ba..156722b95a3c 100644
--- a/arch/arm/dts/imx6qdl-skov-imx6.dtsi
+++ b/arch/arm/dts/imx6qdl-skov-imx6.dtsi
@@ -146,7 +146,7 @@
};
display-timings {
- native-mode = &l2rt;
+ native-mode = <&l2rt>;
l2rt: l2rt {
native-mode;
--
2.30.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: skov-imx6: fix wrong display-timings native-mode binding
2022-12-19 18:18 [PATCH] ARM: dts: skov-imx6: fix wrong display-timings native-mode binding Ahmad Fatoum
@ 2022-12-19 22:26 ` Sam Ravnborg
2022-12-20 9:25 ` Ahmad Fatoum
0 siblings, 1 reply; 3+ messages in thread
From: Sam Ravnborg @ 2022-12-19 22:26 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox, jbe, ore
Hi Ahmad.
On Mon, Dec 19, 2022 at 07:18:39PM +0100, Ahmad Fatoum wrote:
> The value of the native-mode property is supposed to be a phandle to
> the entry in question, but instead the full node path was used because
> the <angle brackets> were missing. Fix this. This should not involve any
> functional change as the default mode would've been the first element,
> which is the same element the malformed native-mode now points at.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> arch/arm/dts/imx6qdl-skov-imx6.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/dts/imx6qdl-skov-imx6.dtsi b/arch/arm/dts/imx6qdl-skov-imx6.dtsi
> index f4610ee1e7ba..156722b95a3c 100644
> --- a/arch/arm/dts/imx6qdl-skov-imx6.dtsi
> +++ b/arch/arm/dts/imx6qdl-skov-imx6.dtsi
> @@ -146,7 +146,7 @@
> };
>
> display-timings {
> - native-mode = &l2rt;
> + native-mode = <&l2rt>;
The fix is OK, but could you also fix the other similar bugs in the
tree?
A quick grep identified the following that all looks wrong:
arch/arm/dts/imx6q-var-custom.dts: native-mode = &claawvga;
arch/arm/dts/imx6qdl-skov-imx6.dtsi: native-mode = &l2rt
arch/arm/dts/imx6qdl-skov-imx6.dtsi: native-mode = &mi1010ait_1cp1;
I took a quick look, and to my surprise I found no similar bugs in the
kernel.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: skov-imx6: fix wrong display-timings native-mode binding
2022-12-19 22:26 ` Sam Ravnborg
@ 2022-12-20 9:25 ` Ahmad Fatoum
0 siblings, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2022-12-20 9:25 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: barebox, jbe, ore
On 19.12.22 23:26, Sam Ravnborg wrote:
> Hi Ahmad.
>
> On Mon, Dec 19, 2022 at 07:18:39PM +0100, Ahmad Fatoum wrote:
>> The value of the native-mode property is supposed to be a phandle to
>> the entry in question, but instead the full node path was used because
>> the <angle brackets> were missing. Fix this. This should not involve any
>> functional change as the default mode would've been the first element,
>> which is the same element the malformed native-mode now points at.
>>
>> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
>> ---
>> arch/arm/dts/imx6qdl-skov-imx6.dtsi | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/dts/imx6qdl-skov-imx6.dtsi b/arch/arm/dts/imx6qdl-skov-imx6.dtsi
>> index f4610ee1e7ba..156722b95a3c 100644
>> --- a/arch/arm/dts/imx6qdl-skov-imx6.dtsi
>> +++ b/arch/arm/dts/imx6qdl-skov-imx6.dtsi
>> @@ -146,7 +146,7 @@
>> };
>>
>> display-timings {
>> - native-mode = &l2rt;
>> + native-mode = <&l2rt>;
>
> The fix is OK, but could you also fix the other similar bugs in the
> tree?
>
> A quick grep identified the following that all looks wrong:
>
> arch/arm/dts/imx6q-var-custom.dts: native-mode = &claawvga;
> arch/arm/dts/imx6qdl-skov-imx6.dtsi: native-mode = &l2rt
> arch/arm/dts/imx6qdl-skov-imx6.dtsi: native-mode = &mi1010ait_1cp1;
Yes, I can do that.
> I took a quick look, and to my surprise I found no similar bugs in the
> kernel.
The power of machine readable (and checkable) bindings :)
Thanks,
Ahmad
>
> Sam
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-20 9:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 18:18 [PATCH] ARM: dts: skov-imx6: fix wrong display-timings native-mode binding Ahmad Fatoum
2022-12-19 22:26 ` Sam Ravnborg
2022-12-20 9:25 ` Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox