Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37884297rwd; Tue, 11 Jul 2023 23:06:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhROuxTMLwg2z4lQ6kVwQhGz+LQEQmpwFpMW37IswQKeXWQjxvrBazM1BTVP6b4Qut3N5S X-Received: by 2002:a05:6870:428a:b0:1b0:67a9:3092 with SMTP id y10-20020a056870428a00b001b067a93092mr18940831oah.42.1689141965704; Tue, 11 Jul 2023 23:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689141965; cv=none; d=google.com; s=arc-20160816; b=V9SZlaZNYi/3KFwpIIJnBzYhJ1pJip7eq08RLFr5NProY80b8dO3gLA9WSrT+O1Qkz FX7Wn5x5fWvvEY64nQD9/KRZc2yO2EbWMaNCyPfTFer0xnLCy9ZrSmuvpn+77RHR2Ypk V2OoBml9zKX/I7jHKVAAGvRJv8q/MKtfx+lDpIzZ894KUoWf/F87GKsd2z1u+sfhtW9q T2mFb03svQup8/Y8Zd5zfK2Y9eDLNm1R8DD1guiITQgmRP/QyP1BGMrbiQ4PrNgIjZ1N E3Xv8Y7vt6M6ZXK3fQJH/zdvCCXDSKqdcguQhxAbAa01lHUwcpPWye2FDHHOoDM2DLP/ 3qKg== 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=wSZ5F0iTfCFVJcFe7OXGkhOGR/0UBUSK5y6MgM6xz4U=; fh=6ltqI59+WDZzBoHqWD3yzmodbr0YBuDpjvBGA0srqEE=; b=wHfody3nJhGHYgD27q153ow9Rm5ZGNCD4UQfKYFTooj8FvOWR5bcTsAr8tcz97vebU A0H+c5jSQ4+4/kl7NF5XGa4qPJH6hgegI411/ClUdha/Eq9zhC5oqYEM/z83nr3XIolv nxt0/7Ezia6XQRgBjxEEs8M+tHjMkiLAh6wL8sKNlZyyTqQoGvAusgzikbXnxotEcOjy pL2CntCZI9jbVZ2vn1rO72RK8035vMU72aiQnU+n+MWyzLoLSEd2PzMctOM80o28khzQ 37vfe3P7kmyAsTKMsWeyjMp+tvBxoXvsIJ3ENpPUPjGsbqz3ssa6+RkzBl56DxGLaX1x gXYg== 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 193-20020a6301ca000000b0055bc30ae086si2472008pgb.594.2023.07.11.23.05.53; Tue, 11 Jul 2023 23:06:05 -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 S229963AbjGLFSG convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 Jul 2023 01:18:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231881AbjGLFRz (ORCPT ); Wed, 12 Jul 2023 01:17:55 -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 E39991991; Tue, 11 Jul 2023 22:17:46 -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 1qJSER-002Afx-7t; Wed, 12 Jul 2023 07:17:43 +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 1qJSER-0017Ez-0Y; Wed, 12 Jul 2023 07:17:43 +0200 Message-ID: <468e45043bc0b9658f4ee3d8a35274cf266f3f49.camel@physik.fu-berlin.de> Subject: Re: [PATCH v2] sh: hd64461: fix virq offsets From: John Paul Adrian Glaubitz To: Artur Rojek , Rich Felker , Geert Uytterhoeven , Sergey Shtylyov Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 12 Jul 2023 07:17:41 +0200 In-Reply-To: <20230710233132.69734-1-contact@artur-rojek.eu> References: <20230710233132.69734-1-contact@artur-rojek.eu> 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 Tue, 2023-07-11 at 01:31 +0200, Artur Rojek wrote: > A recent change to start counting SuperH IRQ #s from 16 breaks support > for the Hitachi HD64461 companion chip. > > Move the offchip IRQ base and HD64461 IRQ # by 16 in order to > accommodate for the new virq numbering rules. > > Fixes: a8ac2961148e ("sh: Avoid using IRQ0 on SH3 and SH4") > Signed-off-by: Artur Rojek > --- > > v2: Make the IRQ base offset an explicit (64 + 16), as per review. > > arch/sh/cchips/Kconfig | 4 ++-- > arch/sh/include/asm/hd64461.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/sh/cchips/Kconfig b/arch/sh/cchips/Kconfig > index efde2edb5627..9659a0bc58de 100644 > --- a/arch/sh/cchips/Kconfig > +++ b/arch/sh/cchips/Kconfig > @@ -29,9 +29,9 @@ endchoice > config HD64461_IRQ > int "HD64461 IRQ" > depends on HD64461 > - default "36" > + default "52" > help > - The default setting of the HD64461 IRQ is 36. > + The default setting of the HD64461 IRQ is 52. > > Do not change this unless you know what you are doing. > > diff --git a/arch/sh/include/asm/hd64461.h b/arch/sh/include/asm/hd64461.h > index afb24cb034b1..d2c485fa333b 100644 > --- a/arch/sh/include/asm/hd64461.h > +++ b/arch/sh/include/asm/hd64461.h > @@ -229,7 +229,7 @@ > #define HD64461_NIMR HD64461_IO_OFFSET(0x5002) > > #define HD64461_IRQBASE OFFCHIP_IRQ_BASE > -#define OFFCHIP_IRQ_BASE 64 > +#define OFFCHIP_IRQ_BASE (64 + 16) > #define HD64461_IRQ_NUM 16 > > #define HD64461_IRQ_UART (HD64461_IRQBASE+5) Reviewed-by: John Paul Adrian Glaubitz -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913