[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d73db52d-e616-4b7e-870c-e1f58c71b0ea@kernel.org>
Date: Fri, 30 Aug 2024 18:54:18 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Yang Ruibin <11162571@...o.com>, Lino Sanfilippo <LinoSanfilippo@....de>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: opensource.kernel@...o.com
Subject: Re: [PATCH v1] net: alacritech: Switch to use dev_err_probe()
On 28/08/2024 14:26, Yang Ruibin wrote:
> use dev_err_probe() instead of dev_err() to simplify the error path and
> standardize the format of the error code.
>
> Signed-off-by: Yang Ruibin <11162571@...o.com>
> ---
> drivers/net/ethernet/alacritech/slicoss.c | 34 ++++++++++-------------
> 1 file changed, 14 insertions(+), 20 deletions(-)
>
> diff --git a/drivers/net/ethernet/alacritech/slicoss.c b/drivers/net/ethernet/alacritech/slicoss.c
> index 78231c852..65919ace0 100644
> --- a/drivers/net/ethernet/alacritech/slicoss.c
> +++ b/drivers/net/ethernet/alacritech/slicoss.c
> @@ -1051,11 +1051,9 @@ static int slic_load_rcvseq_firmware(struct slic_device *sdev)
> file = (sdev->model == SLIC_MODEL_OASIS) ? SLIC_RCV_FIRMWARE_OASIS :
> SLIC_RCV_FIRMWARE_MOJAVE;
> err = request_firmware(&fw, file, &sdev->pdev->dev);
> - if (err) {
> - dev_err(&sdev->pdev->dev,
> + if (err)
> + return dev_err_probe(&sdev->pdev->dev, err,
> "failed to load receive sequencer firmware %s\n", file);
NAK.
Vivo does not understand how deferred probe works or introduces
intentionally buggy code.
This must be reverted.
Best regards,
Krzysztof
Powered by blists - more mailing lists