From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5564DC433FE for ; Wed, 22 Dec 2021 09:20:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243881AbhLVJUR (ORCPT ); Wed, 22 Dec 2021 04:20:17 -0500 Received: from mail-ua1-f43.google.com ([209.85.222.43]:40865 "EHLO mail-ua1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239569AbhLVJUQ (ORCPT ); Wed, 22 Dec 2021 04:20:16 -0500 Received: by mail-ua1-f43.google.com with SMTP id y23so3019941uay.7; Wed, 22 Dec 2021 01:20:16 -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=a5KXFkJczT+loL4bmBd/xTV7aUTkBhT057Cylmeu8aM=; b=B63M9lnNYHxhCs876fSKbCSpVLD3SfeHDCQ77UUuhAJIjPE0tI/K0QZ/ug73+1jqta lz+bns5TmqLV1byR0NQHxegThxqZFm7zeOyw4s8f0D2I4OFLR067nmkfg8dL9+O8UIqb 9EUSrQtkweKOX/0xI25uRnG+RgQew75PkNL6Hd3hRVhp5bkJMySnkLOlCm1ikQjvmJvn gYb1fqB3hss1eLowdUPZIAN+es6xsFyxHQoJPhwzBt63u4jQcdsWWOSVilR/RgXg+OWp jA5ze6crTQxXH5UhafeaF7QpPch9aoiD83x5Mne4OpplJbpItpwm2+PwgAhrYfAjrPxB dROA== X-Gm-Message-State: AOAM530RprnitFafJVAQX54NdesjpiBUpGz7g/OwzzjgRZh6wgycFlqz Xx3YztjPSaxiX9b6FrH5RiBZxF8990/y3g== X-Google-Smtp-Source: ABdhPJwF9jaHNu77S8dTJ0lF2VMZJwYVQ2Lk62/GUHrzODlWm4y4qhZpM09z2gYL0qwrD/XRcwqQNA== X-Received: by 2002:a67:e109:: with SMTP id d9mr631850vsl.11.1640164815641; Wed, 22 Dec 2021 01:20:15 -0800 (PST) Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com. [209.85.221.170]) by smtp.gmail.com with ESMTPSA id i123sm281897vkb.20.2021.12.22.01.20.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Dec 2021 01:20:15 -0800 (PST) Received: by mail-vk1-f170.google.com with SMTP id m185so933582vkm.5; Wed, 22 Dec 2021 01:20:15 -0800 (PST) X-Received: by 2002:a05:6122:21a6:: with SMTP id j38mr685592vkd.39.1640164815041; Wed, 22 Dec 2021 01:20:15 -0800 (PST) MIME-Version: 1.0 References: <20211221175322.7096-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20211221175322.7096-3-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20211221175322.7096-3-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Wed, 22 Dec 2021 10:20:03 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] i2c: sh_mobile: Use platform_get_irq_optional() to get the interrupt To: Lad Prabhakar Cc: Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Nicolas Saenz Julienne , Chris Brandt , Wolfram Sang , Linux I2C , linux-rpi-kernel , Linux ARM , Linux-Renesas , Linux Kernel Mailing List , Prabhakarprabhakar.csengg@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 21, 2021 at 7:21 PM Lad Prabhakar wrote: > platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static > allocation of IRQ resources in DT core code, this causes an issue > when using hierarchical interrupt domains using "interrupts" property > in the node as this bypasses the hierarchical setup and messes up the > irq chaining. > > In preparation for removal of static setup of IRQ resource from DT core > code use platform_get_irq_optional() for DT users only. > > Signed-off-by: Lad Prabhakar Reviewed-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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6EBFAC433EF for ; Wed, 22 Dec 2021 09:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=K40cXLw0+kY6kJZBBDGwKCaAxnrsEKm/FuU3jxunk6U=; b=OsqyYlkOVtSyKg jwV65QC43zp92LL4kioRLPkSBpUjlzm1hXbKCjU4pLpx781r+va/dHvpteHFyheO+j6Nufv5sEFRk T14b7B/ftamTZhEot05hFUgrzZdICgMClIg0S1Epqp7XqP81Gp/0B1T4/Kv3sQLiClLV4VL+flxB6 sERtL0iqQpNGPOUy4Bx8UfYO+9frVvZCiB5ggVEW7HlGHydLKfrKdwG53xDuSPXvgfst7X40zSSQU Gs07PaU5e+F59zgxC0tjoEAFHdc5M0NmBPJw/GYFYW/wDGSt4pl73VXmBmy4Hegt12vFzDvDgY2WZ VrM6QztiVJ/xV/qtDyqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzxnJ-009sEb-QE; Wed, 22 Dec 2021 09:20:21 +0000 Received: from mail-ua1-f52.google.com ([209.85.222.52]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mzxnG-009sDJ-Bf; Wed, 22 Dec 2021 09:20:19 +0000 Received: by mail-ua1-f52.google.com with SMTP id p37so3018740uae.8; Wed, 22 Dec 2021 01:20:16 -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=a5KXFkJczT+loL4bmBd/xTV7aUTkBhT057Cylmeu8aM=; b=iGioldGTdzUHUyomOWQGWpSdSiQHneZWty+0GmOv47CQ+gKvLhTN5sKkHVSH+taD8d dot+iFlHH7dyJNY3g3HAcHVcl5U674XaFRhx3OinCKOkgEHJjLptWsoPqMfuGlfIxwyp eJLuygHbqEvwWND0E7BIAE2ODIww5sdtFHlJNZo9TQaDQIe6Xa34/kUjrl4Oido88ID6 GfLSAfs519KmWlj731h7BOSKgyYzA+LvwZ2IfS6FsMISYArNF9Z7CqrquG9424nZBNx1 dknIwQhw1ck1E33Mx9dKvDPRM4IxotyFaU7ZVeipHfge6gS3iL/jXioTkdolLYxV0J6U v3fQ== X-Gm-Message-State: AOAM530/qfJiVU1N3ymC+pa1opsCymWst3hM5NdB/PH28MMPROZglGD0 wSsGX/AcJ/Un3pKDyQ2mlYJ0QkiMGUTdwA== X-Google-Smtp-Source: ABdhPJzDLG/X3IvAFoBGUDhkJllkG0eZZFFxj5TGw8NcsO8oz7BsRKvhGPSQXBlgKszdPlI1o7mFow== X-Received: by 2002:a67:6783:: with SMTP id b125mr583544vsc.54.1640164816068; Wed, 22 Dec 2021 01:20:16 -0800 (PST) Received: from mail-vk1-f177.google.com (mail-vk1-f177.google.com. [209.85.221.177]) by smtp.gmail.com with ESMTPSA id o6sm292993uai.13.2021.12.22.01.20.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Dec 2021 01:20:15 -0800 (PST) Received: by mail-vk1-f177.google.com with SMTP id m200so931740vka.6; Wed, 22 Dec 2021 01:20:15 -0800 (PST) X-Received: by 2002:a05:6122:21a6:: with SMTP id j38mr685592vkd.39.1640164815041; Wed, 22 Dec 2021 01:20:15 -0800 (PST) MIME-Version: 1.0 References: <20211221175322.7096-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20211221175322.7096-3-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20211221175322.7096-3-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Wed, 22 Dec 2021 10:20:03 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] i2c: sh_mobile: Use platform_get_irq_optional() to get the interrupt To: Lad Prabhakar Cc: Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Nicolas Saenz Julienne , Chris Brandt , Wolfram Sang , Linux I2C , linux-rpi-kernel , Linux ARM , Linux-Renesas , Linux Kernel Mailing List , Prabhakarprabhakar.csengg@gmail.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211222_012018_432426_5788316B X-CRM114-Status: GOOD ( 19.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Dec 21, 2021 at 7:21 PM Lad Prabhakar wrote: > platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static > allocation of IRQ resources in DT core code, this causes an issue > when using hierarchical interrupt domains using "interrupts" property > in the node as this bypasses the hierarchical setup and messes up the > irq chaining. > > In preparation for removal of static setup of IRQ resource from DT core > code use platform_get_irq_optional() for DT users only. > > Signed-off-by: Lad Prabhakar Reviewed-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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel