mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiale Yao <yaojiale02@163.com>
To: Keke Li <keke.li@amlogic.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
	Hans Verkuil <hverkuil@kernel.org>,
	Daniel Scally <dan.scally@ideasonboard.com>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Jiale Yao <yaojiale02@163.com>
Subject: [PATCH 0/2] media: amlogic: handle C3 MIPI runtime resume failures
Date: Sat,  3 Oct 2026 16:11:26 +0800	[thread overview]
Message-ID: <20261003081129.433041-1-yaojiale02@163.com> (raw)

The C3 MIPI adapter and CSI-2 receiver ignore failures from
pm_runtime_resume_and_get() when enabling streams. Both drivers then access
registers while their power domains may be unavailable, report streaming as
enabled, and later drop runtime PM references that were not acquired.

Check and propagate the runtime PM errors before either device is
programmed.

Jiale Yao (2):
  media: c3-mipi-adap: handle runtime resume failure
  media: c3-mipi-csi2: handle runtime resume failure

 drivers/media/platform/amlogic/c3/mipi-adapter/c3-mipi-adap.c | 4 +++-
 drivers/media/platform/amlogic/c3/mipi-csi2/c3-mipi-csi2.c    | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
2.34.1


             reply	other threads:[~2026-10-03  8:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-03  8:11 Jiale Yao [this message]
2026-10-03  8:11 ` [PATCH 1/2] media: c3-mipi-adap: handle runtime resume failure Jiale Yao
2026-10-19  6:23   ` Keke Li
2026-10-03  8:11 ` [PATCH 2/2] media: c3-mipi-csi2: " Jiale Yao
2026-10-19  6:24   ` Keke Li
2026-10-19  7:31     ` Jacopo Mondi
2026-10-19  8:48       ` Keke Li

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=20261003081129.433041-1-yaojiale02@163.com \
    --to=yaojiale02@163.com \
    --cc=dan.scally@ideasonboard.com \
    --cc=hverkuil@kernel.org \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=keke.li@amlogic.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®