Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp781581rwp; Thu, 13 Jul 2023 00:25:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlHNSjBWmtdDG2g3RXz3qwsExKwVNQ5jn6z2yYNYOz8dFQ95sJb32M+A/Ep4JXh6ebRxYHiM X-Received: by 2002:a17:906:22db:b0:991:b613:9b65 with SMTP id q27-20020a17090622db00b00991b6139b65mr502893eja.37.1689233136062; Thu, 13 Jul 2023 00:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689233136; cv=none; d=google.com; s=arc-20160816; b=gWFfJxo4EdIVB+XnxDyA9Frc5Bf5oW/UrPXGcdjdJ/SB0tH4miwCFA97OQjpxDp7P7 Q87sdnMlAYsE/AlQmrmq6QtF9RvBUzAw6nzKzLYoekcIYhOlcf3vd4pIya+eKpE8p1Qb XIpGBUiiAmJd57WyHbootrA9otq3V7doVgIjGYWSHBrnG/sg0lveomSmlgHzfDAOdD5O BHXxTWkQuXC0vxJV0SsT1u0vwpi4Te6kA9xAnA0y/le9fvDjWmiye43DM3RYpm5Cn+kb ZjGSonuBjwNlfkEwi4tCfI8ETd3Mh1ljsfKsHobyqvMO83klXIcbZW3poSiJ/g+0KPgc DJlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=PFBIVhE+K+XmXSivpBt+5GlRRj8eTs/sovpDSWfJeQ8=; fh=1fUOgDenfZ7AIfXhF5qpARLtoyEhIcuG3m5DF1k7KOE=; b=SqzLm5TKhYrQAKza0cuTF5Rj1iDG5PoRvPb32x3Cqd6E8avkQtOtnbdIH/r6Ns+cmI aXju0iJWvKk0gh2/35UfUiEzmNaRUDadRQlG5dGr1KCSsh3xQw41Zc7+2O5KAvxbr2Bd ohGqjetGgeK233AD9KzV/qRGUN3T6IzADQKWnR37BcPo65VBGhrfES9bMN0tbqkwD5+6 reYWpb/sY7l1CjWAdplEeEc0CxAB00j7cfE3eJgLXocXaNd0lc47HrT4rk1a+2xRMxik 5BI0TBkquJqHo3JeI4VOmhcBGcLyyHfttP6ATBLAG3RW0sCA5gbeu8iKUC+2ti9mjTei /79w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l7-20020a1709066b8700b00993325b159csi6180805ejr.659.2023.07.13.00.25.12; Thu, 13 Jul 2023 00:25:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233770AbjGMGzj convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 02:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbjGMGzg (ORCPT ); Thu, 13 Jul 2023 02:55:36 -0400 Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B828D2118; Wed, 12 Jul 2023 23:55:21 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qJqEO-000tEz-Oz; Thu, 13 Jul 2023 08:55:16 +0200 Received: from p57bd9f0d.dip0.t-ipconnect.de ([87.189.159.13] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qJqEO-001a5n-Gh; Thu, 13 Jul 2023 08:55:16 +0200 Message-ID: Subject: Re: [PATCH] [RFC] sh: highlander: Handle virq offset in cascaded IRL demux From: John Paul Adrian Glaubitz To: Geert Uytterhoeven , Sergey Shtylyov , Yoshinori Sato , Rich Felker Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 13 Jul 2023 08:55:15 +0200 In-Reply-To: <4fcb0d08a2b372431c41e04312742dc9e41e1be4.1688908186.git.geert+renesas@glider.be> References: <4fcb0d08a2b372431c41e04312742dc9e41e1be4.1688908186.git.geert+renesas@glider.be> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 87.189.159.13 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2023-07-09 at 15:10 +0200, Geert Uytterhoeven wrote: > Take into account the virq offset when translating cascaded IRL > interrupts. > > Fixes: a8ac2961148e8c72 ("sh: Avoid using IRQ0 on SH3 and SH4") > Signed-off-by: Geert Uytterhoeven > --- > Compile-tested only, but the fix is identical to the fix for rts7751r2d. > --- > arch/sh/boards/mach-highlander/setup.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/sh/boards/mach-highlander/setup.c b/arch/sh/boards/mach-highlander/setup.c > index 533393d779c2b97f..a821a1b155473d93 100644 > --- a/arch/sh/boards/mach-highlander/setup.c > +++ b/arch/sh/boards/mach-highlander/setup.c > @@ -389,10 +389,10 @@ static unsigned char irl2irq[HL_NR_IRL]; > > static int highlander_irq_demux(int irq) > { > - if (irq >= HL_NR_IRL || irq < 0 || !irl2irq[irq]) > + if (irq >= 16 + HL_NR_IRL || irq < 16 || !irl2irq[irq - 16]) > return irq; > > - return irl2irq[irq]; > + return irl2irq[irq - 16]; > } > > static void __init highlander_init_irq(void) Applied to my for-linus branch. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913