Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2083458pxb; Wed, 9 Feb 2022 10:30:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6aMZ0rwL/xH/lOtpXygixS7eST57VHZa0GncNopEeOtBeL+AYBUx3BRBX8v28Y5gr0xzd X-Received: by 2002:a17:902:f64f:: with SMTP id m15mr3511848plg.71.1644431401673; Wed, 09 Feb 2022 10:30:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644431401; cv=none; d=google.com; s=arc-20160816; b=mFFm4qiP8+hKfDcPmIMjqtMKSeg97PwqIlQxLs2kPObFPRB0k9O1JGnbGKHxQZf0/Q 3OCgtJa9D9lZLry6weboN8RJU80eRN6ysxjIt7kOpWoXgiyM9lXdTKhMvdnYdKS9k/Ak 4rOYTIzIffsjjGVcaxHJtyNWgz3R+hqawPEyafn5ShRrXRMOsIM3YPcxQ8RSZzLo7t/P N4o87yrvaMfxA7tkC5j8mIk8+yLhkrlgVyALbVl3ClQyUqVe7j11B/5wZ4nsefSYKgHz yrOMdUYfI9CLUnYAkXv0T+QTvZxCWjzp+Z0DsN8ipRgzVbTp8vOAmJj6bG1UaKdymOg/ afUw== 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=6XoD+lh0Hzc32ynwFopvCKYIYBcBdpaFw+7JYYOcIgM=; b=MvlbNjXAVESekGViRef21i++xlHAshx7M0u+XLNeQZznx0PH97isPatgZr8vdLRipp fUM1mBsf/bAvz42AMcgYQ0yyKt5vYVMEokHdJmcnYHRFd9fQJntSZXrSgALPU3113Tfo XSJDS8vPrSUF9EkBNK9MHXAkt+j6sAJH/3EPOpyYldCY6DjM5apBVh4yVULVUPgDU30A anS8nv93vqaWR73SHPWrVLGxh//HtT7vxqfQ+dt/yQEkW0HbUwX9NQnT8wqx5J7Tipun bdkCfUkknyhrvFMJJAwuiotuUIicE9J9mEVmTF3mTG8buGFt3Fmr3rGNGeOyoBgtPVLH ia/w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i186si16253450pge.473.2022.02.09.10.29.48; Wed, 09 Feb 2022 10:30:01 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235677AbiBIPTD (ORCPT + 99 others); Wed, 9 Feb 2022 10:19:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233245AbiBIPTB (ORCPT ); Wed, 9 Feb 2022 10:19:01 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEC80C0613C9; Wed, 9 Feb 2022 07:19:03 -0800 (PST) Received: from mail-wm1-f42.google.com ([209.85.128.42]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1N9MlI-1oMjEg0hU4-015LCk; Wed, 09 Feb 2022 16:19:02 +0100 Received: by mail-wm1-f42.google.com with SMTP id m126-20020a1ca384000000b0037bb8e379feso3380272wme.5; Wed, 09 Feb 2022 07:19:02 -0800 (PST) X-Gm-Message-State: AOAM530QaYBl5zAT8ckwrKkz1/QmgQRB3mUr/fzUDmB+1MtAfTD3R6MD 6V+9ESz9BFigxlFWZzh8NO54uzg0CMX5t69PsIk= X-Received: by 2002:a05:600c:1f06:: with SMTP id bd6mr2495408wmb.98.1644419941772; Wed, 09 Feb 2022 07:19:01 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Arnd Bergmann Date: Wed, 9 Feb 2022 16:18:45 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] i2c: sh_mobile: Use platform_get_irq_optional() to get the interrupt To: Sergei Shtylyov Cc: Arnd Bergmann , 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 Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:dQBJIFZTK9zwJLYqmqEGtwvJT36W2YcbFpcMZrBBJ0xvhxJUmpA hUV34FTZb1X5/+oTtjTILgFEr120S4BaJpvPJVtMzyTXzPd4B9vJPqq0KpuvokCHnEuDQiH LY0YIz3LSwTAB8usE4RUEI/4aCU/LBeOG8Kd92GX/CgldDiyQ8lPRWmCkThcDErm3FWBT88 gbXlkzh0WQLKMiQ8mU6qQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:tR737zmlJjw=:0tHcA+TTCFpWfT1uhePcI/ D2MfeUGm+3phGJpaMQvMwfvV5M/eOHqNrM6fusvtlWnBpy6kcYYbXa07hBlgR+ppWOZ5bveRm 8Q0osF1hBODDpROXrEQsijM9ECikMHBNkH6JXcHZDr7qFfBiQhtGqUfjv/7yjUD2p0vNksCze feJ/4kfP3OkJDKoPTJ+/Yj6//WNv3pgfFmdPnvu/39K2xjm6JgUiE5RSRL54aRXc6ZYyVo0aJ PoiDhuoXxBT73WBqhO9srA7tsrlM6aFudYKkZDWSl0M17XYSS1xMF2e16p0ngk5lSK1314R1D AMtj/rpnc9sr5SdjxVB8JE0Ng0PaoWjyTQXpN5jkEjPTFiC7OjsezubwbRdlGgz9h++Ns9mil YmB0j9ZEoplISzcLp1FplGHYGk6HnwQYfCOk/mQj+uPOjc5OJTyhA63aWoguDyc04NPViHKCA sIxcq4v1Mu++PPyRdzOMeyIT/UtCzzMXwOmlzRFIzGy6M3Sej4uxBCF2rOwzDdFavcqp5Qou6 RxlzCcMdWul6/ZU/JSAaEtHngVuibga8bgcCIsv9AcCSQw9eaoeG+3CJnEISrtVyZGWZdVLyt wmk8DRbXqooL+lyTW/LfAOBuh+X0VBcLMaYEwsrsHHO2/73Ubbdc7m+G3V0CEn2u21pA8tMr9 HfCHLKjyqSpgAq0KG4gJt60THytDeSWgwAj5WT6tu4/596LSMc83iYBt+cJK9EM/7RtQ= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 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 > > 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) Arnd