Commit 4324414f authored by Sony Chacko's avatar Sony Chacko Committed by David S. Miller

qlcnic: Use qlcnic_83xx_flash_read32() API instead of lockless version of the API.

In qlcnic_83xx_setup_idc_parameters() routine use qlcnic_83xx_flash_read32() API
which takes flash lock internally instead of the lockless version
qlcnic_83xx_lockless_flash_read32().
Signed-off-by: default avatarSony Chacko <sony.chacko@qlogic.com>
Signed-off-by: default avatarManish Chopra <manish.chopra@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d61746b2
...@@ -1177,8 +1177,7 @@ static void qlcnic_83xx_setup_idc_parameters(struct qlcnic_adapter *adapter) ...@@ -1177,8 +1177,7 @@ static void qlcnic_83xx_setup_idc_parameters(struct qlcnic_adapter *adapter)
{ {
u32 idc_params, val; u32 idc_params, val;
if (qlcnic_83xx_lockless_flash_read32(adapter, if (qlcnic_83xx_flash_read32(adapter, QLC_83XX_IDC_FLASH_PARAM_ADDR,
QLC_83XX_IDC_FLASH_PARAM_ADDR,
(u8 *)&idc_params, 1)) { (u8 *)&idc_params, 1)) {
dev_info(&adapter->pdev->dev, dev_info(&adapter->pdev->dev,
"%s:failed to get IDC params from flash\n", __func__); "%s:failed to get IDC params from flash\n", __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment