From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796372211; b=KqRuxHAD4xhqYhvQr66QMOfYO6nPW5onoUoBSrR5jTI3IFU/7LRu5gXkdQ8upJPw0GiY ki0LT1z4+ff5QvknLOKaqlXSGPB0yuPQvZvYWBSLWDQ8DjlJqBywocxSDIdprMgMsQBkY B4mKce3/JGbz8vutow+npghfZfVIxYlJAL9P7lXGkI9U6MufT+6roKtMrkfFPg1w1nw0P U4VkG30YnPL/X/4bLJwmIo7rmvLQs3KTc61qQw4MyTsn7vgLoNmNJ7lXQGlz0nWTynBM1 KFa7+sXtmB8yMf4E7x0NH98u+O3puTELbFjKixp3LvnCjZR/MroR7nTF07wADRM/1SQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796372211; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=+zUWKgkHgZZBIcVbb92ai19ahQxHPPEndt4vbUSYlUw=; b=W8oVhkGILYnY5yRCpZk/Ao7rWTiLeOY1v4sAhDDti3WaZsdAbu+rZR22qk/YoTZGWrOR L3/b4TIxeUn/SoPZWkxExxVJMBFrO92PK0IZpDx5QsjG6xQ74hi+bKcPc/xogW33n2KPN D44lw17XXBKWVvrzd9gLKmkvnErYV5DvUBvH5SM/OD4C9ZUVMKmuIgxglH5fu+NqMO2Xx PbT2V1vIE8MJig7tIXftbzQLhChx+HgFQRNg/IXAI3xiZl30xjZAf2PRX/ifPHi7A8M5t XI3jKQUIJX6uuHuTkK7YaWgLmRN3Gc2bYSWPp7Lf3wB4Nl74ySnttFPNIdBB1lIcRpw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WMngDGod; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D0C7606A322 for ; Fri, 4 Dec 2026 08:16:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=WMngDGod Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E21A1F000C2; Fri, 4 Dec 2026 08:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796372211; bh=+zUWKgkHgZZBIcVbb92ai19ahQxHPPEndt4vbUSYlUw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=WMngDGodoSDn9B+7szoDAQjN6AaSZ2kkLIyZeUfOh6F19CRP8RI1znDGy08NQRFsk 9LGdCfQ1jBWKSpbUi6XCQvwpyu0vZfKZuuwLrXgeiO39bZbyEYodd3klQX9iuaITgN eexU0aZq8I5rkVgboOHBgSZQ0Ht4PNpJaKbkijuaQrW4RCcKIOyEyEaocnhm6yjzd0 9wVh8Z/CF9HRQk3B8mR5rrCnpra3BCqZo36/KbWml6fCylQitUR8mXwCooD6iz2RxW WIXsHGeC6ySDl4x38O7WNX9Lt0B/n2K58RPeA0BLyRq2dkV/9k+bQ0NKW/0MFOafm9 T6GCqrwLk1fvA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 05/10] media: qcom: cam-icc: add the SM8250 data Reply-To: sashiko-reviews@lists.linux.dev To: "Atanas Filipov" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org In-Reply-To: <20261204075339.4077387-6-atanas.filipov@oss.qualcomm.com> References: <20261204075339.4077387-1-atanas.filipov@oss.qualcomm.com> <20261204075339.4077387-6-atanas.filipov@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 08:16:50 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] media: qcom: cam-icc: clock refcount leak on unbind in qcom_cam_icc_remove() -- commit 2779df1b820af93e9dbec7bf95d2121513670a95 Author: Atanas Filipov media: qcom: cam-icc: add the SM8250 data This commit adds the SM8250 camera NoC configuration (nodes, MMCX rail, static QoS settings, and error interrupt sources) and wires it into qcom_cam_icc_of_match[] so the qcom-cam-icc driver can bind on SM8250. > diff --git a/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-core.c b/dr= ivers/media/platform/qcom/cam-icc/qcom-cam-icc-core.c > index dbfccdb30da3e..05086221728f5 100644 > --- a/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-core.c > +++ b/drivers/media/platform/qcom/cam-icc/qcom-cam-icc-core.c > @@ -534,6 +534,7 @@ static int qcom_cam_icc_opp_init(struct qcom_cam_icc = *camnoc) > } > =20 > static const struct of_device_id qcom_cam_icc_of_match[] =3D { > + { .compatible =3D "qcom,sm8250-cam-icc", .data =3D &qcom_cam_icc_sm8250= _data }, > { } > }; > MODULE_DEVICE_TABLE(of, qcom_cam_icc_of_match); [Severity: Medium] Can unbinding the driver leak prepare and enable refcounts on camnoc->clks? qcom_cam_icc_runtime_resume() enables camnoc->clks, and only qcom_cam_icc_runtime_suspend() disables them. If the device is unbound whi= le runtime-active (for example, with power/control set to on), qcom_cam_icc_remove() returns without suspending it. devres then disables runtime PM without running the suspend callback, and devm_clk_bulk_release_all() only puts the clock handles without disabling or unpreparing them, leaving all six SM8250 clocks enabled until reboot. Suspending the device in qcom_cam_icc_remove() when !pm_runtime_status_suspended(&pdev->dev) and registering the devm IRQ after devm_pm_runtime_enable() (so the IRQ is freed before runtime PM is disabled) would avoid this. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204075339.4077= 387-1-atanas.filipov@oss.qualcomm.com?part=3D5