Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34139897rwd; Sun, 9 Jul 2023 06:03:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLB1/Bc7lFcPQ7HIC1W6Oy52gh0Hz4XE11ArraA7HUNwb7rcscS7Wyi34ASLFmY1+UhtkG X-Received: by 2002:a05:6808:d4c:b0:3a3:7505:7038 with SMTP id w12-20020a0568080d4c00b003a375057038mr10811479oik.45.1688907796561; Sun, 09 Jul 2023 06:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688907796; cv=none; d=google.com; s=arc-20160816; b=KdyqMYwX03Op3uucZ8/6SiNcPy6iG2we1y7xZdDaUYBIAHJkSx3F7y0zjN60GZ90Uz SkyKJIKnUBSmswJzdibPXAXZZesPHC0DQlcJxDokbhyKk+qSTQDZeT3iBRBU/UmwhqOp 8mXQbkT9aMpv+dLbWDwE+3s7NlbGhpi/AsKobEShAjFZRBSt88loCqmPs8W5Io+bDK4j nRXeXnS+LOv1Dxh7aatEz70moLaJE3rj7CH3BQMAO8nwgy3r+3BfMZ+FkiofDTRDVUNC k9sbnULxHU6SID7VaQJxI1CZWiE14eFFfUWolcZAGE67U5ceqfcHTES3P2fPvDo72I1t EBFA== 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=quiIYvv98ZGn6DrNaEuebTaSDEl9E1nvW0FB5SKZBQw=; fh=CK2X9NDbJ2GbZjj4R6MU//wO8avdZJvKObbH4r0yj/w=; b=hR9nN118NkRHJF06btU4G4Px5lK5wxF08qy/kpHHXVcCQ00rnpxHkNVF9RJDcXqo+i Ybg7y7QFd7XxNKIi4rS1Opjiv8UPlDFGrflDbJuX8Ru/hDIjoVdtAXO+wTzVWmX+PgBB gVu4tIGPPFRdvTbrJJ2zYkV8o9sz9aTNmndd67l+zGKRmtayixS6xgSDGdPgevc3bIwV wEfNRgAM76awD0RXbWer+TOVRRAyAB2XS9fpSABwBr9i/NtIue+p7N+Io9CgGUUQlK1E zPaAXeiPuXSFyWSCcILA22y9qaAdC5v8CfmOg5K6yYttOIa0e2Ef6Rg7Os7Mrd3EFQmJ ST0g== 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 133-20020a63028b000000b0055b12580c3esi7011178pgc.449.2023.07.09.06.03.03; Sun, 09 Jul 2023 06:03:16 -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 S230115AbjGIMOC (ORCPT + 99 others); Sun, 9 Jul 2023 08:14:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjGIMOB (ORCPT ); Sun, 9 Jul 2023 08:14:01 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20002D2; Sun, 9 Jul 2023 05:13:50 -0700 (PDT) X-GND-Sasl: contact@artur-rojek.eu X-GND-Sasl: contact@artur-rojek.eu X-GND-Sasl: contact@artur-rojek.eu X-GND-Sasl: contact@artur-rojek.eu X-GND-Sasl: contact@artur-rojek.eu X-GND-Sasl: contact@artur-rojek.eu X-GND-Sasl: contact@artur-rojek.eu Received: by mail.gandi.net (Postfix) with ESMTPSA id 32BDF1BF205; Sun, 9 Jul 2023 12:13: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] sh: hd64461: fix virq offsets Date: Sun, 9 Jul 2023 14:13:11 +0200 Message-ID: <20230709121311.211720-1-contact@artur-rojek.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR 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 --- 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) -- 2.41.0