提交 625c8e4a 编写于 作者: L Lendacky, Thomas 提交者: David S. Miller

amd-xgbe: Fix the xpcs mmd debugfs support

The debugfs support for the xpcs registers did not properly use the
specified mmd (xpcs_mmd entry) which resulted in the default mmd
value always being used.  Update the debugfs support to generate the
proper mmd register value.
Signed-off-by: NTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f076f453
...@@ -272,8 +272,8 @@ static ssize_t xpcs_reg_value_read(struct file *filp, char __user *buffer, ...@@ -272,8 +272,8 @@ static ssize_t xpcs_reg_value_read(struct file *filp, char __user *buffer,
struct xgbe_prv_data *pdata = filp->private_data; struct xgbe_prv_data *pdata = filp->private_data;
unsigned int value; unsigned int value;
value = pdata->hw_if.read_mmd_regs(pdata, pdata->debugfs_xpcs_mmd, value = XMDIO_READ(pdata, pdata->debugfs_xpcs_mmd,
pdata->debugfs_xpcs_reg); pdata->debugfs_xpcs_reg);
return xgbe_common_read(buffer, count, ppos, value); return xgbe_common_read(buffer, count, ppos, value);
} }
...@@ -290,8 +290,8 @@ static ssize_t xpcs_reg_value_write(struct file *filp, ...@@ -290,8 +290,8 @@ static ssize_t xpcs_reg_value_write(struct file *filp,
if (len < 0) if (len < 0)
return len; return len;
pdata->hw_if.write_mmd_regs(pdata, pdata->debugfs_xpcs_mmd, XMDIO_WRITE(pdata, pdata->debugfs_xpcs_mmd, pdata->debugfs_xpcs_reg,
pdata->debugfs_xpcs_reg, value); value);
return len; return len;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册