From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 379853F5299; Sat, 28 Feb 2026 17:42:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300556; cv=none; b=e/nkkP6gvDf4quIJICDCUB01GSp8TDIbn8CZiR1LFUKP3xW2wa007oOSfKlg+iYEU6jP+QvrMCFS3CzMVhaGg9eYlYxBJSvmRjHjWmPxceqzV/VoEgyFJpHZgdxiVhR7UqlndvkSwLT9VOxHee5ryBbZRtiV48dgV/SUzOIQ1K8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300556; c=relaxed/simple; bh=zMaUWkm3qmMDz0eMNZ10dyiuX56BqHuh7Glw3mA865Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jKrguE07zPW9SWP/ftkM0pvudgauyQngUQZAdTIo+yHGNZ6naHiuQ63n9eIQObPwxEETuG1KQ+U3YCTVhvdLEDo5HmPNBJkcmpos6yK/LqxVMVBDzIGq+aDMRRNQ8Uasn0uGZjPXxmUNLstxl34UWVaNLazCNufBR9gZu74rdvs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tiU7X14Y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tiU7X14Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DB91C19423; Sat, 28 Feb 2026 17:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300556; bh=zMaUWkm3qmMDz0eMNZ10dyiuX56BqHuh7Glw3mA865Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tiU7X14YIizonEsz6dEs5N2jb6ZALG/5wmrewess3DMqDHn7UMbxtz/vXYtoUbhnY ge6bZXvp1FmQA/7ztzAk6tMyMzwJpKgmyY2H5Rdv72jNfASaASkj5frPofY4hT793q BngBFS/8G2Q20o9T69d7onI65Qa77MAjc2p+jwHxRJ1toocE2ZmzWFbVjZDtaJgWuJ q1KthEDzT/ZD0IT4tN9VmxxhGyMgSHUkp0g7dUwR6ClrgJxRr5J1S4u4CtMd5tvu37 VnZq/JTdqWoj9+a7FJ/elVZTJK6vA4K7ex6Uf5WP5Gs4OBLgU0XxYqDmdr+Hvt0/Z9 PZWZU2FtggwAA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Bingbu Cao , Stable@vger.kernel.org, Sakari Ailus , Hans Verkuil , Sasha Levin Subject: [PATCH 6.19 595/844] media: staging/ipu7: Call synchronous RPM suspend in probe failure Date: Sat, 28 Feb 2026 12:28:28 -0500 Message-ID: <20260228173244.1509663-596-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Bingbu Cao [ Upstream commit 1433e6ccc25e9ea596683ab66e1c51f37fc7d491 ] If firmware authentication failed during driver probe, driver call an asynchronous API to suspend the psys device but the bus device will be removed soon, thus runtime PM of bus device will be disabled soon, that will cancel the suspend request, so use synchronous suspend to make sure the runtime suspend before disabling its RPM. IPU7 hardware has constraints that the PSYS device must be powered off before ISYS, otherwise it will cause machine check error. Cc: Stable@vger.kernel.org Fixes: b7fe4c0019b1 ("media: staging/ipu7: add Intel IPU7 PCI device driver") Signed-off-by: Bingbu Cao Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/staging/media/ipu7/ipu7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/ipu7/ipu7.c b/drivers/staging/media/ipu7/ipu7.c index 6c8c3eea44acb..fa5a1867626f8 100644 --- a/drivers/staging/media/ipu7/ipu7.c +++ b/drivers/staging/media/ipu7/ipu7.c @@ -2620,7 +2620,7 @@ static int ipu7_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) if (!IS_ERR_OR_NULL(isp->isys) && !IS_ERR_OR_NULL(isp->isys->mmu)) ipu7_mmu_cleanup(isp->isys->mmu); if (!IS_ERR_OR_NULL(isp->psys)) - pm_runtime_put(&isp->psys->auxdev.dev); + pm_runtime_put_sync(&isp->psys->auxdev.dev); ipu7_bus_del_devices(pdev); release_firmware(isp->cpd_fw); buttress_exit: -- 2.51.0