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=1796537513; b=OrKcbSmOIkGNfo5b/lmJBZkP/gNxgx+aBiNUFyDiMcH3JqoezjONQSL2/T9mTRQZ+yIa wTHgo/ujjzjk9QakXUt491ufpzFVvpR+6Fgg1C4n400TNQfhY3geOl8AcvahtevNn+pJT Fyit4UyFywWtC6bDYIaJEy4/T+vreG09qRLmPuns2GqwjxNU6nXfAG5mJdI2KQ+LrJ4dM TlPs86x1651tXYwNuu43k28vkyrBN8Xj6saHMGyxYgo/pfRQ70DAt6Hv92ikWZynfNuJN SVRyrpvANO46BwJOf0PFOO//Pe8cZNVbJ08O+rtlm21886BWogzuXdEvynjb5TdCmPA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796537513; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=spSLUWPiIBlkoKTTrs/nwC9wDuQZM+PCt6JY9Y595oU=; b=z761s4YDOy468y5CwRsKi6qPyaV0Eb7OICRyiJrXv8pBwtMh74BDYOCIJuu7ET4qRjeu FjoEHiTnSVgE+Lru9kaZD7g30kcDgmOIIsy0eXUR0AsAEyj17IiZe/0mAzdkJNWxFS4ud 7aBmaAP7CXJrEwPieHknjCDkNzg7NktuWP1YUtuM1zTxHnjqVCzAJbUDclog4iywPdxGB T4txXAdTwztbcsye8Dt23T63V0stdxLVluR2hgY2Tk9l9FX9YfE7tVtnXFEoZt3yFwBWM Cz9KpCtvPwRj28gLYeUz2569Q6vWqCkcdU2SyBf50nXWSCypo4NiHov+XEH7fqwQPHg== 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="JqgceR/h"; 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 502EC606A31F for ; Sun, 6 Dec 2026 06:11:53 +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=JqgceR/h Received: by smtp.kernel.org (Postfix) with ESMTPSA id F26BE1F0092B; Sun, 6 Dec 2026 06:11:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796537513; bh=spSLUWPiIBlkoKTTrs/nwC9wDuQZM+PCt6JY9Y595oU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=JqgceR/hic/VqGcCHKCFluDbBoOil/AIaTWx0A2kF7ZMzZGeQ6OnDDrPM0AIi+neL 6P2/HV0BzkQ3+sjkZHOTWTioLf4qvCeCiNBAOkpRdx9Sp20GhaW+ZYJN2dzlDgUv0S WcloafumaFEmjrXUSwzHHKVdVj0g1fXVREdlIMs7NwgNpTZHUUTsXFfapJBxT7o8ZC 9qbAr7eRTFxChFLuPbigXLoD9hzNKBY//hYfs5sAtnEDLR0yFGreoR0YEh+VhKhZ+x Lr9yiwaScPuB5TvjporWG2Th82rVYlz+R1znGLinXaggm/tzqBf4gK2+Cyrb5UIwmz sLTz7GBoiE1oA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 06/18] media: verisilicon: Disable runtime PM before unpreparing the clocks on probe failure Reply-To: sashiko-reviews@lists.linux.dev To: "Arun Iyengar" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, media-ci@linuxtv.org In-Reply-To: <20261206-hantro-robust-v4-6-b99d33a5ec6d@gmail.com> References: <20261206-hantro-robust-v4-0-b99d33a5ec6d@gmail.com> <20261206-hantro-robust-v4-6-b99d33a5ec6d@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 06 Dec 2026 06:11:52 +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: - [Low] media: verisilicon: Fixes trailer cites 775fec69008d instead of 556ab0b2741d -- commit 56349933e88ca17d9f433ca9184631783de8230d Author: Arun Iyengar > media: verisilicon: Disable runtime PM before unpreparing the clocks on p= robe failure > > The probe error path unprepares the clocks before it disables runtime > PM, so a VPU resumed through its video nodes before a late failure > keeps its clocks enabled, or suspends after they are unprepared. > Prepare the clocks before enabling runtime PM, and unwind like > hantro_remove(): suspend first, then unprepare. > > Fixes: 775fec69008d ("media: add Rockchip VPU JPEG encoder driver") > Signed-off-by: Arun Iyengar [Severity: Low] Should the Fixes tag point to 556ab0b2741d ("media: hantro: release runtime resources when device_run fails") instead? In 775fec69008d ("media: add Rockchip VPU JPEG encoder driver"), clocks were enabled and disabled directly per job rather than by runtime PM callbacks. That later commit moved clk_bulk_enable() and clk_bulk_disable() into hantro_runtime_resume() and hantro_runtime_suspend(), introducing this bug. The companion fix in 8f9ab25ffef6 ("media: verisilicon: suspend the device before unregistering it on remove") cites the same commit. Citing the initial driver commit can misdirect stable backports to kernels where clocks are not managed by runtime PM. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261206-hantro-rob= ust-v4-0-b99d33a5ec6d@gmail.com?part=3D6