“731abc0d2284b957fdf77e76ef34eff1bd0a5bc1”上不存在“README.rst”
提交 a863a15b 编写于 作者: Z Zhao, Gang 提交者: Greg Kroah-Hartman

staging: et131x: stop read when hit max delay in et131x_phy_mii_read

stop read and return error when hit max delay time.
Signed-off-by: NZhao, Gang <gamerh2o@gmail.com>
Acked-by: NMark Einon <mark.einon@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ba92b225
......@@ -1388,6 +1388,7 @@ static int et131x_phy_mii_read(struct et131x_adapter *adapter, u8 addr,
mii_indicator);
status = -EIO;
goto out;
}
/* If we hit here we were able to read the register and we need to
......@@ -1395,6 +1396,7 @@ static int et131x_phy_mii_read(struct et131x_adapter *adapter, u8 addr,
*/
*value = readl(&mac->mii_mgmt_stat) & ET_MAC_MIIMGMT_STAT_PHYCRTL_MASK;
out:
/* Stop the read operation */
writel(0, &mac->mii_mgmt_cmd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部