On 2/27/2017 7:56 AM, Rasesh Mody wrote: > Add support to send FW version and driver state to Management FW. > > Signed-off-by: Rasesh Mody <rasesh.m...@cavium.com>
<...> > - return ECORE_SUCCESS; > + if (IS_PF(p_dev)) { > + p_hwfn = ECORE_LEADING_HWFN(p_dev); > + drv_mb_param = (FW_MAJOR_VERSION << 24) | > + (FW_MINOR_VERSION << 16) | > + (FW_REVISION_VERSION << 8) | > + (FW_ENGINEERING_VERSION); > + rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt, > + DRV_MSG_CODE_OV_UPDATE_STORM_FW_VER, > + drv_mb_param, &load_code, ¶m); > + if (rc != ECORE_SUCCESS) { > + DP_ERR(p_hwfn, "Failed to send firmware version\n"); > + return rc; > + } > + > + rc = ecore_mcp_ov_update_driver_state(p_hwfn, > + p_hwfn->p_main_ptt, > + ECORE_OV_DRIVER_STATE_DISABLED); Is this something that effects end user, the application that uses this PMD? > + } > + > + return rc; > } > <...>