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=1795980709; b=zJbK1xf9SVk9RAkHupO8yMIEmLr/vhSxnYHk8kZ6JYWHG6XvaFTXyhybMRdDFqW3JTTD cEgR1XMBQwa8mPqxCaf1XWgud62jysx2vR1fRzHBaj0c0yWxywpiMBxiZuAlnarN43NVz qi7bAqYOvq/i6Q+NRtv8iCxPrYgzlYyZ25jYIoCKiJuKykYmNAilI5NHfbn7pgX1vtQDj rd+BvqU+u/CRN1Q8L36g2Vqywkhz2FF1KVo+JMdKA4cCG1MSoN5pMx8ASyRfL8guks1Fh G61fzPG2B7mHAPbd8ME8hJPyuE9gTHv/26GYLgSwKYaH3crV+ihtn18h2Pi/Z2wFfVw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795980709; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=LSrjprwK8qdMh6vd/nYwqnNeV/RErAmtqt+gWu+BCC0=; b=hVDcJPcXJWIXA9y7IlF31SgBpPedfhCVdO62FDRCfp2P86FHT/NTtMSdqAvWg2oQ4rxQ orO/23+cfnvvyHVlruPRQxiMjIyowS4GGS5yfOFTbq5bbGbNtL0Ty87OQKORj6pFKgSCD RVVmOkIsPG0wDT2Iol6pLKz1SCot+Jm4XjrKlVY6q39a03ZjuXhlAIH+LP30BidpD7S4Q sY+6GpcGRL5CQfrixCWJm9NQV6G+J1Ok/s9jYkWXuolGX42NgVffelIHpY+Kuuaj04+ks Y1vJHREOe1qlY3Uq469neOcK59whNmdy21x2IY9YSMHDP2hcu25TpVy2vhQN5k6tPuw== 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=Hz0dwGZS; 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 C0F29606A325 for ; Sun, 29 Nov 2026 19:31:49 +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=Hz0dwGZS Received: by smtp.kernel.org (Postfix) with ESMTPSA id B732F1F00896; Sun, 29 Nov 2026 19:31:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795980708; bh=LSrjprwK8qdMh6vd/nYwqnNeV/RErAmtqt+gWu+BCC0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Hz0dwGZSsMtQamP6TVrIrqsWNDjFaICj5v4n71oKH7IFIqjG14oO628c+7M7PJG5P m838zQWZLam6yIXbdSHFkjuVNRcOjW5/kIdjUFAMBCdLM2XgUIge6vshICeGvnJ3Xv 0GhAiYY08nnMZ0gRX3RlS/p1gza5hCyfyyHGzJcdoG2hjOIrG0CZYsk+RdyH7ivcbE D86kl0qbGmNoAYudM6BCzM60qPyi0kGlsxa5/wP8bzm6osPBEchJTGGO4/csCmt7+6 nEPici/4RuOacGNRKKlm0DhXfOmG2bQYMEA3h+aPShnths8HoR2NI+KlBJWqXhn4cu HZ20FLLYHJqDw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] rtc: omap: abort probe if runtime resume fails Reply-To: sashiko-reviews@lists.linux.dev To: "Jiawen Liu" Cc: linux-rtc@vger.kernel.org, "Alexandre Belloni" In-Reply-To: <179598033474.2.16434657830284928463.pattern-ext-052.2@gmail.com> References: <179598033474.2.16434657830284928463.pattern-ext-052.2@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 19:31:48 +0000 X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > On AM335x, the ti-sysc parent can runtime suspend before a later RTC > probe. If its functional clock fails to become ready during resume, > the RTC's synchronous runtime PM acquisition can fail. Probe ignores > that result and immediately writes the KICK and interrupt registers > while the parent remains suspended. >=20 > Use pm_runtime_resume_and_get() and return its error before accessing > any RTC registers. The helper balances the usage count on failure, > so disable runtime PM and release the optional oscillator clock in > the early error path. Check clk_prepare_enable() so that this path > only releases a clock that was successfully enabled. A successful > probe retains its runtime PM reference for the existing cleanup. >=20 > Source review traced probe and > removal. The rtc-omap object built for ARM OMAP2+ with AM33xx and > CONFIG_PM=3Dy and for x86_64 COMPILE_TEST with CONFIG_PM=3Dn. Both > git diff --check and checkpatch.pl passed. Runtime and hardware > reproduction were not performed. >=20 > Fixes: fc9bd9022e8d ("rtc: omap: add runtime pm support") > Signed-off-by: Jiawen Liu Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179598033474.2.1643= 4657830284928463.pattern-ext-052.2@gmail.com?part=3D1