Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: 楊智成 <jason98166@gmail.com>
Cc: Sebastian Reichel <sebastian.reichel@collabora.com>,
	 Vinod Koul <vkoul@kernel.org>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	 Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	Heiko Stuebner <heiko@sntech.de>,
	 Guochun Huang <hero.huang@rock-chips.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	 Michael Riesch <michael.riesch@collabora.com>,
	Bryan O'Donoghue <bryan.odonoghue@linaro.org>,
	 linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-rockchip@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/5] dt-bindings: phy: Add PHY_TYPE_DSI and PHY_TYPE_CSI definitions
Date: Thu, 13 Aug 2026 09:59:32 +0200	[thread overview]
Message-ID: <20260813-imposing-cunning-raven-fcad40@quoll> (raw)
In-Reply-To: <CAPwA33+7k7HMC7ezwH+MGn64iRHT6tVNK55t6gaC0nkkqWoE4w@mail.gmail.com>

On Thu, Aug 13, 2026 at 12:33:52PM +0800, 楊智成 wrote:
> Hi Sebastian,
> 
> Thanks for the review.
> 
> > Your new binding is lacking too. If you select <&mipidcphy0 PHY_TYPE_CSI>
> > you defined the direction of the PHY, but will it operate in C-PHY or in
> > D-PHY mode?
> 
> You are right, and I am sorry - this is a regression I introduced in v3.
> 
> v2 already described these as two separate cells: the first selected the
> electrical layer, and the second selected the direction. Michael Riesch
> suggested using the generic PHY_TYPE_DSI/PHY_TYPE_CSI constants for the
> second cell instead of the Rockchip-private RK_DCPHY_DIR_* constants [1],
> and Vinod Koul agreed [2].
> 
> In v3, while making that change, I also mistakenly collapsed the two cells
> into one. That is what lost the electrical-layer information you pointed
> out.
> 
> For v4, I will go back to the v2 layout and only rename the second cell.
> This keeps the two dimensions separate, with each cell describing one
> thing:
> 
> /* MIPI DSI host - the transmitter */
> phys = <&mipidcphy0 PHY_TYPE_DPHY PHY_TYPE_DSI>;
> 
> /* MIPI CSI-2 host - the receiver */
> phys = <&mipidcphy0 PHY_TYPE_DPHY PHY_TYPE_CSI>;
> 
> The same applies to C-PHY, so the binding can express all four combinations
> without any further changes:
> 
> phys = <&mipidcphy0 PHY_TYPE_CPHY PHY_TYPE_DSI>;
> phys = <&mipidcphy0 PHY_TYPE_CPHY PHY_TYPE_CSI>;
> 
> The driver accepts all four combinations at phy_get() time and returns
> -EOPNOTSUPP from power_on() for the C-PHY combinations, as it did before
> this series. Boards that only wire up the transmitter keep
> '#phy-cells = <1>', so the existing in-tree device trees remain unaffected.
> 
> Before sending v4, I will go through the code and commit messages again,
> so that the reasoning above is captured in the commits themselves rather
> than only in this thread. I will also re-test the series on the board.

What is with this practice (third posting I see this week) of pasting
as reply prompts/tasks for AI?

All this is just wrong approach and your patches will be ignored if you
act as a proxy and keep playing with us that way.

Best regards,
Krzysztof



  reply	other threads:[~2026-08-13  7:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-10 12:10 [PATCH v3 0/5] phy: rockchip-samsung-dcphy: add the MIPI D-PHY receiver Jason Yang via B4 Relay
2026-08-10 12:10 ` [PATCH v3 1/5] dt-bindings: phy: Add PHY_TYPE_DSI and PHY_TYPE_CSI definitions Jason Yang via B4 Relay
2026-08-12 10:51   ` Krzysztof Kozlowski
2026-08-12 12:24     ` 楊智成
2026-08-13  0:02       ` Sebastian Reichel
2026-08-13  4:33         ` 楊智成
2026-08-13  7:59           ` Krzysztof Kozlowski [this message]
2026-08-13  8:40             ` 楊智成
2026-08-13  9:25               ` Krzysztof Kozlowski
2026-08-13  8:01       ` Krzysztof Kozlowski
2026-08-10 12:10 ` [PATCH v3 2/5] dt-bindings: phy: rockchip,rk3588-mipi-dcphy: allow DSI and CSI consumers Jason Yang via B4 Relay
2026-08-12 10:53   ` Krzysztof Kozlowski
2026-08-10 12:10 ` [PATCH v3 3/5] phy: rockchip-samsung-dcphy: factor MIPI D-PHY power on/off into helpers Jason Yang via B4 Relay
2026-08-10 12:10 ` [PATCH v3 4/5] phy: rockchip-samsung-dcphy: model TX and RX as separate PHYs Jason Yang via B4 Relay
2026-08-10 12:10 ` [PATCH v3 5/5] phy: rockchip-samsung-dcphy: add MIPI D-PHY receiver support Jason Yang via B4 Relay

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=20260813-imposing-cunning-raven-fcad40@quoll \
    --to=krzk@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=heiko@sntech.de \
    --cc=hero.huang@rock-chips.com \
    --cc=jason98166@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=michael.riesch@collabora.com \
    --cc=neil.armstrong@linaro.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=sebastian.reichel@collabora.com \
    --cc=vkoul@kernel.org \
    /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