Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34184669rwd; Sun, 9 Jul 2023 06:51:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlHaMsLE1kkZt0v/yWWRRM5x9tZlFpl+JIMcAJ9LuFtOWscJ9iAqqZqSDXlulA4ax5CzCsvU X-Received: by 2002:a05:600c:22d8:b0:3fa:97b3:7ce0 with SMTP id 24-20020a05600c22d800b003fa97b37ce0mr8256495wmg.26.1688910696163; Sun, 09 Jul 2023 06:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688910696; cv=none; d=google.com; s=arc-20160816; b=ZgyNQFsqBmo+CQ+JlsvIXTnvmQRb4SGKJylbGD4iMQA/h9FiK3GAudIN35TMD3MfY9 JLIgYF8s5VgwSsQnFMQwDnyhzbixZ3olqMgLTNIDATJYT7fiMUi1qT6ipIcqj7QFKlAH ahmNVyFXKbAyr+I4SSl7EOyvAN1EhP9j1mC5thDP000Megrw8lwxuboQx/TJwLYUlkBg OnLyvdUYWfupTTKIE2pnEk9smIFmtL28inZYx8b7xgMtGJF9XBE0JjmPOVe0eOUp9g2p L4IgkWsMujr4K34j0Spxf3jr25THVlFyW/9dwKFyqEvne3ORSpyG7kVo97sITYv14s+t xcrg== 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=0/Y7MLyfwYleBxH2I2Q5uSKltyWrDP+1mtvnrGDB00I=; fh=6ELV6mbDR+UZ6zrn2nIoYTDSY652+RaA5ROIeWx0b30=; b=q+pKu+7K1GSYeffu+Ndn4jj5UgasvL7GQ433kY7WY5WMvNQAv+p5IA5olSBNmmxsu1 AK/fkHM41hmIL1p2LHdUoDE12fi0DYdhKbK9a8mKwr6W7ty42J2jQ2kbMFocNW1DYnnE tPRrcCvl+47kg7RzNtb9Llh/e+j5BtK4negVD/sAg6SLiQIJcBiW7PyRVBDDsXhGy3ku JZb4Jo7sUkR5ekQ0UXQRuBmuJIWSrM+5sNOgT5QVnTdOmENGJW778r8jIDuzwnJjKoxK D8etU4LtwEnCA0NA2eM/dY21/uKz+6fw7bbpakCjmSZpq0v8FuhNlErgovlLOTQJXBsg qCMQ== 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 t25-20020a170906179900b0098885a739f2si5411600eje.657.2023.07.09.06.51.10; Sun, 09 Jul 2023 06:51: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 S229987AbjGIM7k convert rfc822-to-8bit (ORCPT + 99 others); Sun, 9 Jul 2023 08:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjGIM7i (ORCPT ); Sun, 9 Jul 2023 08:59:38 -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 6F02BA6; Sun, 9 Jul 2023 05:59:37 -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 1qIU0j-002DQ5-7d; Sun, 09 Jul 2023 14:59:33 +0200 Received: from dynamic-077-191-183-238.77.191.pool.telefonica.de ([77.191.183.238] helo=[192.168.1.11]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1qIU0j-001Dzs-0b; Sun, 09 Jul 2023 14:59:33 +0200 Message-ID: <8c075658d00953ecb4383e1910c7b04fdaf870dd.camel@physik.fu-berlin.de> Subject: Re: [PATCH] sh: hd64461: fix virq offsets From: John Paul Adrian Glaubitz To: Artur Rojek Cc: Rich Felker , Geert Uytterhoeven , Sergey Shtylyov , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sun, 09 Jul 2023 14:59:24 +0200 In-Reply-To: <2c57d9cc03b6a430234c0016bf78fa22@artur-rojek.eu> References: <20230709121311.211720-1-contact@artur-rojek.eu> <2c57d9cc03b6a430234c0016bf78fa22@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: 77.191.183.238 X-ZEDAT-Hint: PO X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 Hi! On Sun, 2023-07-09 at 14:56 +0200, Artur Rojek wrote: > On 2023-07-09 14:48, John Paul Adrian Glaubitz wrote: > > Hi Artur! > > > > On Sun, 2023-07-09 at 14:13 +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 > > > --- > > > 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..6d85db6cf54b 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 80 > > > #define HD64461_IRQ_NUM 16 > > > > > > #define HD64461_IRQ_UART (HD64461_IRQBASE+5) > > > > I think it would be better to write this as (64 + 16) for consistency > > with the other changes made by Sergey. > > Sure, I will send v2 with this change, although the same can't be > applied to HD64461_IRQ value above, so some inconsistency will exist > either way. > That's okay, that's the user-facing part ;-). Btw, did you verify that the default assigned IRQ is actually changed from 36 to 52 when the machine boots? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913