All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: linux-media@vger.kernel.org
Cc: laurent.pinchart@ideasonboard.com, hverkuil@xs4all.nl
Subject: [PATCH 0/3] Set bus_info field in framework
Date: Sat, 22 Jan 2022 18:36:53 +0200	[thread overview]
Message-ID: <20220122163656.168440-1-sakari.ailus@linux.intel.com> (raw)

Hi folks,

This innocious-looking patchset moves setting the bus_info fields in
struct media_device and struct v4l2_capability from drivers to the
framework for PCI and platform devices. USB and I²C devices are possible,
too, but not yet implemented. Using this is optional so that drivers which
have special requirements or archaic bugs are unaffected.

If people like this, I'll see if the same could be done to the driver
fields.

Sakari Ailus (3):
  media: Provide a helper for setting bus_info field
  media: Set bus_info in media_device_init()
  v4l: ioctl: Set bus_info in v4l_querycap()

 drivers/media/common/saa7146/saa7146_video.c  |  1 -
 drivers/media/mc/mc-device.c                  |  2 ++
 drivers/media/pci/bt8xx/bttv-driver.c         |  2 --
 drivers/media/pci/cx18/cx18-ioctl.c           |  2 --
 drivers/media/pci/cx88/cx88-blackbird.c       |  1 -
 drivers/media/pci/cx88/cx88-video.c           |  1 -
 drivers/media/pci/dt3155/dt3155.c             |  1 -
 drivers/media/pci/intel/ipu3/ipu3-cio2-main.c |  4 ---
 drivers/media/pci/ivtv/ivtv-ioctl.c           |  1 -
 drivers/media/pci/meye/meye.c                 |  1 -
 drivers/media/pci/saa7134/saa7134-go7007.c    |  1 -
 drivers/media/pci/saa7134/saa7134-video.c     |  1 -
 drivers/media/pci/saa7164/saa7164-encoder.c   |  1 -
 drivers/media/pci/saa7164/saa7164-vbi.c       |  1 -
 .../media/pci/solo6x10/solo6x10-v4l2-enc.c    |  2 --
 drivers/media/pci/solo6x10/solo6x10-v4l2.c    |  2 --
 drivers/media/pci/sta2x11/sta2x11_vip.c       |  2 --
 drivers/media/pci/tw5864/tw5864-video.c       |  1 -
 drivers/media/pci/tw68/tw68-video.c           |  1 -
 drivers/media/pci/tw686x/tw686x-video.c       |  2 --
 .../media/platform/allegro-dvt/allegro-core.c |  2 --
 drivers/media/platform/davinci/vpbe_display.c |  2 --
 drivers/media/platform/davinci/vpif_capture.c |  2 --
 drivers/media/platform/davinci/vpif_display.c |  2 --
 drivers/media/platform/exynos-gsc/gsc-m2m.c   |  2 --
 drivers/media/platform/exynos4-is/common.c    |  2 --
 drivers/media/platform/exynos4-is/fimc-lite.c |  2 --
 drivers/media/platform/imx-jpeg/mxc-jpeg.c    |  2 --
 .../media/platform/marvell-ccic/cafe-driver.c |  1 -
 .../media/platform/mtk-jpeg/mtk_jpeg_core.c   |  2 --
 .../media/platform/qcom/camss/camss-video.c   |  2 --
 drivers/media/platform/rcar-vin/rcar-core.c   |  2 --
 drivers/media/platform/rcar-vin/rcar-v4l2.c   |  2 --
 drivers/media/platform/rcar_jpu.c             |  2 --
 drivers/media/platform/s5p-jpeg/jpeg-core.c   |  2 --
 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c  |  2 --
 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c  |  2 --
 drivers/media/platform/stm32/stm32-dcmi.c     |  2 --
 .../platform/sunxi/sun4i-csi/sun4i_csi.c      |  2 --
 .../platform/sunxi/sun4i-csi/sun4i_v4l2.c     |  2 --
 .../platform/sunxi/sun6i-csi/sun6i_csi.c      |  2 --
 drivers/media/platform/ti-vpe/cal-video.c     |  2 --
 drivers/media/platform/ti-vpe/cal.c           |  2 --
 drivers/media/platform/vsp1/vsp1_drv.c        |  2 --
 drivers/media/platform/vsp1/vsp1_histo.c      |  2 --
 drivers/media/platform/vsp1/vsp1_video.c      |  2 --
 drivers/media/radio/radio-maxiradio.c         |  2 --
 drivers/media/v4l2-core/v4l2-ioctl.c          |  3 ++
 include/media/media-device.h                  | 30 +++++++++++++++++--
 49 files changed, 32 insertions(+), 84 deletions(-)

-- 
2.30.2


             reply	other threads:[~2022-01-22 16:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-22 16:36 Sakari Ailus [this message]
2022-01-22 16:36 ` [PATCH 1/3] media: Provide a helper for setting bus_info field Sakari Ailus
2022-01-22 23:44   ` Laurent Pinchart
2022-01-24 15:55     ` Sakari Ailus
2022-01-25 12:54   ` Hans Verkuil
2022-01-26 16:07     ` Sakari Ailus
2022-01-22 16:36 ` [PATCH 2/3] media: Set bus_info in media_device_init() Sakari Ailus
2022-01-22 23:48   ` Laurent Pinchart
2022-01-24 15:59     ` Sakari Ailus
2022-01-24 16:21       ` Laurent Pinchart
2022-01-22 16:36 ` [PATCH 3/3] v4l: ioctl: Set bus_info in v4l_querycap() Sakari Ailus
2022-01-22 23:51   ` Laurent Pinchart
2022-01-24 16:02     ` Sakari Ailus
2022-01-24 16:23       ` Laurent Pinchart
2022-01-24 16:47         ` Sakari Ailus
2022-01-24 22:23   ` kernel test robot
2022-01-24 22:23     ` kernel test robot

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=20220122163656.168440-1-sakari.ailus@linux.intel.com \
    --to=sakari.ailus@linux.intel.com \
    --cc=hverkuil@xs4all.nl \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    /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.