linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Laurentiu Tudor <laurentiu.tudor@nxp.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Stuart Yoder" <stuyoder@gmail.com>,
	"Roy Pledge" <Roy.Pledge@nxp.com>, "Li Yang" <leoyang.li@nxp.com>,
	"Horia Geantă" <horia.geanta@nxp.com>,
	"Pankaj Gupta" <pankaj.gupta@nxp.com>,
	"Gaurav Jain" <gaurav.jain@nxp.com>,
	"Herbert Xu" <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	"Vinod Koul" <vkoul@kernel.org>,
	"Ioana Ciornei" <ioana.ciornei@nxp.com>,
	"Eric Dumazet" <edumazet@google.com>,
	"Jakub Kicinski" <kuba@kernel.org>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Yangbo Lu" <yangbo.lu@nxp.com>,
	"Diana Craciun" <diana.craciun@oss.nxp.com>,
	"Alex Williamson" <alex.williamson@redhat.com>,
	"Richard Cochran" <richardcochran@gmail.com>
Cc: kvm@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org,
	kernel@pengutronix.de, dmaengine@vger.kernel.org,
	linuxppc-dev@lists.ozlabs.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 0/6] bus: fsl-mc: Make remove function return void
Date: Mon, 13 Mar 2023 17:47:18 +0200	[thread overview]
Message-ID: <b12d1fb1-1ca6-5f9c-c8b9-97c451734923@nxp.com> (raw)
In-Reply-To: <20230310224128.2638078-1-u.kleine-koenig@pengutronix.de>



On 3/11/2023 12:41 AM, Uwe Kleine-König wrote:
> Hello,
> 
> many bus remove functions return an integer which is a historic
> misdesign that makes driver authors assume that there is some kind of
> error handling in the upper layers. This is wrong however and returning
> and error code only yields an error message.
> 
> This series improves the fsl-mc bus by changing the remove callback to
> return no value instead. As a preparation all drivers are changed to
> return zero before so that they don't trigger the error message.
> 
> Best regards
> Uwe
> 
> Uwe Kleine-König (6):
>    bus: fsl-mc: Only warn once about errors on device unbind
>    bus: fsl-mc: dprc: Push down error message from fsl_mc_driver_remove()
>    bus: fsl-mc: fsl-mc-allocator: Drop if block with always wrong
>      condition
>    bus: fsl-mc: fsl-mc-allocator: Improve error reporting
>    soc: fsl: dpio: Suppress duplicated error reporting on device remove
>    bus: fsl-mc: Make remove function return void
> 

Thanks for the series, Uwe. Did a quick boot test with ACPI, so:

Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Tested-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>

  parent reply	other threads:[~2023-03-13 15:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-10 22:41 [PATCH 0/6] bus: fsl-mc: Make remove function return void Uwe Kleine-König
2023-03-10 22:41 ` [PATCH 5/6] soc: fsl: dpio: Suppress duplicated error reporting on device remove Uwe Kleine-König
2023-03-10 22:41 ` [PATCH 6/6] bus: fsl-mc: Make remove function return void Uwe Kleine-König
2023-03-13 13:46 ` [PATCH 0/6] " Ioana Ciornei
2023-03-13 15:47 ` Laurentiu Tudor [this message]
2023-04-12 17:10 ` Uwe Kleine-König
2023-04-12 21:30   ` Leo Li
2023-04-13  6:00     ` Uwe Kleine-König
2023-05-08 13:43       ` Uwe Kleine-König
2023-05-08 21:57         ` Li Yang
2023-05-09  7:20           ` Michael Ellerman
2023-05-30 13:50           ` Uwe Kleine-König
2023-05-31  0:01             ` Leo Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b12d1fb1-1ca6-5f9c-c8b9-97c451734923@nxp.com \
    --to=laurentiu.tudor@nxp.com \
    --cc=Roy.Pledge@nxp.com \
    --cc=alex.williamson@redhat.com \
    --cc=davem@davemloft.net \
    --cc=diana.craciun@oss.nxp.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=gaurav.jain@nxp.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=horia.geanta@nxp.com \
    --cc=ioana.ciornei@nxp.com \
    --cc=kernel@pengutronix.de \
    --cc=kuba@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=leoyang.li@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pankaj.gupta@nxp.com \
    --cc=richardcochran@gmail.com \
    --cc=stuyoder@gmail.com \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=vkoul@kernel.org \
    --cc=yangbo.lu@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).