Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp283164rwi; Sun, 9 Oct 2022 23:31:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ddO2+j5WRFvdEct54ZJVcrZbZ7x17Z5OuoAFugWIOdtuMOM2bh3zsGd1xz8DKxh7O2oI2 X-Received: by 2002:a17:907:d26:b0:787:b723:694f with SMTP id gn38-20020a1709070d2600b00787b723694fmr13991826ejc.332.1665383497547; Sun, 09 Oct 2022 23:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665383497; cv=none; d=google.com; s=arc-20160816; b=oDV+H+YgkKVHVwMPEoPXNSVl7Y2gF/yC+GWnuWk6q6s2x6TJ+zapoCfbiwkKMpS6bl gvDQ5xqRstHvy7Sd0H+mJwF6TXjsiOU3fnbEg/oPQvPW2gvqMmtEvDjNML4K2FZ5o3/J e1LXL6KCjLMaNKhl9olT/j75Qsfas4qBD/OyLMIyvBB8AQJ08JeQ0xOY3BVyli+o57tf q/geuZBA83lawBM8vMtq3Nv95bzTtkZQwQCjdGYQ8gLjj2B7ekGgWLFLRdGb5DsvtR1+ OJT7iPk0mOyTqqKQfPmmIcsgmJqNsmrSIusv0+xvpRI2rRexXw1Rh2abGb23gY0YAyEM poDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6r7B9wW5UL1ja757Ld+8F3VDaE8JgLx5/qgsJ/2HhIs=; b=gqYqVWqnXgTqQgFaiTZYeQ5OVrKyaRvtcMhnZmN1dCWKY0NqBOA27lbhhNYjXtmiWe 8q4+rWWSIq0MPj4ubFxRruHVWsN/bOAC8z06hwBKiXifLBtfnRBZbTzYWGur9PdQLXbH q8RCwD1BMBqkLxu+DPxHZgiK5Tnifv7kCYCAFM53P9irG1zEySX/hCW53yn+Co4oRvrA yAcbo2o7J8emV6MnYzPkfe/CBG8+cPPjsTLuB4vUxpqeoFnrRyQ+rlIHu+giIU7CaLTv YzvsmE8uv+BXZ6OHYMpoJZiqOl4QG1iY8YkT2RHq7Dfj8NDGa0VTOP7uTwYX2duQDEvu 80nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yLOiltha; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb31-20020a1709071c9f00b0078dc7f7d0ebsi511598ejc.822.2022.10.09.23.31.11; Sun, 09 Oct 2022 23:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yLOiltha; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231229AbiJJGVL (ORCPT + 99 others); Mon, 10 Oct 2022 02:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiJJGVJ (ORCPT ); Mon, 10 Oct 2022 02:21:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45DD24BD05 for ; Sun, 9 Oct 2022 23:21:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D185860E00 for ; Mon, 10 Oct 2022 06:21:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8E02C433C1; Mon, 10 Oct 2022 06:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665382868; bh=0V6gSXjp/sWlxKzKLIEPESr+SZWzxGexcSKsBK0amRk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yLOilthaslZpyup0QLTvfvjf6fD4VoVZkTM1kjkFPjNXjtioP99F+sXoCk7ZiiBrR mSdASGa2xzYAtC9S8lT/SFRjRHRkkifEkCjx2zq5ME7avnZD5MQNH+pDz3XsLJDqVG E/i81lgBoetDMmV2q7u/BaufGy4DwgDzotvEfJ5Q= Date: Mon, 10 Oct 2022 08:21:51 +0200 From: Greg KH To: Soha Jin Cc: rafael@kernel.org, linux-kernel@vger.kernel.org, 'Wende Tan' Subject: Re: PING: [PATCH] platform: use fwnode_irq_get_byname instead of of_irq_get_byname to get irq Message-ID: References: <0E39B15006ADC205+02a601d8d4f8$a00a09e0$e01e1da0$@lohu.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Mon, Oct 10, 2022 at 11:14:46AM +0800, Soha Jin wrote: > > -----Original Message----- > > From: soha@lohu.info > > Sent: Saturday, October 1, 2022 2:15 AM > > To: gregkh@linuxfoundation.org > > Cc: rafael@kernel.org; linux-kernel@vger.kernel.org; 'Wende Tan' > > > > Subject: [PATCH] platform: use fwnode_irq_get_byname instead of > > of_irq_get_byname to get irq > > > > >From 02df97f4d814b9893eef2c2118b85d2b4b9d61ae Mon Sep 17 > > 00:00:00 2001 > > From: Soha Jin > > Date: Sat, 1 Oct 2022 00:26:04 +0800 > > Subject: [PATCH] platform: use fwnode_irq_get_byname instead of > > of_irq_get_byname to get irq > > > > Not only platform devices described by OF have named interrupts, but > > devices described by ACPI also have named interrupts. The fwnode is an > > abstraction to different standards, and using fwnode_irq_get_byname can > > support more devices. > > > > Signed-off-by: Soha Jin > > Tested-by: Wende Tan > > --- > > drivers/base/platform.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c index > > 51bb22898..968f3d71e 100644 > > --- a/drivers/base/platform.c > > +++ b/drivers/base/platform.c > > @@ -441,8 +441,8 @@ static int __platform_get_irq_byname(struct > > platform_device *dev, > > struct resource *r; > > int ret; > > > > - if (IS_ENABLED(CONFIG_OF_IRQ) && dev->dev.of_node) { > > - ret = of_irq_get_byname(dev->dev.of_node, name); > > + if (!dev->dev.of_node || IS_ENABLED(CONFIG_OF_IRQ)) { > > + ret = fwnode_irq_get_byname(dev_fwnode(&dev->dev), name); > > if (ret > 0 || ret == -EPROBE_DEFER) > > return ret; > > } > > -- > > 2.30.2 > > > > > > Any updates on this 10-day-ago patch? It's the middle of the merge window, we can't do anything until after 6.1-rc1 is out, please relax and wait for that. And what is the rush here, what is broken without this change? thanks, greg k-h