Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753209AbdHGMPQ (ORCPT ); Mon, 7 Aug 2017 08:15:16 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:37179 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753115AbdHGMPO (ORCPT ); Mon, 7 Aug 2017 08:15:14 -0400 MIME-Version: 1.0 In-Reply-To: <20170712112229.858-1-gregory.clement@free-electrons.com> References: <20170712112229.858-1-gregory.clement@free-electrons.com> From: Linus Walleij Date: Mon, 7 Aug 2017 14:15:12 +0200 Message-ID: Subject: Re: [PATCH] gpio: mvebu: Fix cause computation in irq handler To: Gregory CLEMENT Cc: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Thomas Petazzoni , "linux-arm-kernel@lists.infradead.org" , Nadav Haklai , Shadi Ammouri , Yehuda Yitschak , Omri Itach , Hanna Hawa , Igal Liberman , Marcin Wojtas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 838 Lines: 26 On Wed, Jul 12, 2017 at 1:22 PM, Gregory CLEMENT wrote: > When switching to regmap, the way to compute the irq cause was > reorganized. However while doing it, a typo was introduced: a 'xor' > replaced a 'and'. > > This lead to wrong behavior in the interrupt handler ans one of the > symptom was wrong irq handler called on the Armada 388 GP: > "->handle_irq(): c016303c, > handle_bad_irq+0x0/0x278 > ->irq_data.chip(): c0b0ec0c, > 0xc0b0ec0c > ->action(): (null) > IRQ_NOPROBE set > IRQ_NOREQUEST set > unexpected IRQ trap at vector 00 > irq 0, desc: ee804800, depth: 1, count: 0, unhandled: 0" > > Fixes: 2233bf7a92e7 ("gpio: mvebu: switch to regmap for register access") > Signed-off-by: Gregory CLEMENT Patch applied for fixes. Yours, Linus Walleij