Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp781103rwp; Thu, 13 Jul 2023 00:24:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+PHT3TRXsCJIvu1VVkT/+3XmTfsiSFdzYc/n+juZcM7YqfQ0itPjceMAV1f6nbhs92ERo X-Received: by 2002:ac2:5f79:0:b0:4ef:ed49:fcc2 with SMTP id c25-20020ac25f79000000b004efed49fcc2mr599250lfc.26.1689233098256; Thu, 13 Jul 2023 00:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689233098; cv=none; d=google.com; s=arc-20160816; b=X1ZeBU14aliRsIvRIRdjybCpmiPBFtmIsHPmt23Au0rGDT4uCOI6bJ4l2544dBfx5I oQW7KUD2Fjft5NRjcCehBL5P3INCHSlGm3GWRW7eHbnKeMXRUnLOVTArea3dYvkL/kht 9HISNz/Qms4IwTNknsMcKSjp3o1qsyoEPvAkeD8P81qP5nLBo8G1vfy6FLeXtLaYvpdn SgKUW0697IhNZCwmO0qsy7hvSFxpHqZuWCGL5e3rfgnky35GG8ctzjIqtxS+6m4C1Vqy Ck/6CUBA8kJb76xW+PFhWR+7Vyc2C5Cv1ysgIY/qXySyPPOUijiAoMgPKh8E2IXNcLuN VrCw== 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=97WfO1tTAYuClTOg6Re0bIruUHRPRBdS1r7l9Jt31EE=; fh=6ltqI59+WDZzBoHqWD3yzmodbr0YBuDpjvBGA0srqEE=; b=UlpNLQYDLEDqcvBKDp9H12v72pD2BGJhvFqzaTVJBtxQ7u3ybPRS+Ai8CVXNUNuc26 NVynsvl2V1dZJ/V0TQ2HDaSJKvHKp/5ufLEehz/eVINgZIenKfQKXNObQw1IJLRsfwo+ uuuo+E8aQUFEZNpzTyFQX5ysRgzmJtOfQuEnZZvmP7H8H3Nu+so5guBJyWfnrdZPcHZv YTlTTVRGoxeJUiXTuxQS/Zc70TGpU3PWfMxhOQ0uD2KnSaKUc4nMsvJJXrOcp6z3TziU p5cAxC6BdIn+U4mm4SvZA5bgMQBTXU9XGPL3VBVS49rw9HtxTCgJ+NmS72XTMXXg3Wh4 MBAw== 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 n21-20020aa7c455000000b0051e186a6faesi6352917edr.194.2023.07.13.00.24.34; Thu, 13 Jul 2023 00:24: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 S233146AbjGMG4c convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Jul 2023 02:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233980AbjGMG4a (ORCPT ); Thu, 13 Jul 2023 02:56:30 -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 6AC871BFA; Wed, 12 Jul 2023 23:56:28 -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 1qJqFU-000teD-9Z; Thu, 13 Jul 2023 08:56:24 +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 1qJqFT-001aGv-Up; Thu, 13 Jul 2023 08:56:24 +0200 Message-ID: <787c97736d68dcb6968efc67d6a242b46ab74cf9.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: Thu, 13 Jul 2023 08:56:22 +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) 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