Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2041509pxb; Wed, 9 Feb 2022 09:39:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgBCy/pmEhybH9I2LzE5D2IEoygZZd8nlxKfXOPCb/L+1PX9PyWsA/yiTBZ9oIIAry8vIL X-Received: by 2002:a05:6a00:1a53:: with SMTP id h19mr3384605pfv.65.1644428357079; Wed, 09 Feb 2022 09:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644428357; cv=none; d=google.com; s=arc-20160816; b=OThfLTF7CuHFeepzJ14XbQFSsJvxShiE7nPbxQM9cle2oNXoykmTzlhjqeCXgzhDmk sBbEUO31QJ2D18O3rd9FWeNbtc9G1RzuY9gOQ/3lNCi7v/l4dYdR3JLGTn7HkfGsr0hP 5Vbdb8J80F4mGBoyCpbDpcx5N9oXN0Ur08atljD8Xis2OrNekgrLjWUEzvzFCOjEgRrt XsfEc3xwoRAF1hkCi3jPuzmgSXLY37m3Yod7qWPlaGjqSIExcX6OdzEzSd+WFYLKUKqV retp6bDx+SM/JigneNvPdnfcDs7nzMbNTo88fnq2H0vTbCmsMbjz2lVkl9Xk6TnSBBtH cWzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=82DwdajpDNDBqVPVvon+Lp7fZFYchqTwnP7OnaqMXhA=; b=hkWrAbpMvXuIBV7sgZU/Ugxr8PNAH52xXCAQm5d7C+0FA/RJvzzaHtnNgwKkmK7hlg 4kebY3WEgBd+8mMVOv9zZxsPLJxMNmI0eDekdi4jqlkZ//95812aftcPEQ+/ACfwh+CX W/UKm4cItcWn5l7BqnCtEIbSed4aqq7CLds5dAUY3Ju56XMhOo6D17/tfNddsZlIn0c9 klPPq9NbjH1/z/tlo3HGPlzTqh678wG8vCxR9MGF+ViDVOr/SKsOO8k7lByBLpCcfarp htj/odnYerjA968OTWKAf5wpDIXZLCMoCwkEk68cT71PJLaqbUmcLcRZoP4mFptJpROw 230g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZOkWhnlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e187si7466618pgc.370.2022.02.09.09.39.02; Wed, 09 Feb 2022 09:39:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZOkWhnlT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236270AbiBIPs3 (ORCPT + 99 others); Wed, 9 Feb 2022 10:48:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236279AbiBIPsZ (ORCPT ); Wed, 9 Feb 2022 10:48:25 -0500 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E28B1C05CB82; Wed, 9 Feb 2022 07:48:28 -0800 (PST) Received: by mail-lf1-x12d.google.com with SMTP id i34so5057964lfv.2; Wed, 09 Feb 2022 07:48:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=82DwdajpDNDBqVPVvon+Lp7fZFYchqTwnP7OnaqMXhA=; b=ZOkWhnlTBnzqrCpWvyLu4YD7jOCU7hGFKGq6WCfRVdhxmTbBTYIQG8rMNK93Kuf10u 1ZzuxSt8qLrH/DHbop68m20FsgNUQBBJZQet7nDoNej3g7GDVjLaXArFIRy3Xp3dZ8PI oGVVrR1548ktVnF4a8IZK+6mgLS+8KpaGogK3XwYJoReaZ9N4gWaDOIz4aGP91gGUeaC rGeO3HC/i3L0oV6fDRw0dKedzCghrlk5X6d/cqD8ncs4Munz7zBKtlQtSEGVgdBkfg5r mjYm4Yr95o6wCrb8+Vf4nqQO8QkOOcI1viia+oVy6pXgCSEusij2UzqN4/CUFUpXA7YT E6iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=82DwdajpDNDBqVPVvon+Lp7fZFYchqTwnP7OnaqMXhA=; b=HVCvqzSENLWpifCYGS47JwZNpEyQ4wZaRZ8D8MP2Pf8AlaBWWcTMtuZP8sZLuZP5Oq qbZD5vDsGqw3fUUx9qrAfKf/oJVljxDPHcNZsCuRvB0qEIY6KFZuJuQH0P7m+Kq0NSFy p/HCDB6nmSgY1Deo3mNJ4W7/z8RwXZ9aUZcHU7FkStqsfyhL6IR3K0dqNYFBBTo/x9t1 Y083afP9KUTsH5cyjFUH9jzTdEskCpGB3g7fWnu9CilDwHWHH1TJoTtfO5hIUZw0RSHC hNMe+2lDSsHE9/497y4sYHHCxfcbzqHXdhr9yGMTbpYlaFn3HP34xAnASLWjj4PgDsRe cT7Q== X-Gm-Message-State: AOAM531+LND9D78pfPQzipNeFGsOMjw+dNM5o0VAcGIxaUB0z8cOupPB hcqo7mPWqpY8A8hxm4HHmCguwzK+CWJaqg== X-Received: by 2002:a05:6512:33ce:: with SMTP id d14mr2058147lfg.264.1644421706987; Wed, 09 Feb 2022 07:48:26 -0800 (PST) Received: from [192.168.1.103] ([178.176.73.27]) by smtp.gmail.com with ESMTPSA id d20sm2521958ljl.25.2022.02.09.07.48.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Feb 2022 07:48:26 -0800 (PST) From: Sergei Shtylyov Subject: Re: [PATCH 2/3] i2c: sh_mobile: Use platform_get_irq_optional() to get the interrupt To: Arnd Bergmann Cc: Geert Uytterhoeven , Lad Prabhakar , Rob Herring , Nicolas Saenz Julienne , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Chris Brandt , Wolfram Sang , Linux I2C , linux-rpi-kernel , Linux ARM , Linux Kernel Mailing List , Linux-Renesas , Prabhakar , Linux-sh list References: <20211218165258.16716-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20211218165258.16716-3-prabhakar.mahadev-lad.rj@bp.renesas.com> <042a2183-3f04-088c-1861-656de870337d@gmail.com> Message-ID: <7c47ce67-88ee-9cba-3356-a530b0d3e657@gmail.com> Date: Wed, 9 Feb 2022 18:48:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 2/9/22 6:18 PM, Arnd Bergmann wrote: > On Wed, Feb 9, 2022 at 4:11 PM Sergei Shtylyov > wrote: >> >> On 2/8/22 3:31 PM, Arnd Bergmann wrote: >> >> [...] >>>>> I might have missed something, but it seems the only user of IRQ 0 on >>>>> SuperH is smsc911x Ethernet in arch/sh/boards/board-apsh4a3a.c and >>>>> arch/sh/boards/board-apsh4ad0a.c, which use evt2irq(0x200). >>>>> These should have been seeing the "0 is an invalid IRQ number" >>>>> warning splat since it was introduced in commit a85a6c86c25be2d2 >>>>> ("driver core: platform: Clarify that IRQ 0 is invalid"). Or not: >>>> >>>> Warning or no warning, 0 is still returned. :-/ >>>> My attempt to put an end to this has stuck waiting a review from the IRQ >>>> people... >>> >>> I had another look at this after you asked about it on IRC. I don't >>> know much SH assembly, but I suspect IRQ 0 has not been delivered Neither do I, sigh... I do know the instuctions are 16-bit and so there are no immediate opperands... :-) >>> since 2009 after 1e1030dccb10 ("sh: nmi_debug support."). On a >> >> Mhm... this commit changes the SH3 code while SH778x are SH4A, no? > > This code is shared between both: > > arch/sh/kernel/cpu/sh4/Makefile:common-y += $(addprefix > ../sh3/, entry.o ex.o) Ah, quite convoluted! :-) So you mean thet broke the delivery of EVT 0x200 when mucking with NMI? > Arnd MBR, Sergey