Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp781322rwp; Thu, 13 Jul 2023 00:25:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlF8e3OJxWtrzquRIJrI1Pbk6wFmpvItkSkadkZwFWvNl4d/L8XJw+93Irvcuci8ObU4cV/o X-Received: by 2002:a17:906:5195:b0:993:d54b:3e42 with SMTP id y21-20020a170906519500b00993d54b3e42mr566559ejk.5.1689233115503; Thu, 13 Jul 2023 00:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689233115; cv=none; d=google.com; s=arc-20160816; b=ilgdZXHszAcT1D/QXpEjiBp8w90E6nYuuwjMewRHOlppPqQVGj0OrexUct8e7C2OMQ tVgGLQx9Sivxfion3fPLHZYwb0enzNXSxZdFQwLMd/6LqfMhQQSAzpmuqACoFT19iN+o dN0wSMsC7AIQ2zz9RQYteBTqaEzIPUas88BtqHF8FXNjVjEOiDFeGiUQ/dmOjmG9lBLk glRhjgfl/qM00ebaVpWPGKftZ8L2104geor3rIXjXTAXxDW/ojyFu43WTCf9cxficlav n7U+lTh1REyGWPW+v6tJ1+f3LY0P4QEKa7vK51O9yQ9myPYq8HRfpTrnvu61yhQV0bQu ZGTQ== 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=FqrZWuvos2YpwCQJQ8yblaXo3qtkoHA3cFATAUhGdE4VtZshOPld8uzp2dkULQbpOd +nsyBHnRtH4GqexLPbzenB4ZrzZtoew9WtshATT/nxTd19mhzEkIXpFOltGCKJ712rLG nKSbFVcRdWrvhOtIvgrXCQvo2NqTPU/sl0Uk01ZQyxng7WdRlgk/xf38ora/H3fzbkJl Zv6Q3nJcMYSgPp/A2E1RwiIO6a8M+YqfOxkp2qak0Fd6NYzId/jKWNd0p6CVQkJpLme8 ZHcKOaHa/EVoQD75lV1BsVWBOYTTSH9nU8yNlGtbsODqGFQX8itPWKb1w/HjPvSCfyX8 1sug== 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 b18-20020a170906709200b009934728f33bsi6368450ejk.533.2023.07.13.00.24.51; Thu, 13 Jul 2023 00:25:15 -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 S230408AbjGMGzI convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 02:55:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbjGMGzH (ORCPT ); Thu, 13 Jul 2023 02:55:07 -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 35F0B119; Wed, 12 Jul 2023 23:55:06 -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 1qJqE9-000t2O-48; Thu, 13 Jul 2023 08:55:01 +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 1qJqE8-001Zzm-Q0; Thu, 13 Jul 2023 08:55:01 +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:54:58 +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