mirror of https://gitee.com/openkylin/linux.git
bnxt_en: Set MASTER flag during driver registration.
The Linux driver is capable of being the master function to handle resets, so we set the flag to let firmware know. Some other drivers, such as DPDK, is not capable and will not set the flag. Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0a3f4e4f34
commit
e633a32935
|
@ -4441,7 +4441,8 @@ static int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp)
|
|||
flags = FUNC_DRV_RGTR_REQ_FLAGS_16BIT_VER_MODE |
|
||||
FUNC_DRV_RGTR_REQ_FLAGS_HOT_RESET_SUPPORT;
|
||||
if (bp->fw_cap & BNXT_FW_CAP_ERROR_RECOVERY)
|
||||
flags |= FUNC_DRV_RGTR_REQ_FLAGS_ERROR_RECOVERY_SUPPORT;
|
||||
flags |= FUNC_DRV_RGTR_REQ_FLAGS_ERROR_RECOVERY_SUPPORT |
|
||||
FUNC_DRV_RGTR_REQ_FLAGS_MASTER_SUPPORT;
|
||||
req.flags = cpu_to_le32(flags);
|
||||
req.ver_maj_8b = DRV_VER_MAJ;
|
||||
req.ver_min_8b = DRV_VER_MIN;
|
||||
|
|
Loading…
Reference in New Issue