Message ID | 1658844682-12913-3-git-send-email-sbhatta@marvell.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Octeontx2 AF driver fixes for NPC | expand |
On Tue, 26 Jul 2022 19:41:19 +0530 Subbaraya Sundeep wrote: > - if (!request_firmware(&fw, kpu_profile, rvu->dev)) { > + if (!firmware_request_nowarn(&fw, kpu_profile, rvu->dev)) { Consider switching to request_firmware_direct() in net-next. I doubt you need the sysfs fallback, I think udev dropped the support for it.
On Wed, 27 Jul 2022 19:41:20 -0700 Jakub Kicinski wrote: > On Tue, 26 Jul 2022 19:41:19 +0530 Subbaraya Sundeep wrote: > > - if (!request_firmware(&fw, kpu_profile, rvu->dev)) { > > + if (!firmware_request_nowarn(&fw, kpu_profile, rvu->dev)) { > > Consider switching to request_firmware_direct() in net-next. > I doubt you need the sysfs fallback, I think udev dropped > the support for it. Well, the next patch needs work, so perhaps do it in v3?
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c index 3d99cb9..9404f86 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c @@ -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 (!firmware_request_nowarn(&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);