[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a2vgaOLtMBR84LCmsu8NA7b7bPK2jJoiqTxvgTzX7Lobw@mail.gmail.com>
Date: Tue, 15 Jun 2021 10:39:50 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Hans Verkuil <hverkuil-cisco@...all.nl>
Cc: Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
"Lad, Prabhakar" <prabhakar.csengg@...il.com>,
Eduardo Valentin <edubezval@...il.com>,
Sakari Ailus <sakari.ailus@...ux.intel.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Vaibhav Gupta <vaibhavgupta40@...il.com>,
Liu Shixin <liushixin2@...wei.com>,
Jacopo Mondi <jacopo+renesas@...ndi.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Media Mailing List <linux-media@...r.kernel.org>,
linux-staging@...ts.linux.dev
Subject: Re: [PATCH v3 7/8] media: subdev: fix compat_ioctl32
On Tue, Jun 15, 2021 at 10:27 AM Hans Verkuil <hverkuil-cisco@...all.nl> wrote:
> On 14/06/2021 19:18, Laurent Pinchart wrote:
> >
> > Should we drop v4l2_subdev_core_ops.compat_ioctl32 and call
> > v4l2_subdev_core_ops.ioctl from subdev_do_compat_ioctl32() ? New drivers
> > should design custom ioctls in a way that doesn't require compat code.
>
> I agree, we can drop it completely.
I agree about new drivers defining their ioctls in a compatible way,
though Ideally
I'd say subdev drivers should not use custom ioctls at all. There are
two other drivers
that define private subdev ioctls and that lack a working compat handler:
- the omap3 isp driver would not work in compat mode, though I don't think there
are any 64-bit SoCs using this hardware. The Sitara AM6 and J72 SoCs
are the only chips in that family at the moment, but these don't
seem to include
any image processor.
- The Intel Atom ISP driver has a broken compat ioctl handler that I remove
in this series, but the v4l2_subdev_core_ops->compat_ioctl32 callback
would be the correct place to hook these up if they do not get fixed.
> I'll skip this patch, but I'll take the other 7 patches and make a v3 PR with
> updated Reviewed-by tags from Laurent.
Thanks!
Arnd
Powered by blists - more mailing lists