]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
qlcnic: Use qlcnic_83xx_flash_read32() API instead of lockless version of the API.
authorSony Chacko <sony.chacko@qlogic.com>
Mon, 22 Sep 2014 09:51:50 +0000 (05:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Sep 2014 19:11:31 +0000 (15:11 -0400)
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: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_init.c

index 86783e1afcf76d77176a079e4420a50f7b452b62..3172cdf591fe1622c263d00f36ee12216205c57a 100644 (file)
@@ -1177,9 +1177,8 @@ static void qlcnic_83xx_setup_idc_parameters(struct qlcnic_adapter *adapter)
 {
        u32 idc_params, val;
 
-       if (qlcnic_83xx_lockless_flash_read32(adapter,
-                                             QLC_83XX_IDC_FLASH_PARAM_ADDR,
-                                             (u8 *)&idc_params, 1)) {
+       if (qlcnic_83xx_flash_read32(adapter, QLC_83XX_IDC_FLASH_PARAM_ADDR,
+                                    (u8 *)&idc_params, 1)) {
                dev_info(&adapter->pdev->dev,
                         "%s:failed to get IDC params from flash\n", __func__);
                adapter->dev_init_timeo = QLC_83XX_IDC_INIT_TIMEOUT_SECS;