Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 0/2] media: imx: Fix subdev unregister/register issues
@ 2019-08-24  0:27 Steve Longerbeam
  2019-08-24  0:27 ` [PATCH 1/2] media: imx: Move capture device init to registered Steve Longerbeam
  2019-08-24  0:27 ` [PATCH 2/2] media: imx: Move pads init to probe Steve Longerbeam
  0 siblings, 2 replies; 4+ messages in thread
From: Steve Longerbeam @ 2019-08-24  0:27 UTC (permalink / raw)
  To: linux-media; +Cc: Steve Longerbeam

If the media device module is removed and re-probed without also removing
and re-probing the subdevice modules, .unregister() and .register() ops
are called on the subdevices without the subdevice drivers being removed
and re-probed. This creates two problems:

- the CSI and PRPENCVF subdevices attempt to register a stale video capture
  device resulting in the kobject "tried to init an initialized object"
  backtrace.

- pad graph objects are added to the media device pad list twice, resulting
  in list corruption on the pad list.

The following two patches fix those issues.

Steve Longerbeam (2):
  media: imx: Move capture device init to registered
  media: imx: Move pads init to probe

 drivers/staging/media/imx/imx-ic-prp.c        | 25 ++++-----
 drivers/staging/media/imx/imx-ic-prpencvf.c   | 51 ++++++++++---------
 drivers/staging/media/imx/imx-media-capture.c | 15 +++---
 drivers/staging/media/imx/imx-media-csi.c     | 35 +++++++------
 drivers/staging/media/imx/imx-media-vdic.c    | 27 ++++------
 drivers/staging/media/imx/imx6-mipi-csi2.c    | 27 +++++-----
 drivers/staging/media/imx/imx7-media-csi.c    | 38 +++++++-------
 drivers/staging/media/imx/imx7-mipi-csis.c    | 23 +++------
 8 files changed, 114 insertions(+), 127 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-24 11:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-24  0:27 [PATCH 0/2] media: imx: Fix subdev unregister/register issues Steve Longerbeam
2019-08-24  0:27 ` [PATCH 1/2] media: imx: Move capture device init to registered Steve Longerbeam
2019-08-24 11:25   ` kbuild test robot
2019-08-24  0:27 ` [PATCH 2/2] media: imx: Move pads init to probe Steve Longerbeam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox