From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
"Sakari Ailus" <sakari.ailus@linux.intel.com>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Tomi Valkeinen" <tomi.valkeinen+renesas@ideasonboard.com>,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v5 07/12] media: rcar-vin: Merge all notifiers
Date: Wed, 18 Jun 2025 11:58:40 +0300 [thread overview]
Message-ID: <20250618085840.GD28826@pendragon.ideasonboard.com> (raw)
In-Reply-To: <CAMuHMdWn01G-kyFgM+7e+TDaoN4ekSuM=c0kcByFLDsVBVvgwA@mail.gmail.com>
On Wed, Jun 18, 2025 at 09:44:02AM +0200, Geert Uytterhoeven wrote:
> Hi Laurent,
>
> On Tue, 17 Jun 2025 at 21:48, Laurent Pinchart
> <laurent.pinchart@ideasonboard.com> wrote:
> > On Fri, Jun 06, 2025 at 08:26:01PM +0200, Niklas Söderlund wrote:
> > > The VIN usage of v4l-async is complex and stems from organic growth of
> > > the driver of supporting both private local subdevices (Gen2, Gen3) and
> > > subdevices shared between all VIN instances (Gen3 and Gen4).
> > >
> > > The driver used a separate notifier for each VIN for the private local
> > > ones, and a shared group notifier for the shared ones. This was complex
> > > and lead to subtle bugs when unbinding and later rebinding subdevices in
> > > one of the notifiers having to handle different edge cases depending on
> > > if it also had subdevices in the other notifiers etc.
> > >
> > > To simplify this have the Gen2 devices allocate and form a VIN group
> > > too. This way all subdevices on all models can be collect in a
> > > single group notifier. Then there is only a single complete callback for
> > > all where the video devices and subdevice nodes can be registered etc.
> > >
> > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> > > Tested-by: Tomi Valkeinen <tomi.valkeinen+renesas@ideasonboard.com>
>
> [ deleted 132 lines of quoted patch ]
>
> > > @@ -417,6 +452,12 @@ static int rvin_group_notifier_init(struct rvin_dev *vin, unsigned int port,
> > > if (!(vin_mask & BIT(i)))
> > > continue;
> > >
> > > + /* Parse local subdevice. */
> > > + ret = rvin_parallel_parse_of(vin->group->vin[i]);
> > > + if (ret)
> > > + return ret;
> > > +
> > > + /* Prase shared subdevices. */
> >
> > s/Prase/Parse/
> >
> > Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>
> Thanks, but please trim your replies, I had to scroll three times
> through your email to find this ;-)
I intentionally don't, as I find it annoying when people do :-)
> [ deleted 262 lines of quoted patch ]
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2025-06-18 8:58 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-06 18:25 [PATCH v5 00/12] media: rcar-vin: Unify notifiers and enable MC on Gen2 Niklas Söderlund
2025-06-06 18:25 ` [PATCH v5 01/12] media: rcar-vin: Use correct count of remote subdevices Niklas Söderlund
2025-06-09 9:39 ` Sakari Ailus
2025-06-09 9:41 ` Sakari Ailus
2025-06-06 18:25 ` [PATCH v5 02/12] media: rcar-vin: Store platform info with group structure Niklas Söderlund
2025-06-12 0:19 ` Laurent Pinchart
2025-06-06 18:25 ` [PATCH v5 03/12] media: rcar-vin: Change link setup argument Niklas Söderlund
2025-06-12 0:31 ` Laurent Pinchart
2025-06-06 18:25 ` [PATCH v5 04/12] media: rcar-vin: Generate a VIN group ID for Gen2 Niklas Söderlund
2025-06-06 18:25 ` [PATCH v5 05/12] media: rcar-vin: Prepare for unifying all v4l-async notifiers Niklas Söderlund
2025-06-06 18:26 ` [PATCH v5 06/12] media: rcar-vin: Improve error paths for parallel devices Niklas Söderlund
2025-06-12 0:22 ` Laurent Pinchart
2025-06-06 18:26 ` [PATCH v5 07/12] media: rcar-vin: Merge all notifiers Niklas Söderlund
2025-06-12 23:15 ` Laurent Pinchart
2025-06-18 7:44 ` Geert Uytterhoeven
2025-06-18 8:58 ` Laurent Pinchart [this message]
2025-06-18 10:59 ` Geert Uytterhoeven
2025-06-18 11:03 ` Wolfram Sang
2025-06-06 18:26 ` [PATCH v5 08/12] media: rcar-vin: Always create a media pad Niklas Söderlund
2025-06-12 0:25 ` Laurent Pinchart
2025-06-06 18:26 ` [PATCH v5 09/12] media: rcar-vin: Remove NTSC workaround Niklas Söderlund
2025-06-12 23:17 ` Laurent Pinchart
2025-06-06 18:26 ` [PATCH v5 10/12] media: rcar-vin: Only expose VIN controls Niklas Söderlund
2025-06-12 23:28 ` Laurent Pinchart
2025-06-13 10:16 ` Niklas Söderlund
2025-06-06 18:26 ` [PATCH v5 11/12] media: rcar-vin: Enable media-graph on Gen2 Niklas Söderlund
2025-06-12 23:53 ` Laurent Pinchart
2025-06-13 9:38 ` Niklas Söderlund
2025-06-06 18:26 ` [PATCH v5 12/12] media: rcar-vin: Fold event notifier into only user Niklas Söderlund
2025-06-12 0:28 ` Laurent Pinchart
2025-06-12 7:22 ` Niklas Söderlund
2025-06-12 9:44 ` Laurent Pinchart
2025-06-12 9:56 ` Niklas Söderlund
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=20250618085840.GD28826@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=geert@linux-m68k.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.