Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7E5FC27C76 for ; Wed, 25 Jan 2023 12:43:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235538AbjAYMnI (ORCPT ); Wed, 25 Jan 2023 07:43:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229827AbjAYMnG (ORCPT ); Wed, 25 Jan 2023 07:43:06 -0500 Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CBF71258C for ; Wed, 25 Jan 2023 04:43:05 -0800 (PST) Received: by mail-vs1-xe30.google.com with SMTP id n190so19623917vsc.11 for ; Wed, 25 Jan 2023 04:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=y9MlLzfNrrNROBs/lmqVUqpRhex8MV2e9oSUqiRXNtw=; b=dIU76gvQDKTrVJUilk0mp2w7ONp2FVbZt0p5Lc1YXRHFE36+PMZU0t77kyUhKv6vLL ECN89B5JxxvfcYGbSOthbdRo5XIYQ8hy6p3yYLv0AJsdY0MrcwBV3N9bq3OhRH+UMeu4 SGDCQraEXBMsRTJBHIkt354g4GIIbcgYwRJX3p+S3sdNSTI7r5mWLWGjmCZ4YiDtKJW+ e6V/8pHdW3T0R7hpRGje/TqV5qFMZ+nwRpYhdXTxl6Ev6+oYEi4rz233Bd4M040CZkV3 kb1KH0+rXMSGTRmrHkxlHVqvjH4FYUtZ7umjV3Dq0N5qA6el+Gn9WgYcUQVw/PX9b8rW R67w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y9MlLzfNrrNROBs/lmqVUqpRhex8MV2e9oSUqiRXNtw=; b=nCJwPWEo/wrQGYUNIGm1mC6lBSaMwNcUT1AHgxi1uxdGGBhEbe+B08ugXk/8Nszz62 g94hYpK/YNjpSawDQ6Is66kxwe12oQIqwp6IZVHlpLe2QNWO+UyOBD4mwi1uazd+j4r0 Qz/7FbbL6wBi4hLxsaYvQuJ47bpupfZ95Ygpxjmm8t8sctE2WWWbgue2AWaZ/esDNANV blPEILoEZB5GG3ZsG/CEqeHmAm6BCpCJx7DMMIXMZPIL/g7T/M/jGuPyewN7rkFsXu/0 pnhoPRnNmd5JnSHVuJQvgY44r1uzEsfQgQ4V3xr5BoKvviCpNhMvGB98+BAGMy2EnpU+ 51Vg== X-Gm-Message-State: AO0yUKVjzGBnJvJXsYJWeyBuZEaKRAD7ErA/yuZa7azE9phBHR76AjC6 tyibm2LdAXLVTBUB44CXR9pZV6l808kxOTDAfJPY3A== X-Google-Smtp-Source: AK7set+l8LFXjDVC/jgEj23injH7PuO3CV8lR6zv3xkqv3AnjMFZNbA1etZcwdXtKMQP2RAkHfAbJsTjLyip3l4Wt34= X-Received: by 2002:a67:e902:0:b0:3e8:4ce6:e27c with SMTP id c2-20020a67e902000000b003e84ce6e27cmr233236vso.73.1674650584378; Wed, 25 Jan 2023 04:43:04 -0800 (PST) MIME-Version: 1.0 References: <20230117100845.16708-1-nikita.shubin@maquefel.me> <20230125083026.5399-1-nikita.shubin@maquefel.me> <20230125083026.5399-2-nikita.shubin@maquefel.me> In-Reply-To: <20230125083026.5399-2-nikita.shubin@maquefel.me> From: Bartosz Golaszewski Date: Wed, 25 Jan 2023 13:42:36 +0100 Message-ID: Subject: Re: [PATCH v1 1/3] gpio: ep93xx: Fix port F hwirq numbers in handler To: Nikita Shubin Cc: linux-gpio@vger.kernel.org, Hartley Sweeten , Alexander Sverdlin , Russell King , Lukasz Majewski , Linus Walleij , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 25, 2023 at 9:30 AM Nikita Shubin wrote: > > Fix wrong translation of irq numbers in port F handler, as ep93xx hwirqs > increased by 1, we should simply decrease them by 1 in translation. > > Fixes: 482c27273f52 ("ARM: ep93xx: renumber interrupts") > Signed-off-by: Nikita Shubin > --- > drivers/gpio/gpio-ep93xx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c > index 2e1779709113..7edcdc575080 100644 > --- a/drivers/gpio/gpio-ep93xx.c > +++ b/drivers/gpio/gpio-ep93xx.c > @@ -148,7 +148,7 @@ static void ep93xx_gpio_f_irq_handler(struct irq_desc *desc) > */ > struct irq_chip *irqchip = irq_desc_get_chip(desc); > unsigned int irq = irq_desc_get_irq(desc); > - int port_f_idx = ((irq + 1) & 7) ^ 4; /* {19..22,47..50} -> {0..7} */ > + int port_f_idx = (irq & 7) ^ 4; /* {20..23,48..51} -> {0..7} */ > int gpio_irq = EP93XX_GPIO_F_IRQ_BASE + port_f_idx; > > chained_irq_enter(irqchip, desc); > -- > 2.37.4 > Queued for fixes, thanks! Bart