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=1796296804; b=K0H3g+uTQMTLCYP/gAU+8YRGRjzyvL+JEGyMchVdTjWg5NQ/QpOCxqYrHVBkIIkNLd7P 9/j0mTdcorramBG/GfLesmWiRhKnNzZ9t8j1zcb3adP+xpIOh4dwfp+lZk8xXw0nzY/kB xrlDqCd2g+CwFOir5FntkwFzQ1sIpOu8jETDma9txe+gQAVowTNpaQTno5lJaYpx+Loxw EXXibDn2XMneVdmbtUoyfSWG9qtFZd+pFt+tDSHXa0ZRqmo5VoSSr47pfHtpZdkGM8hFL 4f6Mnj9B4zhOb6jNejNj7sax8Qtk+EtdPlzheGF+40+ZuNKP8ZJdKNjfVLvRwe6XAtA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796296804; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Hya8hAo70OQPsN8qUs0tmO+jFfX4zhrHntIQthaGWXM=; b=KIddxAOqZdv3Tifb4i75pCIn+/eqdSu8AQ9zLX83d3ku6KXrg5iJBjsWopna4HMD3bLl 9eFitTyCDPgA0pvc1Lp3PimdjmDBAAcaxPSx2UTGkyRKv2rQEAi6KchNoyUBNnFB9/Rww bQKu0m3kD9PgkGRVc48rlUktakcFOZ/8WroLzq9r/tK6F242/y9fDF9GeKrRYSdyAmRrC QLp8XQmHgEFWtYLgEtnMEt2eGIWCLP3Nnm1PcH2gUkoGYbTk6IrFZ9GCcb6ZF+XlhFhBc 9yFhMJQVO+NCaoAR8wmc3xJXAdM1xs+3yfU50zL1ZDKS+yJIMVS57+YvCaySBwgYniw== 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=R+TG36Dm; 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 8469E606A32C for ; Thu, 3 Dec 2026 11:20:04 +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=R+TG36Dm Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0890E1F00893; Thu, 3 Dec 2026 11:20:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796296804; bh=Hya8hAo70OQPsN8qUs0tmO+jFfX4zhrHntIQthaGWXM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=R+TG36DmD8RrmlQX4u0I4MyBYTwxFO2+OeLJoiM/08SvAD3lQnM6ODstg1u5w72VZ xvpCvzzwjxcBjwJY4O13EHPTjAd0oJrT+K3NR5b3t8JFOrkI9rBMutJUAkY2+/DsLx QlBesntY2bVRzvNJbAfOyVTS+vgv5qCFJGoeer3OR1dd+tv2cYFanv8c/h7OWdvbWb eOHZ3HBB3B7OJ4vUnqLK/Jx5/tejLN8Q2NPxw+JqC11p5D5XAQ9vbqpbNYWEBTWS2l g6ENoTrSrbaSaZuvyD6KH8UYx1YayrmdptHkMkJThfBUr/7KFTPyY2DCTldVCIqdo7 h/e4fYzftMupg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] rtc: cpcap: propagate IRQ lookup errors Reply-To: sashiko-reviews@lists.linux.dev To: yusuhao Cc: linux-rtc@vger.kernel.org, "Alexandre Belloni" In-Reply-To: <179629593405.27484.15275923845867532852@gmail.com> References: <179629593405.27484.15275923845867532852@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 11:20:03 +0000 X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: yusuhao <2025461029@korea.edu> >=20 > If the alarm or 1 Hz interrupt cannot be mapped, platform_get_irq() > can return -ENXIO. The probe passes that error as an unsigned IRQ > number to devm_request_threaded_irq(), which rejects it with -EINVAL. > This hides the reason the RTC could not be registered. >=20 > Check both IRQ lookups and return their errors before requesting the > interrupts. >=20 > An AI coding assistant identified the unchecked returns during source > review and drafted the fix and changelog. >=20 > Fixes: dd3bf50b35e3 ("rtc: cpcap: new rtc driver") > Signed-off-by: yusuhao <2025461029@korea.edu> Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/179629593405.27484.= 15275923845867532852@gmail.com?part=3D1