Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCHv4 0/9] Various core and virtual driver fixes
@ 2019-03-08 13:56 Hans Verkuil
  2019-03-08 13:56 ` [PATCHv4 1/9] cec: fill in cec chardev kobject to ease debugging Hans Verkuil
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Hans Verkuil @ 2019-03-08 13:56 UTC (permalink / raw)
  To: linux-media; +Cc: Laurent Pinchart, Helen Koike

Various fixes for bugs that I found while working on the
regression test-media script.

The CONFIG_DEBUG_KOBJECT_RELEASE=y option in particular found
a bunch of bugs where things were not released in the right
order.

Note that the first two patches are not bug fixes, but they
help debugging kobjects. Without this the object name is just
(null), which makes it hard to figure out what the object is.

Changes since v3:

- Dropped patch 4/9 (media-entity: set ent_enum->bmap to NULL after freeing it)
- Added patch 7/9 (vimc: zero the media_device on probe)

With these changes I can run the test-media script without errors
(except for a known vimc 'do not call blocking ops when !TASK_RUNNING;'
error, a patch for this from Helen has been posted).

Many thanks to Laurent for reviewing this series!

Regards,

	Hans

Hans Verkuil (9):
  cec: fill in cec chardev kobject to ease debugging
  media-devnode: fill in media chardev kobject to ease debugging
  vivid: use vzalloc for dev->bitmap_out
  vim2m: replace devm_kzalloc by kzalloc
  v4l2-subdev: add release() internal op
  v4l2-subdev: handle module refcounting here
  vimc: zero the media_device on probe
  vimc: free vimc_cap_device when the last user disappears
  vimc: use new release op

 drivers/media/cec/cec-core.c                 |  1 +
 drivers/media/media-devnode.c                |  1 +
 drivers/media/media-entity.c                 | 28 ----------------
 drivers/media/platform/vim2m.c               | 35 ++++++++++++--------
 drivers/media/platform/vimc/vimc-capture.c   | 13 ++++++--
 drivers/media/platform/vimc/vimc-common.c    |  2 ++
 drivers/media/platform/vimc/vimc-common.h    |  2 ++
 drivers/media/platform/vimc/vimc-core.c      |  2 ++
 drivers/media/platform/vimc/vimc-debayer.c   | 15 +++++++--
 drivers/media/platform/vimc/vimc-scaler.c    | 15 +++++++--
 drivers/media/platform/vimc/vimc-sensor.c    | 19 ++++++++---
 drivers/media/platform/vivid/vivid-vid-out.c | 14 +++++---
 drivers/media/v4l2-core/v4l2-device.c        | 19 ++++++++---
 drivers/media/v4l2-core/v4l2-subdev.c        | 22 +++++-------
 include/media/media-entity.h                 | 24 --------------
 include/media/v4l2-subdev.h                  | 15 ++++++++-
 16 files changed, 127 insertions(+), 100 deletions(-)

-- 
2.20.1


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

end of thread, other threads:[~2019-03-11 12:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-08 13:56 [PATCHv4 0/9] Various core and virtual driver fixes Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 1/9] cec: fill in cec chardev kobject to ease debugging Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 2/9] media-devnode: fill in media " Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 3/9] vivid: use vzalloc for dev->bitmap_out Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 4/9] vim2m: replace devm_kzalloc by kzalloc Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 5/9] v4l2-subdev: add release() internal op Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 6/9] v4l2-subdev: handle module refcounting here Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 7/9] vimc: zero the media_device on probe Hans Verkuil
2019-03-08 14:09   ` Laurent Pinchart
2019-03-08 14:13     ` Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 8/9] vimc: free vimc_cap_device when the last user disappears Hans Verkuil
2019-03-08 13:56 ` [PATCHv4 9/9] vimc: use new release op Hans Verkuil
2019-03-11 12:34   ` [PATCHv4.1 " Hans Verkuil

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