Skip to content

Commit f9776d7

Browse files
jwrdegoedegregkh
authored andcommitted
mfd: axp20x: Fix axp288 PEK_DBR and PEK_DBF irqs being swapped
[ 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 <hdegoede@redhat.com> Acked-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 8800aba commit f9776d7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/mfd/axp20x.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ static struct resource axp22x_pek_resources[] = {
164164
static struct resource axp288_power_button_resources[] = {
165165
{
166166
.name = "PEK_DBR",
167-
.start = AXP288_IRQ_POKN,
168-
.end = AXP288_IRQ_POKN,
167+
.start = AXP288_IRQ_POKP,
168+
.end = AXP288_IRQ_POKP,
169169
.flags = IORESOURCE_IRQ,
170170
},
171171
{
172172
.name = "PEK_DBF",
173-
.start = AXP288_IRQ_POKP,
174-
.end = AXP288_IRQ_POKP,
173+
.start = AXP288_IRQ_POKN,
174+
.end = AXP288_IRQ_POKN,
175175
.flags = IORESOURCE_IRQ,
176176
},
177177
};

0 commit comments

Comments
 (0)