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=1796441128; b=3e0AApNgNP4+MYQxTPWueXYz4ofOQSYUCsoeYzogQMTL2J3S0udBkDXAM93Z+yXRDlqX wSrn0soM5csiCkP79WeZkix/w6nwRT4jBEE7C7luRf/eccTmvB1DPktjqImuT0BZvn8Gl I3G+cIqxuChkkWPwZTsRt5jRevdHoN3mTKaydVfc6/TY7/Bh1JM/AGSkzMsbWTk5l8ORP uhh5dw7kETrdjbBciDm24vQtOqBMordSLx3QRsnZUiH6HAEPOSMCopXfP3PVcaY1bhmNb uR7qKkGkT4DTaJdyNPXe91WrLuorn5HnFyQ5jRpU85My2JxxWDBTQqNOCSk3aH9TjDw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796441128; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=8E2XZdOTOjwrlvFdH6sAwSo8NIHrC4D5eCTu4YNBu2E=; b=LKFTixje9vTjXw3XZhYDnveeN5j63a/Abea65EsWjGsMNNWVwfYSK4mxIPd8uiv0S5nn jwQdaAvYeWv2iF/s7G5cTaj9mNnKn5XOWWnN7bxkSt+2vPE/JJFcNKaZWl3FuF7plD6re Vm6jLmibXu1bwuGgU4er3HlvyND4UJiU/5gsDtbctm4dT4aBEG01GZKcaKcHDQ/7Xv2yt /IxIEPa73W9N4LYesOkr3jJrb0qAtbl2igeKy0yy5kp5Lwb8oZtT3siuwqLx9He66TKob XSqk3oidq+RMLnDW1TKocHwNy29xcragfUBSRCh0UTi8uQDC0KpxXkFSNZ4QsA+PYbg== 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="Q/GN5hdN"; 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 A2A26606A322; Sat, 5 Dec 2026 03:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Q/GN5hdN Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2287D1F00A07; Sat, 5 Dec 2026 03:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796441128; bh=8E2XZdOTOjwrlvFdH6sAwSo8NIHrC4D5eCTu4YNBu2E=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Q/GN5hdNehbldUfBu3e9j0S3raQK4z8z05b+5GK54i5IAIO7RrwSNWp48I+fT2Hpj 0b/ugwzDCycD2Faid4nRMpH3IInmoEIR+5547LmSuLcWCmn5aOk8q2WMEdEY4xK44O s/5wO1VJJYa+ShL217rq5OTG2qE3CT/EhWuUB35uC+3zxVCATGGypc8FIBPr21njjL xpwt8yPD0gix6e/Gk1N6XRjwOtfaphmIq2+d3HPxo6xMAAceO1hDAc/L0ySfnc/mqz fZnEj8+CaMJXIqXsIDDZ+P8P/534g+bz8RTaBt62IpgCd3Pu16Mbt5gLwMmlTc8OXc ozmJORCaxccYw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 3/5] gpio: mvebu: don't re-mask irqs unmasked during early resume Reply-To: sashiko-reviews@lists.linux.dev To: "Rosen Penev" Cc: linux-gpio@vger.kernel.org, linux-rt-devel@lists.linux.dev, linux-kernel@vger.kernel.org In-Reply-To: <20261205031111.12306-4-rosenp@gmail.com> References: <20261205031111.12306-1-rosenp@gmail.com> <20261205031111.12306-4-rosenp@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 03:25:27 +0000 X-Mailing-List: linux-rt-devel@lists.linux.dev 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] gpio: mvebu: Fixes trailer cites 02af7eac17bc instead of b5b7b487431b -- commit 274be6d5e8aaf9eb8607be44d3ba9ffbf49f09e2 Author: Rosen Penev > gpio: mvebu: don't re-mask irqs unmasked during early resume > > mvebu_gpio_resume() writes back the mask registers saved at suspend > time, ANDed with the irqchip mask cache. A line that was masked at > suspend time and unmasked before mvebu_gpio_resume() runs, for example > by enable_irq() in another driver's resume_noirq callback, is set in > both the cache and the hardware, but not in the saved value. The > restore then masks it again behind genirq's back and its interrupts > are lost. > > Include the current register value when restoring: keep a line > unmasked if it was unmasked at suspend time or is unmasked now, and > only while the cache still has it unmasked. After a power loss the > mask registers come back as zero, so this changes nothing there. > > Fixes: 02af7eac17bc ("gpio: mvebu: keep resume masks within the irqchip c= ache") > Signed-off-by: Rosen Penev [Severity: Low] Should the Fixes trailer point to b5b7b487431b ("gpio: mvebu: add suspend/resume support") instead of 02af7eac17bc ("gpio: mvebu: keep resume masks within the irqchip cache")? mvebu_gpio_resume() has overwritten the mask registers with suspend-time sa= ved values since b5b7b487431b ("gpio: mvebu: add suspend/resume support"), which already re-masked lines unmasked during early resume. Masking the saved va= lue with the irqchip cache did not change the outcome when the saved bit is 0. Citing the introducing commit helps stable trees with suspend/resume support track the fix: Fixes: b5b7b487431b ("gpio: mvebu: add suspend/resume support") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205031111.1230= 6-1-rosenp@gmail.com?part=3D3