Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36057784rwd; Mon, 10 Jul 2023 17:23:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHvTi8ReGaAaHtNYrdg9XpsdAuNbSI/xU7EUgefpSwe8y7k0z2yYv0MyQz2V0h8vPqzQsay X-Received: by 2002:a05:6808:170c:b0:39e:df4f:e68f with SMTP id bc12-20020a056808170c00b0039edf4fe68fmr13239687oib.6.1689034983421; Mon, 10 Jul 2023 17:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689034983; cv=none; d=google.com; s=arc-20160816; b=YfF6jAfQUxsmx7Ma74WxGCt6XEyaio9R1TOq+vTa0P3MLd9lDERgF8lKOf8pDg0dwM eTHHhfvrDMpek0BLCyokiJfjQq/o30P4YCrDWChsUinx8Yt0a0sFX9tBIsF2Gk1Uwc1/ 5gXH1n4C0Jy1O9ObjVWKkQ39Ed+HCsqiAHqzuS0dMCBVGrp9bcjpANo7Zr9CEUpQMqdU GSYsjHw1mLprNpKGlelm7HCmQceqrEhl9Q67SHY0abxS6OHv4YrZVIeRwcpCXb3NeLfs v9sN1nB8Jtv8Z5PagLO52hul+MgCmEyJ9wkVUL2HqHFNL/GqQ1u0+RwkS1SnDZ24M2sn zf4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Kzd224aMs8aAhxcthHoDC1ggJwIikzjdzwZVavG7TQ0=; fh=CK2X9NDbJ2GbZjj4R6MU//wO8avdZJvKObbH4r0yj/w=; b=i6fquUDustawcF8GWyEOSn89OuUwfviI0dR0s6dGQhhrXF2kWu3YCz6AjEuj4Y7kkc kE7s+wvRDDWoxFzGHRC8Sj8R5qv43qzvRQHMhuR7z8S2bBHRcFxqSxjNh6i9c3j0fhBx lWHTfqwM1j+tMZ1ff57HAq9ISJpO2wMTspzuNgPjqPei1UYn3Gh6jMogcyR9zy5uEDGT /AeFBsm9hbVlkbc4EaxoB72OQCMVaGxKfy5B8jrhkkjaCOccNhTN83543E4bgiyxx7uH ijW+MNVSmn0LnWzK2Z2QK6sASKGc/mNfRoIjvEuhd8nJvYOdCUCqBDFxvvB4544QViXO tDeg== 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 t33-20020a634461000000b005344b60f7ddsi428613pgk.117.2023.07.10.17.22.50; Mon, 10 Jul 2023 17:23:03 -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 S231273AbjGJXb4 (ORCPT + 99 others); Mon, 10 Jul 2023 19:31:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjGJXbx (ORCPT ); Mon, 10 Jul 2023 19:31:53 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C69CA0; Mon, 10 Jul 2023 16:31:51 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3FDA21BF204; Mon, 10 Jul 2023 23:31:47 +0000 (UTC) From: Artur Rojek To: Rich Felker , John Paul Adrian Glaubitz , Geert Uytterhoeven , Sergey Shtylyov Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Artur Rojek Subject: [PATCH v2] sh: hd64461: fix virq offsets Date: Tue, 11 Jul 2023 01:31:32 +0200 Message-ID: <20230710233132.69734-1-contact@artur-rojek.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: contact@artur-rojek.eu X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,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 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) -- 2.41.0