Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34202444rwd; Sun, 9 Jul 2023 07:08:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlFbdaQf/pR3N9kzJ30rcDWaW0RQPePXAOLwOS/Lawnnec40bGb+4bvBW6Da40AoDmBbtu5I X-Received: by 2002:a17:906:d7:b0:992:ab3a:f0d4 with SMTP id 23-20020a17090600d700b00992ab3af0d4mr8645774eji.17.1688911738452; Sun, 09 Jul 2023 07:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688911738; cv=none; d=google.com; s=arc-20160816; b=DJmMFUT39FIEm7fCMuvnBDRGoRwN4ROCpvz3SNkIgKfSb8X7t0Lx8jenDT1BlcojvF r9Qf1niGJ+kYoV4q+IsP5TmPFZPwE88rQ2HwOJ5aj+E8W9R5hjP93HeDEZ/pmn9ZOL7n VBDwGdZdsiydU9P3WLC4quFzLY0+dhZpDva0sRmobliEDtUAJzO1kmsCuNFSGxtWg9lO ZsCf5KQO0BDAt7qyrBv8LQ/2eFOQvW7VDM0y8SSvIEI1+Jyh8URwxm/kB8OThQIhlMhM HVsB7HxbLdEaYdcGyreMGgOkbX852hak1ly/fN5CVLw3X1C9kP5uhkWyIFYRzFNSphN6 xKzQ== 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=mjxel768grpp8g8U7IAjNRwQb/sjVLJ9BP8CcTK5KtQ=; fh=6ltqI59+WDZzBoHqWD3yzmodbr0YBuDpjvBGA0srqEE=; b=NUFkeiabrnaEISPdsx4y1DAoXx+nYq3yOdr8pemwM1yyQrPpawCt8w/4/kCDh9po2B sHAaUfFMSOZcP54+4p9tow+turTcOW21SuHRF+xGYk0At8bUl+EYPFy/jpX6oFSdOHsK thuxaIFa3XlezCfHJRWrSlwpwmFFiwSldI4r/3+EPCVROeOF+btdmHk+srRR+dr8QLT2 YRUNsRahI1JR721UC1+52M9GNNkRKboKIe9wqyL9laOpgNxUHRGUS2JKFKmQhkhno8XM Pest50QCOHtxgKJsaDmEx/rxYd/Oa6khamWquc9tV2eyi9iDcDIH7unAYIjI16/15IrH AltA== 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 br20-20020a170906d15400b009871456e3cdsi2091330ejb.439.2023.07.09.07.08.35; Sun, 09 Jul 2023 07:08:58 -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 S230249AbjGIMsZ convert rfc822-to-8bit (ORCPT + 99 others); Sun, 9 Jul 2023 08:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjGIMsY (ORCPT ); Sun, 9 Jul 2023 08:48:24 -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 45D48B9; Sun, 9 Jul 2023 05:48:23 -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 1qITpq-002AfV-QR; Sun, 09 Jul 2023 14:48:18 +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 1qITpq-001CdG-Iz; Sun, 09 Jul 2023 14:48:18 +0200 Message-ID: Subject: Re: [PATCH] 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: Sun, 09 Jul 2023 14:48:09 +0200 In-Reply-To: <20230709121311.211720-1-contact@artur-rojek.eu> References: <20230709121311.211720-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: 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 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. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913