Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37904073rwd; Tue, 11 Jul 2023 23:32:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlG0v0u+KACn7BsYK555pqN8qjmaG8M0NVX5ZI2kSsF97otS3Oin6Gm4PWxBXJkonusu1qGg X-Received: by 2002:a17:906:1859:b0:98e:2c13:c44d with SMTP id w25-20020a170906185900b0098e2c13c44dmr13899844eje.68.1689143553965; Tue, 11 Jul 2023 23:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689143553; cv=none; d=google.com; s=arc-20160816; b=jrrClLNT2XD2DdlAVf9uPryd6YEiO6v5lMmugQMr5SC3JOd4LIo5+vX7rA8hyBlO3a Gbhx7uErR/NDILXzs2JaIT4H8haXqiTs65UxNGE44kuMg8a+vSq6JU8iDj7ZyVtz4EXT JSFhMVfll2ljMpJWFB78YXloqfGkCqPk3bACrU3IhVB45GdANdSP92Gx5QOz+LGwfREM nnrJlwk78/rz+MOFjGLReDeRYkMQZAD2DwoJQM98CVdkA1Amo8SAEZcLOyBNEzF61OeT TJhSq62o0a106do3a0O0BpYop6BlS0hug6Im1rTYZ+2JmjqKTUP/GdXKjt9RwDm98G4V 3OHw== 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=XzbYuxkyByI4z9YMvXsIKwU5a78UuRinspsvbkqqgsU=; fh=1fUOgDenfZ7AIfXhF5qpARLtoyEhIcuG3m5DF1k7KOE=; b=oqsGX1+J5nhJva1rvw8CTRiqgTT7pOb0Ee7Pl1yOrjNvU76w88TOYXDDkleCi9Zqub cpbY7zZYAMWuX9nh9eBLkKGwTLSgZTJzd3u9Ha7sI1hlffrxzCSACk4XazSqxKsTXe7x NGyTmOtNgagnRTfTnpKoPmzv3eBAVLu0KgzGBD2L/XXkSEzgu9jsN9e4gN6OXpcYhT12 VmAvBeejaYMycx5CCVFcUAlHXU3q8oBmliQljAXiJwAFXgwmtaU6RNgIz+eWczu5Yk/z mrSeoVqA9pT1DcrsQQk7lJMGaRnt6QKDgN86LqAmwsumrstox5ZDOlFHvZsS3DbnwAA3 4Tdw== 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 n1-20020a170906088100b0098da8d0ce54si3745777eje.834.2023.07.11.23.32.10; Tue, 11 Jul 2023 23:32:33 -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 S231642AbjGLFP3 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 Jul 2023 01:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229928AbjGLFP1 (ORCPT ); Wed, 12 Jul 2023 01:15:27 -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 63F1710E3; Tue, 11 Jul 2023 22:15:26 -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 1qJSC6-002AA8-7T; Wed, 12 Jul 2023 07:15:18 +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 1qJSC6-0016Z1-09; Wed, 12 Jul 2023 07:15:18 +0200 Message-ID: <31e4e3d0e6d1c6f044dd9461b81eb7f410ccabfe.camel@physik.fu-berlin.de> 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: Wed, 12 Jul 2023 07:15:16 +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) Reviewed-by: John Paul Adrian Glaubitz -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913