提交 7542c66b 编写于 作者: F fengsheng 提交者: Xie XiuQi

drivers : sfc fix bug

driver inclusion
category: feature
bugzilla: NA
CVE: NA

sfc : the interface of write protect update flash id.
Signed-off-by: Nfengsheng <fengsheng5@huawei.com>
Reviewed-by: Nlinsiwei <linsiwei@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 6261ff96
......@@ -1610,6 +1610,8 @@ int SFC_WPSet(struct SFC_SFLASH_INFO *sflash, BOOL val)
ret = SFC_GetDeviceId(sflash, &device_id);
retval_if_fail(ret, "[SFC] Failed to get the SFlash ID!\n");
sflash->manufacturerId = device_id;
ret = SFC_WaitFlashIdle(sflash);
if (HRD_OK != ret) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册