octeontx2-af: suppress external profile loading warning
authorHarman Kalra <hkalra@marvell.com>
Wed, 3 Aug 2022 07:54:13 +0000 (13:24 +0530)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Aug 2022 01:56:34 +0000 (18:56 -0700)
The packet parser profile supplied as firmware may not
be present all the time and default profile is used mostly.
Hence suppress firmware loading warning from kernel due to
absence of firmware in kernel image.

Fixes: 3a7244152f9c ("octeontx2-af: add support for custom KPU entries")
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c

index a2ceb831db336abeb5523bef089cb78f30fb3171..a0198b2e23de2e8b44ea499c07da058c7047d8d7 100644 (file)
@@ -1675,7 +1675,7 @@ static void npc_load_kpu_profile(struct rvu *rvu)
         * Firmware database method.
         * Default KPU profile.
         */
-       if (!request_firmware(&fw, kpu_profile, rvu->dev)) {
+       if (!request_firmware_direct(&fw, kpu_profile, rvu->dev)) {
                dev_info(rvu->dev, "Loading KPU profile from firmware: %s\n",
                         kpu_profile);
                rvu->kpu_fwdata = kzalloc(fw->size, GFP_KERNEL);