qcacld-3.0: Set target ready only after hif_enable

Target register is safe to access only after FW ack the wlan
enable request, which is done in hif_enable. Hence set FW ready
state after that.

Change-Id: Ieeb7dd3e1a2400c7b2568869ac27cf7f745c20d5
CRs-Fixed: 2167736
This commit is contained in:
Yuanyuan Liu 2018-01-08 10:50:28 -08:00 committed by snandini
parent b4c2753270
commit 057fc4cf80
3 changed files with 4 additions and 12 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@ -252,6 +252,7 @@ int hdd_hif_open(struct device *dev, void *bdev, const struct hif_bus_id *bid,
ret = qdf_status_to_os_return(status);
goto err_hif_close;
} else {
cds_set_target_ready(true);
ret = hdd_napi_create();
hdd_debug("hdd_napi_create returned: %d", ret);
if (ret == 0)
@ -1452,9 +1453,6 @@ static void wlan_hdd_set_the_pld_uevent(struct pld_uevent_data *uevent)
case PLD_FW_DOWN:
cds_set_fw_state(CDS_FW_STATE_DOWN);
break;
case PLD_FW_READY:
cds_set_target_ready(true);
break;
}
}
@ -1489,7 +1487,6 @@ static void wlan_hdd_handle_the_pld_uevent(struct pld_uevent_data *uevent)
wlan_cfg80211_cleanup_scan_queue(
hdd_ctx->hdd_pdev);
break;
case PLD_FW_READY:
default:
break;
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@ -135,7 +135,6 @@ struct pld_platform_cap {
enum pld_uevent {
PLD_RECOVERY,
PLD_FW_DOWN,
PLD_FW_READY,
};
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@ -263,10 +263,6 @@ static int pld_snoc_uevent(struct device *dev,
data.uevent = PLD_FW_DOWN;
data.fw_down.crashed = uevent_data->crashed;
break;
case ICNSS_UEVENT_FW_READY:
data.uevent = PLD_FW_READY;
break;
default:
goto out;
}