net/qede/base: use pointer for bytes length read
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
This commit is contained in:
parent
2cf7a0faf4
commit
979582a1aa
@ -3053,7 +3053,7 @@ enum _ecore_status_t ecore_mcp_nvm_read(struct ecore_dev *p_dev, u32 addr,
|
||||
}
|
||||
|
||||
enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd,
|
||||
u32 addr, u8 *p_buf, u32 len)
|
||||
u32 addr, u8 *p_buf, u32 *p_len)
|
||||
{
|
||||
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
|
||||
struct ecore_ptt *p_ptt;
|
||||
@ -3068,7 +3068,7 @@ enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd,
|
||||
(cmd == ECORE_PHY_CORE_READ) ?
|
||||
DRV_MSG_CODE_PHY_CORE_READ :
|
||||
DRV_MSG_CODE_PHY_RAW_READ,
|
||||
addr, &resp, ¶m, &len, (u32 *)p_buf);
|
||||
addr, &resp, ¶m, p_len, (u32 *)p_buf);
|
||||
if (rc != ECORE_SUCCESS)
|
||||
DP_NOTICE(p_dev, false, "MCP command rc = %d\n", rc);
|
||||
|
||||
|
@ -943,7 +943,7 @@ enum _ecore_status_t ecore_mcp_nvm_resp(struct ecore_dev *p_dev, u8 *p_buf);
|
||||
* @return enum _ecore_status_t - ECORE_SUCCESS - operation was successful.
|
||||
*/
|
||||
enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd,
|
||||
u32 addr, u8 *p_buf, u32 len);
|
||||
u32 addr, u8 *p_buf, u32 *p_len);
|
||||
|
||||
/**
|
||||
* @brief Read from nvm
|
||||
|
Loading…
Reference in New Issue
Block a user