From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC9D01C69D for ; Tue, 17 Mar 2026 12:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773749065; cv=none; b=kFoErQdFzr8LCJPjFVp9tSBvYrm8N6kRNExEPWHWE3h+nwDLX96uGCDJ3szIzghUSZYJ8dbp3JYoJ49guRd2po2WpNTULse0IZDTggiF0cMeXlsyB1tCWRgcMVyHIguDXAIxmmRwXGHfZMGjToyZG1iyCEQoxTbl3Hk6idY6AsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773749065; c=relaxed/simple; bh=Lvp2FkzjoYoMQSY5WOjudjML/zOhSlEnJTWfyDmXSqg=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=rw9Qs+HNQLML8uwAI2/hDzj4YU24o2fVWghTfQ6aQPdoiGp61nWMOQNeHLfNetMJod5OABVRzHMJsFPJdJQOS2085gj6QO44Yh3df+MEQCUQ30aWkZ/raEA0yNASKWlGt9wrDveVi2fThT/VC13nPYp4CvPNwWDxMBUXyC34EEM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sBMS/K/g; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="sBMS/K/g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EA8EC4CEF7; Tue, 17 Mar 2026 12:04:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773749065; bh=Lvp2FkzjoYoMQSY5WOjudjML/zOhSlEnJTWfyDmXSqg=; h=Subject:To:Cc:From:Date:From; b=sBMS/K/gDzUr6sqD/hzoYp2SxOtQvwDYsw1gXBoS40bbNg8kj8y/L5cLQPk/+fabB NPI/R6ensV7TuX55Ku04P1egDpN1u43hbFSqO9mrhnAV5ggIg79h0BPR3a2Ezcem8W lenXte7thxQDSz/1T24GMID2GEu0+r/NrcqOimqY= Subject: FAILED: patch "[PATCH] pmdomain: bcm: bcm2835-power: Fix broken reset status read" failed to apply to 5.15-stable tree To: mcanal@igalia.com,florian.fainelli@broadcom.com,ulf.hansson@linaro.org,wahrenst@gmx.net Cc: From: Date: Tue, 17 Mar 2026 13:04:12 +0100 Message-ID: <2026031712-system-washbasin-aaf4@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 550bae2c0931dbb664a61b08c21cf156f0a5362a # git commit -s git send-email --to '' --in-reply-to '2026031712-system-washbasin-aaf4@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 550bae2c0931dbb664a61b08c21cf156f0a5362a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ADra=20Canal?= Date: Thu, 12 Feb 2026 11:49:44 -0300 Subject: [PATCH] pmdomain: bcm: bcm2835-power: Fix broken reset status read MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bcm2835_reset_status() has a misplaced parenthesis on every PM_READ() call. Since PM_READ(reg) expands to readl(power->base + (reg)), the expression: PM_READ(PM_GRAFX & PM_V3DRSTN) computes the bitwise AND of the register offset PM_GRAFX with the bitmask PM_V3DRSTN before using the result as a register offset, reading from the wrong MMIO address instead of the intended PM_GRAFX register. The same issue affects the PM_IMAGE cases. Fix by moving the closing parenthesis so PM_READ() receives only the register offset, and the bitmask is applied to the value returned by the read. Fixes: 670c672608a1 ("soc: bcm: bcm2835-pm: Add support for power domains under a new binding.") Signed-off-by: MaĆ­ra Canal Reviewed-by: Florian Fainelli Reviewed-by: Stefan Wahren Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson diff --git a/drivers/pmdomain/bcm/bcm2835-power.c b/drivers/pmdomain/bcm/bcm2835-power.c index 1d29addfe036..0450202bbee2 100644 --- a/drivers/pmdomain/bcm/bcm2835-power.c +++ b/drivers/pmdomain/bcm/bcm2835-power.c @@ -580,11 +580,11 @@ static int bcm2835_reset_status(struct reset_controller_dev *rcdev, switch (id) { case BCM2835_RESET_V3D: - return !PM_READ(PM_GRAFX & PM_V3DRSTN); + return !(PM_READ(PM_GRAFX) & PM_V3DRSTN); case BCM2835_RESET_H264: - return !PM_READ(PM_IMAGE & PM_H264RSTN); + return !(PM_READ(PM_IMAGE) & PM_H264RSTN); case BCM2835_RESET_ISP: - return !PM_READ(PM_IMAGE & PM_ISPRSTN); + return !(PM_READ(PM_IMAGE) & PM_ISPRSTN); default: return -EINVAL; }