public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] media: atomisp: mt9m114: graceful teardown and reprobe fixes
@ 2026-04-19 15:25 Robert Mast
  2026-04-19 15:25 ` [PATCH v3 1/1] " Robert Mast
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Mast @ 2026-04-19 15:25 UTC (permalink / raw)
  To: hansg
  Cc: mchehab, sakari.ailus, linux-media, linux-staging, andy, gregkh,
	linux-kernel, laurent.pinchart, Robert Mast

Hi,

this series addresses unload/reload instability between atomisp and mt9m114
seen on ACPI Bay Trail systems.

Problem summary:
- notifier lifecycle in atomisp could leave stale async state behind,
  breaking subsequent probe/reprobe cycles
- mt9m114 remove path could race async unregister callback ordering
- reprobe after module cycling could fail or crash around endpoint/clock setup

This patch hardens teardown/probe behavior by:
- explicitly unregistering and cleaning atomisp async notifier state
- synchronizing mt9m114 async unregister via completion
- adding safer remove/shutdown handling in mt9m114
- making link-frequency control/validation robust when frequencies are absent
- using safe fallback clocking in the ACPI no-link-frequency path

Observed result on the test platform:
- repeated modprobe -r/modprobe cycles are stable
- no probe oops during the tested unload/reload loops

Changes in v3:
- clarify commit message around teardown/reprobe failure modes
- keep atomisp notifier cleanup in both normal teardown and parse error paths
- keep mt9m114 fallback clocking in the no-link-frequency ACPI path
- refresh cover letter with tested behavior summary

Changes in v2:
- initial split and hardening for atomisp notifier + mt9m114 teardown paths

Robert Mast (1):
  media: atomisp: mt9m114: Graceful teardown atomisp and mt9m114

 drivers/media/i2c/mt9m114.c                   | 118 ++++++++++++++++--
 .../media/atomisp/pci/atomisp_csi2_bridge.c   |   1 +
 .../staging/media/atomisp/pci/atomisp_v4l2.c  |   3 +
 3 files changed, 110 insertions(+), 12 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-04-19 17:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-19 15:25 [PATCH v3 0/1] media: atomisp: mt9m114: graceful teardown and reprobe fixes Robert Mast
2026-04-19 15:25 ` [PATCH v3 1/1] " Robert Mast
2026-04-19 17:42   ` Laurent Pinchart

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