Return-Path: Received: from omzsmtpe02.verizonbusiness.com ([199.249.25.209]:61965 "EHLO omzsmtpe02.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753354AbdJGWh5 (ORCPT ); Sat, 7 Oct 2017 18:37:57 -0400 From: "Levin, Alexander (Sasha Levin)" Cc: Hans de Goede , Lee Jones , "Levin, Alexander (Sasha Levin)" To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH review for 4.4 05/24] mfd: axp20x: Fix axp288 PEK_DBR and PEK_DBF irqs being swapped Date: Sat, 7 Oct 2017 22:37:44 +0000 Message-ID: <20171007223738.25013-5-alexander.levin@verizon.com> References: <20171007223738.25013-1-alexander.levin@verizon.com> In-Reply-To: <20171007223738.25013-1-alexander.levin@verizon.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: 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 --- drivers/mfd/axp20x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 9842199e2e6c..89a2dd4d212a 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -164,14 +164,14 @@ static struct resource axp22x_pek_resources[] =3D { static struct resource axp288_power_button_resources[] =3D { { .name =3D "PEK_DBR", - .start =3D AXP288_IRQ_POKN, - .end =3D AXP288_IRQ_POKN, + .start =3D AXP288_IRQ_POKP, + .end =3D AXP288_IRQ_POKP, .flags =3D IORESOURCE_IRQ, }, { .name =3D "PEK_DBF", - .start =3D AXP288_IRQ_POKP, - .end =3D AXP288_IRQ_POKP, + .start =3D AXP288_IRQ_POKN, + .end =3D AXP288_IRQ_POKN, .flags =3D IORESOURCE_IRQ, }, }; --=20 2.11.0