linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cosmin Tanislav <demonsingur@gmail.com>
To: "Julien Massot" <julien.massot@collabora.com>,
	"Cosmin Tanislav" <cosmin.tanislav@analog.com>,
	"Tomi Valkeinen" <tomi.valkeinen+renesas@ideasonboard.com>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Linus Walleij" <linus.walleij@linaro.org>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-staging@lists.linux.dev, linux-gpio@vger.kernel.org
Subject: Re: [PATCH v5 00/24] media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers
Date: Thu, 3 Jul 2025 17:46:47 +0300	[thread overview]
Message-ID: <cbf8d7bd-24a4-4dc1-8d9f-bbc4bee45d8d@gmail.com> (raw)
In-Reply-To: <c661e7f3faec269f73d6240fbe7b84e3bc97157a.camel@collabora.com>



On 7/3/25 4:54 PM, Julien Massot wrote:
> On Thu, 2025-07-03 at 15:17 +0300, Cosmin Tanislav wrote:
>>
>>
>> On 7/3/25 3:07 PM, Julien Massot wrote:
>>> Hi Cosmin,
>>>
>>> On Wed, 2025-07-02 at 16:20 +0300, Cosmin Tanislav wrote:
>>>> This series adds new drivers for multiple Maxim GMSL2 and GMSL3 devices,
>>>> replacing the few GMSL2 drivers already in upstream, and introducing a
>>>> common framework that can be used to implement such GMSL chips, which
>>>> avoids code duplication while also adding support for previously
>>>> unsupported features.
>>>>
>>>> While the normally acceptable and polite way would be to extend the
>>>> current mainline drivers, the choice was made here to add a totally new
>>>> set of drivers. The current drivers support only a small subset of the
>>>> possible features, and only a few devices, so the end result after
>>>> extending them would in any case be essentially fully rewritten, new
>>>> drivers.
>>>>
>>> Thanks for your work,
>>> The common framework will help a lot to drive new GMSL chips, and most of the
>>> features are covered.
>>>
>>>> This series depends on support for internal pads, for which a patch has
>>>> been added.
>>>>
>>>> The previous version is at:
>>>> https://lore.kernel.org/lkml/20250618095858.2145209-1-demonsingur@gmail.com
>>>>
>>>> The following deserializers are supported:
>>>>    * MAX96712 (already exists in staging)
>>>>    * MAX96714 (already exists)
>>>>    * MAX96714F (already exists)
>>>>    * MAX96714R (GMSL2)
>>>>    * MAX96716 (GMSL2)
>>>>    * MAX96724 (already exists as part of existing MAX96712 driver)
>>>>    * MAX96724F (GMSL2)
>>>>    * MAX96724R (GMSL2)
>>>>    * MAX9296A (GMSL2)
>>>>    * MAX96792A (GMSL3)
>>>>
>>>> The following serializers are supported:
>>>>    * MAX96717 (already exists)
>>>>    * MAX9295A (GMSL2)
>>>>    * MAX96793 (GMSL3)
>>>>
>>>> Known backward compatibility breakages:
>>>>    * No default routing. Default routing has been intentionally ommitted
>>>>      as the devices support quite complex routing and it would be
>>>>      unfeasible to provide sane defaults for multi-link deserialziers.
>>>>      It is expected that userspace programs would set appropritate
>>>>      routing.
>>>>
>>> This part is the most annoying one: at the moment, there is no way to set the routing except by
>>> manually enabling a boolean within the kernel source.
>>> You can't guess what routing the user really wants, but please at least provide a default
>>> routing
>>> table that allows using your drivers — for example, the device's default routing.
>>>
>>
>> It's a very delicate issue... I'll try to see if I can do that.
>> It would be great if we could enable the streams API globally since it's
>> been merged since Jan 15 2023. It's been over two years.
>>
>>
>> Thanks,
>>
>>>
>>>
>>>> The following list enumerates new features that are supported by the
>>>> common framework and their respective chip-specific drivers:
>>>>    * Full Streams API support. Most deserializers have support for more
>>>>      than one link, and more than one PHY. Streams support allows
>>>>      configuration of routing between these links and PHYs.
>>>>
>>>>    * .get_frame_desc() support. Both the serializers and deserializers
>>>>      implement this to query and provide frame descriptor data. This is
>>>>      used in features explained in-depth below.
>>>
>>> So are almost all the sensor drivers incompatible?
>>>
>>
>> Yes, sensor drivers need to have .get_frame_desc() implemented... It's
>> not a huge feat and it's the only way this type of bridge could work
>> properly.
>>
>> Alternatively, we could add a fallback that bases its decision on the
>> stream format, but I'd prefer if we didn't and we would just implement
>> .get_frame_desc(). After this series is merged I can submit my patches
>> for imx219.
> There is already one pending on the mailing list
> "media: i2c: imx219: Report streams using frame descriptors"
> I guess it's fine if we require the sensor to implement this function.
> 
> But I had to do it for vgxy61.
> 
> Btw I tested:
> TI AM62x + max96716 + 1 x max96717f + stvg5661 (tunnel mode)
> With special lanes mapping and polarities.
> 
> And I had to:
> 
> - Apply pending patches for j721e to support the enable_stream API instead of s_stream
> - Enable the experimental v4l2_subdev_enable_streams_api
> - Add get_frame_desc to the sensor driver

Did it work without issues with those changes?

If that's the case then I think all I can do to make it is easier is to
add default routing. I'm not a fan of each driver having its own
get_frame_desc() fallback, especially when it's a very small change to
do to the sensor drivers.


  reply	other threads:[~2025-07-03 14:46 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-02 13:20 [PATCH v5 00/24] media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 01/24] media: mc: Add INTERNAL pad flag Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 02/24] dt-bindings: media: i2c: max96717: add myself as maintainer Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 03/24] dt-bindings: media: i2c: max96717: add support for I2C ATR Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 04/24] dt-bindings: media: i2c: max96717: add support for pinctrl/pinconf Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 05/24] dt-bindings: media: i2c: max96717: add support for MAX9295A Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 06/24] dt-bindings: media: i2c: max96717: add support for MAX96793 Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 07/24] dt-bindings: media: i2c: max96712: add myself as maintainer Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 08/24] dt-bindings: media: i2c: max96712: use pattern properties for ports Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 09/24] dt-bindings: media: i2c: max96712: add support for I2C ATR Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 10/24] dt-bindings: media: i2c: max96712: add support for POC supplies Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 11/24] dt-bindings: media: i2c: max96712: add support for MAX96724F/R Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 12/24] dt-bindings: media: i2c: max96714: add myself as maintainer Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 13/24] dt-bindings: media: i2c: max96714: add support for MAX96714R Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 14/24] dt-bindings: media: i2c: add MAX9296A, MAX96716A, MAX96792A Cosmin Tanislav
2025-07-02 16:14   ` Rob Herring (Arm)
2025-07-02 13:20 ` [PATCH v5 15/24] media: i2c: add Maxim GMSL2/3 serializer and deserializer framework Cosmin Tanislav
2025-07-03 12:08   ` Julien Massot
2025-07-03 12:21     ` Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 16/24] media: i2c: add Maxim GMSL2/3 serializer framework Cosmin Tanislav
2025-07-03 12:10   ` Julien Massot
2025-07-03 12:24     ` Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 17/24] media: i2c: add Maxim GMSL2/3 deserializer framework Cosmin Tanislav
2025-07-03 12:13   ` Julien Massot
2025-07-03 12:29     ` Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 18/24] media: i2c: maxim-serdes: add MAX96717 driver Cosmin Tanislav
2025-07-03 12:16   ` Julien Massot
2025-07-03 12:31     ` Cosmin Tanislav
2025-07-03 14:03       ` Julien Massot
2025-07-02 13:20 ` [PATCH v5 19/24] media: i2c: maxim-serdes: add MAX96724 driver Cosmin Tanislav
2025-07-02 14:45   ` Niklas Söderlund
2025-07-02 13:20 ` [PATCH v5 20/24] media: i2c: maxim-serdes: add MAX9296A driver Cosmin Tanislav
2025-07-03 12:19   ` Julien Massot
2025-07-02 13:20 ` [PATCH v5 21/24] arm64: defconfig: disable deprecated MAX96712 driver Cosmin Tanislav
2025-07-02 14:48   ` Niklas Söderlund
2025-07-02 13:20 ` [PATCH v5 22/24] staging: media: remove " Cosmin Tanislav
2025-07-02 14:54   ` Niklas Söderlund
2025-07-02 13:20 ` [PATCH v5 23/24] media: i2c: remove MAX96717 driver Cosmin Tanislav
2025-07-02 13:20 ` [PATCH v5 24/24] media: i2c: remove MAX96714 driver Cosmin Tanislav
2025-07-03 12:07 ` [PATCH v5 00/24] media: i2c: add Maxim GMSL2/3 serializer and deserializer drivers Julien Massot
2025-07-03 12:17   ` Cosmin Tanislav
2025-07-03 13:54     ` Julien Massot
2025-07-03 14:46       ` Cosmin Tanislav [this message]
2025-07-04  7:11         ` Julien Massot
2025-07-16 18:54 ` vivekana

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=cbf8d7bd-24a4-4dc1-8d9f-bbc4bee45d8d@gmail.com \
    --to=demonsingur@gmail.com \
    --cc=cosmin.tanislav@analog.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=julien.massot@collabora.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mchehab@kernel.org \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=robh@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tomi.valkeinen+renesas@ideasonboard.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;
as well as URLs for NNTP newsgroup(s).