Re: [RFC PATCH net-next] net: phy: aquantia: add firmware load support

From: Jakub Kicinski
Date: Wed Oct 04 2023 - 19:28:36 EST


On Sat, 30 Sep 2023 12:39:44 +0200 Robert Marko wrote:
> + ret = of_property_read_string(dev->of_node, "firmware-name",
> + &fw_name);

Perhaps a well established weirdness of the embedded world but why read
the fw name from OF?! You can identify what PHY it is and decide the
file name based on that. And also put that fw name in MODULE_FIRMWARE()
so that initramfs can be built with appropriate file in place :S

> + ret = request_firmware(&fw, fw_name, dev);