Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1009330rwb; Thu, 10 Nov 2022 10:01:50 -0800 (PST) X-Google-Smtp-Source: AMsMyM5ukNkRQ1aVKgfrqM1QzdLxx0pWj/yCNwbUCMHnzjeyd/KrSdBl7gJCKHKnuv0pNRcRLanz X-Received: by 2002:a05:6a00:99b:b0:56b:b53f:e887 with SMTP id u27-20020a056a00099b00b0056bb53fe887mr3098971pfg.3.1668103310357; Thu, 10 Nov 2022 10:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668103310; cv=none; d=google.com; s=arc-20160816; b=gvFwlH+2dGwhqx1LFrjYs1GxmSlMsHjXfnf5UbRTgasTU6V0d/efR4VMO6a4h3JIJm Gl3gxWbWg1Ea17b0fZRuGq5dzK195HEEjAZJB8PkoUH0Sph3WMShURJP5npCsGtNbC86 gYaC0Z7IZfaLWU0/b2P9nvpO49vPdOWZf3z8y3PEmLlQiifvlTfCJa1Mi9v8bGV/n2hy PjUf28mc3v390+4NpYUc9vuAKkRB/ETKV92soOjC3uqdmSOGyBmuxubvly6nYleGH8KZ BZ/IAgKaLZp22AcTxmtfY5VCW1QrNOGGhq0InxzruaxM1YNSMafjWXHQiOUpCVWsygLh anbA== 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=zDhjc0BTeWyLXvXWQ2XzIxOysmrqNHTMal0n6/WYZSg=; b=QbCVSSb2QyndE/HYzCEMHuwqhx0wjyge9vqM1J3tdDIJ6lal27UMzrqZR4TJ+heNKH Ro/LfKWMTZPdeCNWJfv3eRaY+BPMbtWQKo07M8U826ZjwT8WJ9bsK1qJhY19Dg/Rzxts a0eNnYc9hb6C18PQvTYKT9IsGJOpsVo5kZcrQZTZhFHKyWaBtnVK+i5iRoXzZzK4JVRk mKFXqKXpUhpqxG31gA6pRlVEHXUg0X4bSuVcnPkh2aW9zfnCBoiII9plzXTtfH/YJ5VD BR2Q3h7ZmSUHhEazz3QCNyJO1qgBZLjpYcEcKwQ1bLx1ztLqXtyhDgIfYjrfnDrjSzZh O4zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UDHjQJT3; 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 mq7-20020a17090b380700b00206012b593csi5579066pjb.33.2022.11.10.10.01.37; Thu, 10 Nov 2022 10:01:50 -0800 (PST) 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=UDHjQJT3; 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 S231364AbiKJRzW (ORCPT + 93 others); Thu, 10 Nov 2022 12:55:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbiKJRzU (ORCPT ); Thu, 10 Nov 2022 12:55:20 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5893643AC5 for ; Thu, 10 Nov 2022 09:55:19 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id C539DB822A3 for ; Thu, 10 Nov 2022 17:55:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10A77C433D6; Thu, 10 Nov 2022 17:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668102916; bh=fQFYkEa23fxI7TRj35/AbFk9uXutR/RVnNdiflFWyQ4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UDHjQJT3ZCs8Bh5hRlxoJ6EzrM+XvnxwqdzHqny38CAkKZLND+LkSQkBCuUeSv2Mb qf+a+SPaAgrOcHsuYhFR976kwUBUTbcdrRbqZf7Pp/Yec9nfQjUiR+jI0o2hCi3fs/ hA3e+mhRlJoz8Wxxtw01DL2u+BjrWm0UdFicgqN0= Date: Thu, 10 Nov 2022 18:55:13 +0100 From: Greg KH To: soha@lohu.info Cc: rafael@kernel.org, linux-kernel@vger.kernel.org, 'Wende Tan' Subject: Re: [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: <0E39B15006ADC205+02a601d8d4f8$a00a09e0$e01e1da0$@lohu.info> 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 Sat, Oct 01, 2022 at 02:15:29AM +0800, soha@lohu.info wrote: > >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 > > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - Your patch is malformed (tabs converted to spaces, linewrapped, etc.) and can not be applied. Please read the file, Documentation/email-clients.txt in order to fix this. - Your patch was attached, please place it inline so that it can be applied directly from the email message itself. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot