Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1369975pxb; Fri, 21 Jan 2022 16:46:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJypdjeqS2liXrHwaNZbMw7p65JgZm/zNOafKabkgajyKp/ilFiV/BCBc4cNhJqAPohour3l X-Received: by 2002:a63:6a09:: with SMTP id f9mr4501096pgc.533.1642812372695; Fri, 21 Jan 2022 16:46:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642812372; cv=none; d=google.com; s=arc-20160816; b=bO2iSGlrJzwMjRHIfttYwgNLHI8T+q3kbRU3O/ITPee2R5y9ut6RZaVP/iSZbSuRMK 5UMVopmVGOXuJAMfKhK1/bk8xM/GL/xaCPMpfVc/dbW4wUAkyoYFa5Q0aYGSI97J1cXt HBdvI/qpwRZapPFfhLilztuYcOzjoC6rrrfVZB34jX5CCitvbidseWOD7QWbXXTWvHg/ 4xi57DK01u8Kdrk+js78PipBPWqG0LPKtRGklawTPCFCWAIBjJgP/9AeTczU6aIn7RE7 WqhJ3K5ukdLsUAkgOWstYVUuR59HFf0gUtcPxLo6GlQt5dtk8PTJlmGLyyBmA4/D2GBx QaGw== 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:dkim-signature; bh=De3en+T8td6BTws+aSkxiEc0xtw9ycpJk2sfxHvo/e8=; b=QsHb1j8CPzEMYAM7DPp1Bxgpo/eIydRgeyrlLNe4FOSksrFxbD1WvS1GSUZ62OU0xq ID/bAaU8jG3QlbOUOKXV79EDRsBqnW+yx9qlSaU6GderA7p4z5hx1alXBhIjYAZTH/tN Q6pqKtGgVHX7fGTFjf/XQnmWopvQuev1aUXHNYOtRC9h8jVsRFWRKUWmJiyW5JlMnZHA m4zcCWLMtUW8ne/ZJRYawDfIz36tUMXk/IfqfahhjfOE0gD6IAEf7yaQefvD5XimuGeu ubVHjwQXxyovKlZVvp5HrX2ZwLavRltup9TmSC9RU9MUyG1ICJhyUr10SeeUHJeunxy+ C7gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QuTEhQnQ; 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 w11si6444522plq.436.2022.01.21.16.46.01; Fri, 21 Jan 2022 16:46:12 -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=QuTEhQnQ; 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 S1379950AbiAUKRZ (ORCPT + 99 others); Fri, 21 Jan 2022 05:17:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238198AbiAUKRQ (ORCPT ); Fri, 21 Jan 2022 05:17:16 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 476E8C061574; Fri, 21 Jan 2022 02:17:15 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id b13so41220796edn.0; Fri, 21 Jan 2022 02:17:15 -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=De3en+T8td6BTws+aSkxiEc0xtw9ycpJk2sfxHvo/e8=; b=QuTEhQnQHHLCiUTn33HTA2us6RBdWuBNnjtK8sEockoTbSKy5nQM28WCZh6BD8/loI OFEDzVYEoF0nYG7msIFtggMZe1Jv+5gNhyaeMuKA9UyCTdimCAExVf4xmOgENzI5e55h l37pIk6lnSK6TPoGczcQRsFcCjwYjazK+Lpue9XMuTzza4JyZROiahGpo2DtVHTg9Esf X3ttmFPYq6yRvPcXna9FX7w8m6FI1Oftn/evarH6fN51OtXtNvVHUv0BIxCa+60TYrz/ cwyNK5nj/N/6Zc16l1YWDQ05JxsPyrE6zLyTDsnTvfE6CfXQW2+cPNXo0XBVTSY40kLF 5e8A== 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=De3en+T8td6BTws+aSkxiEc0xtw9ycpJk2sfxHvo/e8=; b=DaFqfecNx8KKJn3iVV4699VjPeNdPOi1FWU23ibc5qpZIYOdRg4buN/Dhx54XkZ79L O4XV2CoJhxWyn0HLbdWsI0Ev2u6LGv8ozw+fEDdNQLreUkzZrJM3zukH4UamoBblYMu3 fbVHrYjbvPVAkjzhkp+i+a6DS5HnsKPalVd2VyyCob4ppp7r/9cWFXbgGcgaf2QT0g5E Ruj+6LJv9r+2iBK9W1eAx4L8yKdk0qRcA78XE28ruBzCalEe4pctZtw6Xohp3e0VYa7g fDDV/GOEKzm6tcQ/vInnaPCozwdu7DmMQFqIJ8lNVwPCSuGo1zHpef70RXaJb71+ryO/ rxCQ== X-Gm-Message-State: AOAM532z2M5L5VJeR9uR9onpeRufkwe25nU7jRekmc2x510uROuAYxjl 3bH18o0Qyr/N+bF4ZpmoA2rcxYhEzoHLpYqIAfY= X-Received: by 2002:a17:906:7948:: with SMTP id l8mr2737570ejo.636.1642760233787; Fri, 21 Jan 2022 02:17:13 -0800 (PST) MIME-Version: 1.0 References: <1642686255-25951-1-git-send-email-akhilrajeev@nvidia.com> <1642686255-25951-2-git-send-email-akhilrajeev@nvidia.com> In-Reply-To: From: Andy Shevchenko Date: Fri, 21 Jan 2022 12:16:37 +0200 Message-ID: Subject: Re: [PATCH v3 1/3] device property: Add device_irq_get_byname To: Akhil R Cc: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Christian Koenig , Dmitry Osipenko , Greg Kroah-Hartman , Jonathan Hunter , Laxman Dewangan , Len Brown , ACPI Devel Maling List , linux-i2c , Linux Kernel Mailing List , linux-tegra , "Rafael J. Wysocki" , Sumit Semwal , Thierry Reding , Wolfram Sang Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 21, 2022 at 11:18 AM Akhil R wrote: ... > > > +int device_irq_get_byname(struct device *dev, const char *name); > > > > Since we don't have device_irq_get() perhaps we don't need this one right now > > (just open code it in the caller). This will satisfy Rafael's request. > > If to code the same in caller, I guess, it would look like this - > irq = fwnode_irq_get_byname(dev_fwnode(adapter->dev.parent), > "smbus_alert"); Yep, I meant how you point to it in the documentation, e.g. The user may call fwnode_irq_get_byname() with the firmware node and name of the IRQ it wants to retrieve. > Looks okay to me, but if given an option I would go with device_irq_get_byname(). You see, there was a query from Rafael and I haven't seen an answer yet. On top there is no such function for fwnode_irq_get() (I mean device_irq_get() API). It would be harder to push without good justification why one has the device_ counterpart and the other does not. Easiest way, as I see it, is to drop it for now. -- With Best Regards, Andy Shevchenko