Thread (50 messages) 50 messages, 8 authors, 2022-11-07

Re: [PATCH 04/11] arm64: tegra: Enable XUSB host and device on Jetson AGX Orin

From: Thierry Reding <hidden>
Date: 2022-10-28 12:39:03
Also in: linux-devicetree, linux-i2c, linux-tegra, linux-usb, lkml

On Fri, Oct 28, 2022 at 07:27:09AM -0400, Krzysztof Kozlowski wrote:
On 28/10/2022 05:33, Jon Hunter wrote:
quoted
quoted
quoted
+			ucsi_ccg: ucsi_ccg@8 {
No underscores in node names.
quoted
+				compatible = "cypress,cypd4226";
+				cypress,firmware-build = "gn";
+				interrupt-parent = <&gpio>;
+				interrupts = <TEGRA234_MAIN_GPIO(Y, 4) IRQ_TYPE_LEVEL_LOW>;
+				reg = <0x08>;
+				status = "okay";
The pattern of redefining full path in Tegra is confusing - I have no
clue which of these status=okay are correct which are redundant.

Do you?
I understand you may not like this approach, however, this comment is 
not really relevant to just this patch, but a general comment. But yes 
we will ensure that this is correct.
Just to clarify - this status looks redundant, but I have no way to tell
for sure...
But that's independent of whether we specify this using the full path or
reference the node by label, isn't it? The only way to make sure that a
status = "okay" is not redundant is by manual inspection. I don't know
of an automated way to do that. Perhaps it's something that could be
added as a check to DTC?

In this particular case I don't think the status is needed. As Jon
mentioned, this device is first defined here and status = "okay" is the
default, so this is redundant.

Thierry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help