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=1795981348; b=XzQXLulRIIi9nfpHO3RgiE6jjUrb3W0gLf3gcOqo9TKEVRg2Esur9yrI9XlQxqJhetiR Iwy4nGZnN5FqnzRDQr/o9FDgSA33bhb+UAiNH6zpwJwHKwfyRROlNgoax926t96H5JDUc D2hOlVhk9GGRwpu3sfAes78pdqZVAmMrAagnYDyDYkKOD4jsGzK63e27PGpqiiK1cz7Sq O+2INGMIWoIivjFMZY+W+vhSj7NhuzProKRvXyU4v6FgrSb9+7+6c3zueRHS56HIJ9Ug4 XpvBY9cfXJnRwkVS+T/1D0GINWnLXBCrPyuOiYoOPZAASfT3U+igaJPTHfynojFzNbA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795981348; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=0CM53IMEGPF7WfOMZWihOu4wj7Ii9SwVnFWqbrfdLWA=; b=uknJZBW/gZ2DHyFQcBTkh9jF9JayJyPomtNfzJAC5VR9B2N4jFdYbHOdpNeASTmQa2/C NluWCyHF2rnulG7RwdGFQQJ6slpC3w231FXq3pyxOlmG/x3jVQJfgke5VlnUXsKIYob96 m+esDqD4kxiPWSc9gCqIeyoNnrf2veOrdzmiD5ZHh9tbKzflcid1ZmrXKdZKwzbjV48Ua 8j6amoixJvdMJ3FjSEpssaG7BmbjeWyh6FNX6uD3kOY4Ysgm1eT+rhGWtEYHb/6T+MErq 35Zi2+og+4reedz+Rp4ZPV01C5zxfCkzwUaZXzP4fJwT5BR+XAZKIF1sZ9LOgObuf2w== 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=E8aTsxAh; 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 2D75E606A31C for ; Sun, 29 Nov 2026 19:42:28 +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=E8aTsxAh Received: by smtp.kernel.org (Postfix) with ESMTPSA id C10381F000C1; Sun, 29 Nov 2026 19:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795981347; bh=0CM53IMEGPF7WfOMZWihOu4wj7Ii9SwVnFWqbrfdLWA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=E8aTsxAhEZIvuXwfyvzIkmNLBJzAkZ/KsR+Km+HWgtSC3WyC1EDi6tdmjnn3Yw6YX X3QVWGeTMFEdGJoVBfC0fNWrnSqaQaz9lwR5yUZNKLwHZN8fzh26j79gbJ8d+A7Ic2 o3qQtgRuqaCVuqYXraJUP+cw9UUO/AHrPw7Z1k7bJGcsTAq99r+fdcsrXvWcNoqzLJ HDO+3L1v8+0lLXH4wJoiyqqLnrnwqqkzBgdci9wYrA1umC1gwPWDbh4zahlvidF3M7 Yoh/3uIxdXf7yAz2IDd5vn/i+YGHbvpo/NFzCZhAWawHBKudpF7jmhSeZwR5kvYXSs XbmKT5ofBLzzw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] serial: samsung: Handle clock enable errors in noirq resume Reply-To: sashiko-reviews@lists.linux.dev To: "Jiawen Liu" Cc: linux-serial@vger.kernel.org In-Reply-To: <179598034086.2.8243056622030752053.pattern-ext-118.18@gmail.com> References: <179598034086.2.8243056622030752053.pattern-ext-118.18@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 19:42:27 +0000 X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > On Exynos5433 TM2 and TM2e, the audio UART gets its controller clock > from the audio CMU. If the CMU is runtime-suspended and runtime PM is > still disabled during noirq resume, preparing the clock can fail with > -EACCES. The S3C6400 resume callback ignores the error, attempts to > write the interrupt mask without acquiring the controller clock, and > releases an unacquired clock reference. The clock framework warns > when the enable or prepare count is zero. >=20 > Return the clock error before writing the interrupt mask. If enabling > a present baud clock fails, release the controller clock before > returning the error. The PM core reports the error and continues > system resume. >=20 > The drafting input was the source > review of the noirq clock failure. Verification included source > inspection of the clock paths, an ARM64 Exynos driver object build > with CONFIG_PM_SLEEP=3Dy, checkpatch, and git diff --check. No runtime > or hardware reproduction was performed. >=20 > Fixes: a8a1781b8726 ("serial: samsung: enable clock before accessing inte= rrupt mask resister") > Signed-off-by: Jiawen Liu Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179598034086.2.8243= 056622030752053.pattern-ext-118.18@gmail.com?part=3D1