Message ID | 20210819223451.245613-1-anthony.l.nguyen@intel.com |
---|---|
State | New |
Headers | show |
Series | [net,v2,1/1] ice: do not abort devlink info if board identifier can't be found | expand |
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Thu, 19 Aug 2021 15:34:51 -0700 you wrote: > From: Jacob Keller <jacob.e.keller@intel.com> > > The devlink dev info command reports version information about the > device and firmware running on the board. This includes the "board.id" > field which is supposed to represent an identifier of the board design. > The ice driver uses the Product Board Assembly identifier for this. > > [...] Here is the summary with links: - [net,v2,1/1] ice: do not abort devlink info if board identifier can't be found https://git.kernel.org/netdev/net/c/a8f89fa27773 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/ethernet/intel/ice/ice_devlink.c b/drivers/net/ethernet/intel/ice/ice_devlink.c index 91b545ab8b8f..7fe6e8ea39f0 100644 --- a/drivers/net/ethernet/intel/ice/ice_devlink.c +++ b/drivers/net/ethernet/intel/ice/ice_devlink.c @@ -42,7 +42,9 @@ static int ice_info_pba(struct ice_pf *pf, struct ice_info_ctx *ctx) status = ice_read_pba_string(hw, (u8 *)ctx->buf, sizeof(ctx->buf)); if (status) - return -EIO; + /* We failed to locate the PBA, so just skip this entry */ + dev_dbg(ice_pf_to_dev(pf), "Failed to read Product Board Assembly string, status %s\n", + ice_stat_str(status)); return 0; }