]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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:45:20 +0000 (11:45 +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 3d99cb91e3eeb7fcf8970d2c37c87b6f05541da3..10a4210dbb34571e8c57a329c06795cf5270582b 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);