From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 8F9584071DA; Sun, 7 Jun 2026 10:15:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780827344; cv=none; b=phl8dFXNES5etzSih2rd47f8FrktLjMoG5aM5JUpJOXAd1NLnvZjqliOEu8Bn6/d+vs1be7YqHBA9/ua0cH+P/UwK89IBt4he5EdiJMJmebmVu0qPzyUhqAzd0bYI/Tdg43Z39gRnFoVV1sJdkx/WDEK7onpD4fMCDyG7fXzKaE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780827344; c=relaxed/simple; bh=MH+zu6bwV9RX3C48941Eaq0h2IHGcxeq6rBRS+6Gt8s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rU9EuGvWSMyFGhZlFMvDwJa+dM4mGWN1nvrx0sBxIlcj0v60g4Yfnk2IZeR8qJcH+3RREux+GDP18tH6ZrcNHxYWV3DqR5e/WthEF2wRZkoM1IHl5S8oNgkuOKCUFG13HGsXpXoMQ3UhZshSDc2QnTLACjZIQWHZ9sPv70yza3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nv2yXH0x; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nv2yXH0x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE4731F00893; Sun, 7 Jun 2026 10:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780827343; bh=usvDKK46CRG6iBlitsgm/SRey0JyrR4TOr3gdjDEDLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nv2yXH0xDh0LFgwT/vef6ieYTFlvDkb+hY/RHpWHe0eexEHZl30OPGMUQpmM3nk+z bep5NELz26V6Or5nSwzYPasASdzewP4BOpe2Y3ldXPLC+lec4WU7xSDT4bGreRBqcg yUlPos39RSWp7mDv3R4EV1ndWgItU39kQbpmlBzM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Alexander Stein , Frank Li , Bartosz Golaszewski , Sasha Levin Subject: [PATCH 6.12 047/307] gpio: mxc: fix irq_high handling Date: Sun, 7 Jun 2026 11:57:24 +0200 Message-ID: <20260607095729.440859631@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260607095727.647295505@linuxfoundation.org> References: <20260607095727.647295505@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexander Stein [ Upstream commit dac917ed5aead741004db8d0d5151dd577802df8 ] If port->irq_high is -1 (fsl,imx21-gpio compatible) and gpio_idx is >= 16 enable_irq_wake() is called with -1 which is wrong. Fixes: 5f6d1998adeb ("gpio: mxc: release the parent IRQ in runtime suspend") Signed-off-by: Alexander Stein Reviewed-by: Frank Li Link: https://patch.msgid.link/20260526063504.25916-1-alexander.stein@ew.tq-group.com Signed-off-by: Bartosz Golaszewski Signed-off-by: Sasha Levin --- drivers/gpio/gpio-mxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 3cdc2b218a86af..a8ab78ae7fa30c 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -473,7 +473,7 @@ static int mxc_gpio_probe(struct platform_device *pdev) * the handler is needed only once, but doing it for every port * is more robust and easier. */ - port->irq_high = -1; + port->irq_high = 0; port->mx_irq_handler = mx2_gpio_irq_handler; } else port->mx_irq_handler = mx3_gpio_irq_handler; -- 2.53.0