From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Cc: linux-media@vger.kernel.org,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
Jai Luthra <j-luthra@ti.com>, Vaishnav Achath <vaishnav.a@ti.com>
Subject: Re: [PATCH v1 1/3] media: ti: cal: Add support for 1X16 mbus formats
Date: Thu, 23 Feb 2023 19:52:48 +0200 [thread overview]
Message-ID: <bca4cd33-eb4a-693f-5663-365459d89cc7@ideasonboard.com> (raw)
In-Reply-To: <20230223171021.ukttr2xwcuxlzdzu@uno.localdomain>
On 23/02/2023 19:10, Jacopo Mondi wrote:
> Hi Tomi
>
> On Wed, Feb 22, 2023 at 02:56:28PM +0200, Tomi Valkeinen wrote:
>> For legacy reasons the CAL driver uses 2X8 mbus formats for the CSI-2
>> link (e.g. MEDIA_BUS_FMT_YUYV8_2X8). 1X16 formats are more correct and
>> used by many drivers, so add 1X16 support to CAL.
>>
>> We keep the 2X8 formats for backward compatibility.
>
> Eh, this is the usual question about what we should consider a
> to be a userspace breakage or not.
>
> I presume the reason to maintain 2X8 formats is (assuming the CAL
> interface is CSI-2 only, right ?) because sensor drivers that only
> support 2X8 formats will then fail to link_validate() if you remove
Yes.
> all 2X8 formats here. I'm of the opinion that we should bite the
> bullet and move to 1X16. If any driver that used to work with CAL now
> breaks, the sensor driver will have to be fixed.
>
> In my humble experience, that's what we did with the ov5640 sensor. We
Yes, you did.
> removed the 2X8 formats in CSI-2 mode and some platform driver broke
> and then had been fixed (it happened in the same release cycle), win win.
No, CAL is still broken =). OV5640 is the only sensor I have. I just
haven't had time to look at this and fix it (and no one has complained).
> I know it's controversial, let's see what others think.
I'm all for dropping the 2X8 formats, if that's the consensus. It would
keep the driver simpler, as we could keep the 1:1 relationship between
pixel formats and mbus codes.
I'll look at your other comments tomorrow.
Tomi
next prev parent reply other threads:[~2023-02-23 17:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-22 12:56 [PATCH v1 0/3] media: ti: cal: Streams support Tomi Valkeinen
2023-02-22 12:56 ` [PATCH v1 1/3] media: ti: cal: Add support for 1X16 mbus formats Tomi Valkeinen
2023-02-23 17:10 ` Jacopo Mondi
2023-02-23 17:52 ` Tomi Valkeinen [this message]
2023-02-23 18:03 ` Jacopo Mondi
2023-02-24 9:02 ` Tomi Valkeinen
2023-02-24 9:08 ` Tomi Valkeinen
2023-02-22 12:56 ` [PATCH v1 2/3] media: ti: cal: Use subdev state Tomi Valkeinen
2023-02-23 17:32 ` Jacopo Mondi
2023-02-24 9:15 ` Tomi Valkeinen
2023-02-22 12:56 ` [PATCH v1 3/3] media: ti: cal: add multiplexed streams support Tomi Valkeinen
2023-02-24 15:48 ` Jacopo Mondi
2023-02-24 17:20 ` niklas soderlund
2023-02-28 16:56 ` Jacopo Mondi
2023-02-27 8:35 ` Tomi Valkeinen
2023-02-27 8:45 ` Jacopo Mondi
2023-02-28 8:54 ` Sakari Ailus
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=bca4cd33-eb4a-693f-5663-365459d89cc7@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=j-luthra@ti.com \
--cc=jacopo.mondi@ideasonboard.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=vaishnav.a@ti.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