Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kieran Bingham" <kieran.bingham@ideasonboard.com>
Cc: wsa+renesas@sang-engineering.com, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, Frank.Li@kernel.org,
	imx@lists.linux.dev
Subject: Re: [PATCH v2 4/8] ARM: tegra: Convert to new media orientation definitions
Date: Fri, 26 Jun 2026 12:15:57 +0000	[thread overview]
Message-ID: <20260626121557.92C6D1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260626-kbingham-orientation-v2-4-47178be927b4@ideasonboard.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The commit introduces an undefined macro `MEDIA_ORIENTATION_REAR`, causing a Device Tree Compiler (dtc) build failure.
--

commit 26c9ba57e237b4ebfdbb6dbf2af353106c11c695
Author: Kieran Bingham <kieran.bingham@ideasonboard.com>

ARM: tegra: Convert to new media orientation definitions

The commit updates the NVIDIA device trees to use new media orientation
definitions instead of hardcoded integer values for video interface devices.

> diff --git a/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi b/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
> index 60e8a19aa70ec..c58e3026a115e 100644
> --- a/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
> +++ b/arch/arm/boot/dts/nvidia/tegra30-lg-x3.dtsi
[ ... ]
> @@ -1216,7 +1217,7 @@ rear-camera@10 {
>  			dvdd-supply = <&vdd_1v2_rear>;
>  			avdd-supply = <&vdd_2v7_rear>;
>  
> -			orientation = <1>; /* Rear camera */
> +			orientation = <MEDIA_ORIENTATION_REAR>;

[Severity: Low]
Will this cause a Device Tree Compiler build failure?

Looking at the dt-bindings/media/video-interface-devices.h header, it
defines MEDIA_ORIENTATION_FRONT, MEDIA_ORIENTATION_BACK, and
MEDIA_ORIENTATION_EXTERNAL.

Since MEDIA_ORIENTATION_REAR is undefined, the C preprocessor will leave it
as an unexpanded token, which will cause a syntax error when dtc parses it.
Could this be updated to use MEDIA_ORIENTATION_BACK instead?

>  			rotation = <90>;
>  
>  			nvmem = <&m24c08>;

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260626-kbingham-orientation-v2-0-47178be927b4@ideasonboard.com?part=4

  reply	other threads:[~2026-06-26 12:15 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-26 12:07 [PATCH v2 0/8] dt-bindings: Orientation defines Kieran Bingham
2026-06-26 12:07 ` [PATCH v2 1/8] dt-bindings: media: Add macros for video interface devices Kieran Bingham
2026-06-26 13:21   ` Vladimir Zapolskiy
2026-06-26 16:47   ` Frank Li
2026-06-26 12:07 ` [PATCH v2 2/8] media: dt-bindings: video-interface-devices: add video-interface-devices.h references Kieran Bingham
2026-06-26 13:21   ` Vladimir Zapolskiy
2026-06-26 14:30   ` Laurent Pinchart
2026-06-26 16:47   ` Frank Li
2026-06-26 12:07 ` [PATCH v2 3/8] dt-bindings: media: i2c: Utilise video-interface-devices enums Kieran Bingham
2026-06-26 13:22   ` Vladimir Zapolskiy
2026-06-26 14:31   ` Laurent Pinchart
2026-06-26 12:07 ` [PATCH v2 4/8] ARM: tegra: Convert to new media orientation definitions Kieran Bingham
2026-06-26 12:15   ` sashiko-bot [this message]
2026-06-26 12:33     ` Kieran Bingham
2026-06-26 14:33   ` Laurent Pinchart
2026-06-26 16:58     ` Kieran Bingham
2026-06-26 12:07 ` [PATCH v2 5/8] arm64: dts: freescale: " Kieran Bingham
2026-06-26 14:33   ` Laurent Pinchart
2026-06-26 12:07 ` [PATCH v2 6/8] arm64: dts: qcom: " Kieran Bingham
2026-06-26 12:30   ` Konrad Dybcio
2026-06-26 13:22   ` Vladimir Zapolskiy
2026-06-26 14:34   ` Laurent Pinchart
2026-06-26 12:07 ` [PATCH v2 7/8] arm64: dts: renesas: " Kieran Bingham
2026-06-26 12:30   ` Geert Uytterhoeven
2026-06-26 14:34   ` Laurent Pinchart
2026-06-26 12:08 ` [PATCH v2 8/8] arm64: dts: rockchip: " Kieran Bingham
2026-06-26 14:36   ` Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260626121557.92C6D1F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wsa+renesas@sang-engineering.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox