Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6024136pxb; Mon, 14 Feb 2022 13:22:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxY2VMLZcVhN3tqKju74xE/T4+m67myQzaC/in7YATDxkdIlNvPaxUVDmgq0puM85VLCBa X-Received: by 2002:a17:90b:180e:b0:1b9:e022:280a with SMTP id lw14-20020a17090b180e00b001b9e022280amr757797pjb.20.1644873729200; Mon, 14 Feb 2022 13:22:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644873729; cv=none; d=google.com; s=arc-20160816; b=KlpdHd59LgUZ0YpvseyKIMNE38YKuXDwpOt6DldpwuN/RUI21b0h79piElYCo6//Xn QV5rbpEQTg/Y/2fh+epGmuELDjIOHPJlBLP894WZgwuZb8S5Y9jqBnwy5Du8+5xSarAD tdH56goSORW4iwCAfCMP8xceJI7a5oMT5BqB32kF5CwtiD3mWHG/A3SoGtVfxaMNSbxR p/lZk4BvudbWzmtaoe/rVB0K5Uz8EbbHYFLbjWTXOtCiaXbTSFwZy9aHWmO6n/ojDALR mBFbFthCGZAaiheNdP4X47pVEytvIuDej7BiB1Qk7MwE1wGXI7YVGtbbV1JUDzeZmO+L LDzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=rp0B1fei6v9T28LSqNLRZlACCfpViLDLxNd62kYmmtU=; b=f5kjdcoKQaiosgAZG58L4+MsWeR9MelBPCdO4K7fdIwPvJc4nOmHjdulY2L5T51Nnc GcDD/RZ7OEwd6S2ct3V2gid7T67jp9AmOc3QMm+Ucn+2d8ssRs4NNAss0F35jq9WyHPJ 5uYuVZoE/6Dj4CPmk+s5TYh61FhC3BcomXyqv9yD6NltIk3C8hb1ZaAOnuBtk3RVTxMv JEUOMoZLnPd/mcfLVaek4AmB3Wh/kCUc9tdp763rhLBkYYq7O9csrjZOoyu6MxYdQ/VQ ow5ZAkQU+TBIV/1Ni5HY1V8VeGO4W82lNBuykuIi0I3eJ6hxxNk6GUnUAFbkH44UvSeA 9Fgw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h128si830572pgc.232.2022.02.14.13.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:22:09 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 753ED233E68; Mon, 14 Feb 2022 12:38:54 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351368AbiBNL16 (ORCPT + 99 others); Mon, 14 Feb 2022 06:27:58 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:57324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351205AbiBNL1W (ORCPT ); Mon, 14 Feb 2022 06:27:22 -0500 Received: from mail-ua1-f53.google.com (mail-ua1-f53.google.com [209.85.222.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11A142AE3; Mon, 14 Feb 2022 03:04:03 -0800 (PST) Received: by mail-ua1-f53.google.com with SMTP id w18so7905646uar.8; Mon, 14 Feb 2022 03:04:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rp0B1fei6v9T28LSqNLRZlACCfpViLDLxNd62kYmmtU=; b=Zhs51U5Pc4S2qQ5r38L6lfXMqWqLdlbyC/hZtQESnMwqzByM0KHEJVPIMILz3Vt+ZA miA5YDnY8wvSF/pOU127DXwv3SYvZ3xzHmydlPOwOMN+r81LFCgcAwMspjc17eRjiU0g OJBO8n8uap4eh5aQVw/G128Fn6LZfMHYFzAk+lKtf8Fw9kFswWimRY2O4p2bxHmxOqnq 2mensGqGNXZqrwA7cI8jP/VqoKczZvX60wCKGgIRJzrNwF5OXWjxQfxEgtWby9s5RVOy +zpN9LcSVfdfI8nJw0YwBEbFH1u1LBj9O0wLtTCsW/q5xxY+Or20c3vCTMOFRfeFHTZb NpZw== X-Gm-Message-State: AOAM530iTCIQMeV6v0dFNODOmYafHoKTJRFdmesCoMuhxY3qvxbcRRnn NNr5vNWpn5XteZkCTVUSEen0SONJclZPRg== X-Received: by 2002:a05:6130:10c:: with SMTP id h12mr1779257uag.120.1644836642141; Mon, 14 Feb 2022 03:04:02 -0800 (PST) Received: from mail-vs1-f45.google.com (mail-vs1-f45.google.com. [209.85.217.45]) by smtp.gmail.com with ESMTPSA id g9sm526657vkg.28.2022.02.14.03.04.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Feb 2022 03:04:02 -0800 (PST) Received: by mail-vs1-f45.google.com with SMTP id g20so6094833vsb.9; Mon, 14 Feb 2022 03:04:01 -0800 (PST) X-Received: by 2002:a05:6102:440d:: with SMTP id df13mr1073580vsb.5.1644836640828; Mon, 14 Feb 2022 03:04:00 -0800 (PST) MIME-Version: 1.0 References: <9382f3ca-b49a-e900-7f21-3f10b267ee4a@omp.ru> In-Reply-To: <9382f3ca-b49a-e900-7f21-3f10b267ee4a@omp.ru> From: Geert Uytterhoeven Date: Mon, 14 Feb 2022 12:03:49 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] sh: avoid using IRQ0 on SH3/4 To: Sergey Shtylyov Cc: Rich Felker , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Yoshinori Sato Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sergey, On Mon, Feb 14, 2022 at 9:32 AM Sergey Shtylyov wrote: > Using IRQ0 by the platform devices is going to be disallowed soon (see [1]) > and the code supporting SH3/4 SoCs maps the IRQ #s starting at 0 -- modify > that code to start the IRQ #s from 16 instead. > > [1] https://lore.kernel.org/all/5e001ec1-d3f1-bcb8-7f30-a6301fd9930c@omp.ru/ > > Signed-off-by: Sergey Shtylyov > > --- > The patch is against Linus Torvalds' 'linux.git' repo. > > Changes in version 2: > - changed cmp/ge to cmp/hs in the assembly code. Thanks for the update! Reviewed-by: Geert Uytterhoeven Works fine on rts7751r2d (qemu) and landisk (real). None of them had IRQ0, though, but dmesg and /proc/interrupts confirm the shift by 16. Tested-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds