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 BF3E4C4332F for ; Sun, 26 Dec 2021 10:03:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231251AbhLZKDu (ORCPT ); Sun, 26 Dec 2021 05:03:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbhLZKDt (ORCPT ); Sun, 26 Dec 2021 05:03:49 -0500 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF574C06173E; Sun, 26 Dec 2021 02:03:48 -0800 (PST) Received: by mail-yb1-xb32.google.com with SMTP id y130so11412434ybe.8; Sun, 26 Dec 2021 02:03:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PcIdhYGtAe5wiGEmCP4ZpgqtofQF1fYABhObn5o2LIM=; b=Tqi139SclsNTIfh4oyAGZJUQASq4/f+eBNWk4N0vBVBjYr1fJoIf2MChB6Lq+bBEwy HVAPn8ipsSddzr4zed1Lxj95XO6FIqYvyTyhmsnT3Gwpgl1oJex9Nkg3W9BY1aRfChzc RE54WE8HqPET/SGIWXPuCiZmmCyhJq2shQGFATYOtS0rDKEjDcUkiNH7JDrt6QInoaeT 7RN0NqHa8EMOUIjdg6uxQ0WEMmoRBm7CMhe55mm9i4QBLZhKLaCILdp4nyMEuwhb2HOk NKCzpoenct8cl3AwHn8Pqcl8MF19YQqn11zN9PcbJVGB/LHK1QMmJ43ztW+zzlEWrufz u2pg== 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=PcIdhYGtAe5wiGEmCP4ZpgqtofQF1fYABhObn5o2LIM=; b=pUKDouBNnMpNOosDwI/5rUmf2z6gnCOlHExdXu3xNaFC/55Jgbs2OqUBZ0vrSJ65tK UBF5PfTZAu3ChgPA8EOJrMAhyR6ywVvwECn+kMJwSAMiUIl4HrfZuBptkzhliw8cJAqa OMkfMeSyCXgmD3T/TjmkoggarVGQKRZ2KN6WuEPRohWSThnpsWA7Z4UujsOyA9BEBafo 32I8MYZz+q6+3bRquGCsXCBuf6k4XFWtrnUO58oZPqD8lp/G/6SIFmdvBTWN9E9hTVP+ 9waB4XfAXhkGaZbRHQcTa3Fh4GpY2MqBtUaHDayZKpsKqpEejQKAHl/uv+jkNdfq0gxk +sRg== X-Gm-Message-State: AOAM531gCvW4dddjwjO90jAJO5I4NN/jPF0bN+sAx0XlASBjWNQvUe5V aXMcOBPX++PhHScsaHLA/mVGmtWMhpGMy8Hcpg8= X-Google-Smtp-Source: ABdhPJy5eauPTYjIdf+IeTzl2CnArYlq43PzOJd+NA5Yj14nbn8+5xGo3U9BQ3S8h4SL1usNm3g+exbbRtvb7xqb6f0= X-Received: by 2002:a25:98c4:: with SMTP id m4mr16123099ybo.613.1640513028115; Sun, 26 Dec 2021 02:03:48 -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: From: "Lad, Prabhakar" Date: Sun, 26 Dec 2021 10:03:22 +0000 Message-ID: Subject: Re: [PATCH v2 2/3] i2c: sh_mobile: Use platform_get_irq_optional() to get the interrupt To: Andy Shevchenko Cc: Prabhakar Mahadev Lad , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list , Nicolas Saenz Julienne , Chris Brandt , Wolfram Sang , linux-i2c , linux-rpi-kernel , linux-arm Mailing List , Linux-Renesas , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 26, 2021 at 8:41 AM Andy Shevchenko wrote: > > On Sun, Dec 26, 2021 at 1:45 AM Prabhakar Mahadev Lad > wrote: > > > On Wed, Dec 22, 2021 at 2:41 PM Lad Prabhakar wrote: > > ... > > > > > + if (np) { > > > > > > Same comments as per your other patches, i.e. > > > Why is this check here? > > > > > Because the interrupt resource has range of interrupts in one IRQ resource [0]. Let me know if there is any other alternative way to avoid such case. > > Shouldn't be fixed in platform_get_irq_optional() to return IRQ by > index for all cases? > Sorry, I don't get you here. Wasn't your earlier comment for np check? Cheers, Prabhakar