mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Leonardo Costa <leoreis.costa@gmail.com>
Cc: Steve Longerbeam <slongerbeam@gmail.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Francesco Dolcini <francesco.dolcini@toradex.com>,
	Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
	Kieran Bingham <kieran.bingham@ideasonboard.com>,
	Frank Li <Frank.li@oss.nxp.com>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	leonardo.costa@toradex.com
Subject: Re: [RFC] media: i2c: ov5640: Implement get_mbus_config
Date: Mon, 21 Sep 2026 23:02:13 +0300	[thread overview]
Message-ID: <arGNRTpmYwB2_gLk@kekkonen.localdomain> (raw)
In-Reply-To: <ho5e5huh2b5biibucht2bxyj2hzih2dkqpskrxtvsaf34niboc@s5e6pok36m5i>

Hi Leonardo,

On Mon, Sep 21, 2026 at 03:04:59PM -0300, Leonardo Costa wrote:
> Hi all,
> 
> Some time ago, we had sent a patch that implemented the .get_mbus_config
> function for the OV5640 camera. This change was necessary for the camera to
> work with the i.MX6 after the v5.18 release.
> 
>     https://lore.kernel.org/all/20230306063649.7387-1-marcel@ziswiler.com/T/#u
> 
> The patch stirred some discussion, since .get_mbus_config wasn't supposed to be
> implemented on drivers that don't have dynamic lane configuration. There were
> proposals of implementing it in other points of the camera pipeline, but no
> conclusion was reached.
> 
> We are planning to send the overlays for this camera for the Apalis iMX6, but
> we verified that this patch is still needed for the camera to work on the
> current mainline. Below are the commands to configure the pipeline, which
> explicitly require a .get_mbus_config from the camera driver.
> 
>     root@apalis-imx6-11367581:~# media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]"
>     root@apalis-imx6-11367581:~# media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]"
>     root@apalis-imx6-11367581:~# media-ctl -l "'ipu1_csi1':2 -> 'ipu1_csi1 capture':0[1]"
>     root@apalis-imx6-11367581:~# media-ctl -V "'ov5640 1-003c':0 [fmt:UYVY8_1X16/1920x1080 field:none]"
>     root@apalis-imx6-11367581:~# media-ctl -V "'imx6-mipi-csi2':2 [fmt:UYVY8_1X16/1920x1080 field:none]"
>     [   47.438237] ipu1_csi1: entity ov5640 1-003c does not implement get_mbus_config()
>     [   47.438265] ipu1_csi1: failed to get upstream media bus configuration
>     root@apalis-imx6-11367581:~# media-ctl -V "'ipu1_csi1':2 [fmt:UYVY8_1X16/1920x1080 field:none]"
>     Unable to setup formats: Inappropriate ioctl for device (25)
>     [   62.616177] ipu1_csi1: entity ov5640 1-003c does not implement get_mbus_config()
>     [   62.616204] ipu1_csi1: failed to get upstream media bus configuration
> 
> I am not very familiar with this subsystem, and it's been years since this
> discussion took place, so I wanted to know what are your thoughts about this
> patch and what the correct approach would be here. Was there any change that
> would make this patch ok to be applied today? Do you think this still should
> be included somewhere else on the pipeline?

My objection to the approach was about adding code that does very little or
nothing to potentially a rather large number of drivers.

Since that we've gotten v4l2_get_active_data_lanes() that however seems to
be used by the imx-mipi-csis driver only. Could using that solve the
problem you have?

-- 
Regards,

Sakari Ailus

  reply	other threads:[~2026-09-21 20:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 18:04 Leonardo Costa
2026-09-21 20:02 ` Sakari Ailus [this message]
2026-09-22 12:32   ` Leonardo Costa
2026-09-22 16:12     ` Frank Li
2026-09-22 17:46       ` 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=arGNRTpmYwB2_gLk@kekkonen.localdomain \
    --to=sakari.ailus@linux.intel.com \
    --cc=Frank.li@oss.nxp.com \
    --cc=francesco.dolcini@toradex.com \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=kieran.bingham@ideasonboard.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=leonardo.costa@toradex.com \
    --cc=leoreis.costa@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=p.zabel@pengutronix.de \
    --cc=slongerbeam@gmail.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

all inboxes | Powered by JetHome®