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 C00311E7C2E; Wed, 15 Jan 2025 10:51: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=1736938286; cv=none; b=QGH1KtkxMuwKWMtKQD+7mysH6SzPTVNLp1ZVZFHuU99WPq9LMQ3nSPOfocNC1bZbyN/BmZHfh2K9STzUsiawKOPDUpx+TQJs/F5yD3T3blO6ncCOHfPzfBSJ4rFq90DqbHXcqWTDM5iWACMitCGLjlarN+9JaAEkLs7k3Zqd09g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736938286; c=relaxed/simple; bh=1V3BpyClJ2nB2H1/sgSYy9Lar6yVvvQMVQ26ta1LXso=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UTvBS8QvaWkZxGlRdSrhPQ6V0wODApC8qfcQPFe8OylUst9YWYfReEUgmbD4YlH0dMbNh3LKmXPO1q9jgkTgq1+hTFQUObrjxRGAaf0VlBU1NxawMPWySCiZg3OV+QCcRsFIscSBuTCLYRDdVCnaeTx9UFpxJVaoMiCnsiLZ060= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vaVv8dx7; 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="vaVv8dx7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC0B1C4CEE2; Wed, 15 Jan 2025 10:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736938285; bh=1V3BpyClJ2nB2H1/sgSYy9Lar6yVvvQMVQ26ta1LXso=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vaVv8dx75FJuXmkqTX2Pkb1t9HPRY7IEufeUyGenYXGJZFaUkGpYopgfuzU6d1fCi +E75JjtgLcpW23VKIWM/jCkIwYMXobUsdGJzOgNnkb60d1xEtSLOd1Hc/h/vQZf24o u9aNrSl5QW61Kq277jW6KMjh4QvGAsNdF1WcfhPY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , Rengarajan S Subject: [PATCH 6.12 138/189] misc: microchip: pci1xxxx: Resolve kernel panic during GPIO IRQ handling Date: Wed, 15 Jan 2025 11:37:14 +0100 Message-ID: <20250115103611.938581868@linuxfoundation.org> X-Mailer: git-send-email 2.48.0 In-Reply-To: <20250115103606.357764746@linuxfoundation.org> References: <20250115103606.357764746@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org 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: Rengarajan S commit 194f9f94a5169547d682e9bbcc5ae6d18a564735 upstream. Resolve kernel panic caused by improper handling of IRQs while accessing GPIO values. This is done by replacing generic_handle_irq with handle_nested_irq. Fixes: 1f4d8ae231f4 ("misc: microchip: pci1xxxx: Add gpio irq handler and irq helper functions irq_ack, irq_mask, irq_unmask and irq_set_type of irq_chip.") Cc: stable Signed-off-by: Rengarajan S Link: https://lore.kernel.org/r/20241205133626.1483499-2-rengarajan.s@microchip.com Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c +++ b/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c @@ -277,7 +277,7 @@ static irqreturn_t pci1xxxx_gpio_irq_han writel(BIT(bit), priv->reg_base + INTR_STATUS_OFFSET(gpiobank)); spin_unlock_irqrestore(&priv->lock, flags); irq = irq_find_mapping(gc->irq.domain, (bit + (gpiobank * 32))); - generic_handle_irq(irq); + handle_nested_irq(irq); } } spin_lock_irqsave(&priv->lock, flags);