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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 84AFACA5FB3 for ; Thu, 1 Oct 2026 08:44:28 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4hwQSq05qXz2yTQ; Thu, 01 Oct 2026 18:44:27 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c0a:e001:78e:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1790844266; cv=none; b=iLgIyPnebAPGjspiJJRhXp8a03RhdIJycMPiWQtQyZgtaypj+yLYW6CycFQzToRCQSQXbp8mLdhjiJzvZcNb/y6aFfuxR/vzRcEQCsEJuKf9zvKpKq1N68dgcX/CIa9mDTIcCZjYJyJwB0mMrnFG6Jx0nTypB0jJLa8VQuzIzQglnxACyTnnhXBGIkOIzBQ+AJUUsLsLBcvm+X5umvb/oGuXwAfXSQkDWy+BVZkiV3dznBYCfb3oR72+N6GeXIq/R4/fs5CtkN5LjeueT6ydt9wkKa6UhQf4N5bpdge00vhHE9cANVwjsCYMwpMwY6zfOrCC0nZJ9BDzteHrC18CLA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1790844266; c=relaxed/relaxed; bh=53vxHPgXPAYykvhPW1cq0eTcm/diYqT4wu1qHDLYCi8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CxQv7xzgs32qwJWvBbgzX9WhdLVE1tWtui0/s/h0JBfqmOncjX2Nj4m9gt7T82sVRnLiML5lk7dEEHB1rTLQ+owrfW/45Sr81/SDCaQw9XdOXEMsYyKVed837p7A76hupACbBDu70rZ2z6UAAEsBd4cRfEbv8XltJ8Lij/6j1mlvK0s8pqXNmL2llMQd/UCeyUVn4ef2Mf5SJ2TUo/LH04iK95cPTyheZPKfSHb2+mDJ4F7XQy6giOmLCLApuuPwT8/exjsBbJindk+rxfTRD8YfVvaf9PUXYuIN7/gx0pjog9Qm21txQf/hI+5IPMt08AI8Ia7+9IIu/flvlZAw9A== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; dkim=pass (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Fz4woziZ; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=gregkh@linuxfoundation.org; receiver=lists.ozlabs.org) smtp.mailfrom=linuxfoundation.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Fz4woziZ; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linuxfoundation.org (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=gregkh@linuxfoundation.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4hwQSn1nfdz2xsW for ; Thu, 01 Oct 2026 18:44:24 +1000 (AEST) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id DBDCB43A0A; Thu, 1 Oct 2026 08:44:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 477CB1F000FF; Thu, 1 Oct 2026 08:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790844261; bh=53vxHPgXPAYykvhPW1cq0eTcm/diYqT4wu1qHDLYCi8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Fz4woziZXui4ARVTuxJ+CV/XtD1BRz/XmkpmVx5Ipxiv8X4uzcFbBzFIkHgXQPtVU xvZKLPhfu5XT5Y7aA9z5bXBKfhjHIEus0/nUWDlWI5duDC6keWNXT62IlV2GXDnmGg mS20/b6NYXv6fuE7KIg5AWZabc1iuOTT5yZJ4qew= Date: Thu, 1 Oct 2026 10:44:15 +0200 From: Greg Kroah-Hartman To: Rosen Penev Cc: linux-serial@vger.kernel.org, Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , "Ritesh Harjani (IBM)" , Shrikanth Hegde , Jiri Slaby , "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" , "open list:TTY LAYER AND SERIAL DRIVERS" Subject: Re: [PATCH v2] serial: hvc: use modern IRQ acquisition API Message-ID: <2026100104-swan-radio-6edf@gregkh> References: <20260927204658.24338-1-rosenp@gmail.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260927204658.24338-1-rosenp@gmail.com> On Sun, Sep 27, 2026 at 01:46:58PM -0700, Rosen Penev wrote: > Use platform_get_irq_optional() to be able to handle potential > -EPROBE_DEFER and other errors. Move it earlier to avoid having to call > kfree() on the global array. > > Signed-off-by: Rosen Penev > --- > drivers/tty/hvc/hvc_opal.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/drivers/tty/hvc/hvc_opal.c b/drivers/tty/hvc/hvc_opal.c > index 402da9e7c534..fb9a566ca213 100644 > --- a/drivers/tty/hvc/hvc_opal.c > +++ b/drivers/tty/hvc/hvc_opal.c > @@ -13,7 +13,6 @@ > #include > #include > #include > -#include > #include > #include > #include > @@ -157,8 +156,9 @@ static int hvc_opal_probe(struct platform_device *dev) > struct hvc_struct *hp; > struct hvc_opal_priv *pv; > hv_protocol_t proto; > - unsigned int termno, irq, boot = 0; > + unsigned int termno, boot = 0; > const __be32 *reg; > + int irq; > > if (of_device_is_compatible(dev->dev.of_node, "ibm,opal-console-raw")) { > proto = HV_PROTOCOL_RAW; > @@ -176,6 +176,10 @@ static int hvc_opal_probe(struct platform_device *dev) > reg = of_get_property(dev->dev.of_node, "reg", NULL); > termno = reg ? be32_to_cpup(reg) : 0; > > + irq = platform_get_irq_optional(dev, 0); > + if (irq == -EPROBE_DEFER) > + return irq; > + > /* Is it our boot one ? */ > if (hvc_opal_privs[termno] == &hvc_opal_boot_priv) { > pv = hvc_opal_privs[termno]; > @@ -209,8 +213,7 @@ static int hvc_opal_probe(struct platform_device *dev) > dev->dev.of_node, > boot ? " (boot console)" : ""); > > - irq = irq_of_parse_and_map(dev->dev.of_node, 0); > - if (!irq) { > + if (irq < 0) { > pr_info("hvc%d: No interrupts property, using OPAL event\n", > termno); > irq = opal_event_request(ilog2(OPAL_EVENT_CONSOLE_INPUT)); > -- > 2.55.0 > > 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: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this. 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