From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Julien Massot <julien.massot@collabora.com>
Cc: j-luthra@ti.com, mchehab@kernel.org, mripard@kernel.org,
kernel@collabora.com, linux-media@vger.kernel.org
Subject: Re: [PATCH v2 1/5] media: cadence: csi2rx: use match fwnode for media link
Date: Mon, 18 Dec 2023 11:09:36 +0000 [thread overview]
Message-ID: <ZYAocHzVwMrLDFI2@kekkonen.localdomain> (raw)
In-Reply-To: <20231218095604.1950737-2-julien.massot@collabora.com>
Hi Julien,
Thanks for the patch.
On Mon, Dec 18, 2023 at 10:56:00AM +0100, Julien Massot wrote:
> On some subdev the fwnode is the device node and not the endpoint node.
> Using the subdev fwnode doesn't allow to fetch the subdev
> pad we are connected to when the remote subdev has multiple
> output pads.
I'd change the commit message, endpoint-to-endpoint matching used to be the
preferred way to do things not long ago.
>
> Fixes: 1fc3b37f34f69 ("media: v4l: cadence: Add Cadence MIPI-CSI2 RX driver")
I think the driver was originally fine but I missed making the below change
when changing async matching. Instead I think you should have here:
Fixes: 1029939b3782 ("media: v4l: async: Simplify async sub-device fwnode matching")
IOW applying your patch without 1029939b3782 will also break cdns-csi2rx
driver.
> Signed-off-by: Julien Massot <julien.massot@collabora.com>
> Reviewed-by: Jai Luthra <j-luthra@ti.com>
> ---
> drivers/media/platform/cadence/cdns-csi2rx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c
> index 91ef22e9109a..e83b877c48da 100644
> --- a/drivers/media/platform/cadence/cdns-csi2rx.c
> +++ b/drivers/media/platform/cadence/cdns-csi2rx.c
> @@ -467,7 +467,7 @@ static int csi2rx_async_bound(struct v4l2_async_notifier *notifier,
> struct csi2rx_priv *csi2rx = v4l2_subdev_to_csi2rx(subdev);
>
> csi2rx->source_pad = media_entity_get_fwnode_pad(&s_subdev->entity,
> - s_subdev->fwnode,
> + asd->match.fwnode,
> MEDIA_PAD_FL_SOURCE);
> if (csi2rx->source_pad < 0) {
> dev_err(csi2rx->dev, "Couldn't find output pad for subdev %s\n",
--
Regards,
Sakari Ailus
next prev parent reply other threads:[~2023-12-18 11:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-18 9:55 [PATCH v2 0/5] misc improvements for j721e-csi2rx Julien Massot
2023-12-18 9:56 ` [PATCH v2 1/5] media: cadence: csi2rx: use match fwnode for media link Julien Massot
2023-12-18 11:09 ` Sakari Ailus [this message]
2024-01-05 9:04 ` Julien Massot
2023-12-18 9:56 ` [PATCH v2 2/5] media: cadence: csi2rx: add Y8_1X8 format Julien Massot
2023-12-18 9:56 ` [PATCH v2 3/5] media: ti: j721e-csi2rx: add GREY format Julien Massot
2023-12-18 9:56 ` [PATCH v2 4/5] media: cadence: csi2rx: add support for RGB formats Julien Massot
2023-12-18 9:56 ` [PATCH v2 5/5] media: ti: j721e-csi2rx: " Julien Massot
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=ZYAocHzVwMrLDFI2@kekkonen.localdomain \
--to=sakari.ailus@linux.intel.com \
--cc=j-luthra@ti.com \
--cc=julien.massot@collabora.com \
--cc=kernel@collabora.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=mripard@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