[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87db1a67-ede6-4da5-89b9-a75a67770edd@web.de>
Date: Sat, 20 Jul 2024 08:23:09 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: George Yang <George.Yang@....com>, Lizhi Hou <lizhi.hou@....com>,
Min Ma <min.ma@....com>, Narendra Gutta
<VenkataNarendraKumar.Gutta@....com>, dri-devel@...ts.freedesktop.org,
Oded Gabbay <ogabbay@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, Max Zhen <max.zhen@....com>,
Sonal Santan <sonal.santan@....com>
Subject: Re: [PATCH 01/10] accel/amdxdna: Add a new driver for AMD AI Engine
…
> +++ b/drivers/accel/amdxdna/aie2_pci.c
> @@ -0,0 +1,182 @@
…
> +static int aie2_init(struct amdxdna_dev *xdna)
> +{
…
> + const struct firmware *fw;
I suggest to take another software design option better into account
also according to the application of scope-based resource management.
* You may reduce the scope of such a local variable.
* How do you think about to use the attribute “__free(firmware)”?
https://elixir.bootlin.com/linux/v6.10/source/include/linux/firmware.h#L202
…
> + ret = request_firmware(&fw, ndev->priv->fw_path, &pdev->dev);
…
Regards,
Markus
Powered by blists - more mailing lists