octeontx2-af: suppress external profile loading warning
authorHarman Kalra <hkalra@marvell.com>
Wed, 3 Aug 2022 07:54:13 +0000 (13:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:40:09 +0000 (11:40 +0200)
commit cf2437626502b5271d19686b03dea306efe17ea0 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c

index b4f1a56c73bb699d97a00602cd2eb80547dc48f4..f6d976e1b9a4f8f89e5e0cab7d748eb737a7bc16 100644 (file)
@@ -1650,7 +1650,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);