From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:55958 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751325AbdKFJMX (ORCPT ); Mon, 6 Nov 2017 04:12:23 -0500 Subject: Patch "mfd: axp20x: Fix axp288 PEK_DBR and PEK_DBF irqs being swapped" has been added to the 4.9-stable tree To: hdegoede@redhat.com, alexander.levin@verizon.com, gregkh@linuxfoundation.org, lee.jones@linaro.org, wens@csie.org Cc: , From: Date: Mon, 06 Nov 2017 10:11:41 +0100 Message-ID: <150995950123555@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled mfd: axp20x: Fix axp288 PEK_DBR and PEK_DBF irqs being swapped to the 4.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: mfd-axp20x-fix-axp288-pek_dbr-and-pek_dbf-irqs-being-swapped.patch and it can be found in the queue-4.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From foo@baz Mon Nov 6 10:07:35 CET 2017 From: Hans de Goede Date: Sat, 7 Oct 2017 22:36:48 +0000 Subject: mfd: axp20x: Fix axp288 PEK_DBR and PEK_DBF irqs being swapped From: Hans de Goede [ Upstream commit 1af468ebe45591651ec3bafc2e9ddc6fdef70ae0 ] The R in PEK_DBR stands for rising, so it should be mapped to AXP288_IRQ_POKP where the last P stands for positive edge. Likewise PEK_DBF should be mapped to the falling edge, aka the _N_egative edge, so it should be mapped to AXP288_IRQ_POKN. This fixes the inverted powerbutton status reporting by the axp20x-pek driver. Signed-off-by: Hans de Goede Acked-by: Chen-Yu Tsai Signed-off-by: Lee Jones Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/mfd/axp20x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -205,14 +205,14 @@ static struct resource axp22x_pek_resour static struct resource axp288_power_button_resources[] = { { .name = "PEK_DBR", - .start = AXP288_IRQ_POKN, - .end = AXP288_IRQ_POKN, + .start = AXP288_IRQ_POKP, + .end = AXP288_IRQ_POKP, .flags = IORESOURCE_IRQ, }, { .name = "PEK_DBF", - .start = AXP288_IRQ_POKP, - .end = AXP288_IRQ_POKP, + .start = AXP288_IRQ_POKN, + .end = AXP288_IRQ_POKN, .flags = IORESOURCE_IRQ, }, }; Patches currently in stable-queue which might be from hdegoede@redhat.com are queue-4.9/mfd-axp20x-fix-axp288-pek_dbr-and-pek_dbf-irqs-being-swapped.patch