icnss2: Add code to pass device configs to wlan host driver
Add code to pass device configs to wlan host driver. Change-Id: I977fc564914f9fbdabc0004eff4c5c2f14a1fc7c Signed-off-by: Sandeep Singh <quic_sandsing@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
3974704e22
commit
9c8339eabe
@@ -409,6 +409,17 @@ bool icnss_is_fw_down(void)
|
||||
}
|
||||
EXPORT_SYMBOL(icnss_is_fw_down);
|
||||
|
||||
unsigned long icnss_get_device_config(void)
|
||||
{
|
||||
struct icnss_priv *priv = icnss_get_plat_priv();
|
||||
|
||||
if (!priv)
|
||||
return 0;
|
||||
|
||||
return priv->device_config;
|
||||
}
|
||||
EXPORT_SYMBOL(icnss_get_device_config);
|
||||
|
||||
bool icnss_is_rejuvenate(void)
|
||||
{
|
||||
if (!penv)
|
||||
@@ -4078,6 +4089,14 @@ static void icnss_init_control_params(struct icnss_priv *priv)
|
||||
priv->ctrl_params.bdf_type = ICNSS_BDF_BIN;
|
||||
}
|
||||
|
||||
static void icnss_read_device_configs(struct icnss_priv *priv)
|
||||
{
|
||||
if (of_property_read_bool(priv->pdev->dev.of_node,
|
||||
"wlan-ipa-disabled")) {
|
||||
set_bit(ICNSS_IPA_DISABLED, &priv->device_config);
|
||||
}
|
||||
}
|
||||
|
||||
static inline void icnss_runtime_pm_init(struct icnss_priv *priv)
|
||||
{
|
||||
pm_runtime_get_sync(&priv->pdev->dev);
|
||||
@@ -4161,6 +4180,8 @@ static int icnss_probe(struct platform_device *pdev)
|
||||
|
||||
icnss_init_control_params(priv);
|
||||
|
||||
icnss_read_device_configs(priv);
|
||||
|
||||
ret = icnss_resource_parse(priv);
|
||||
if (ret)
|
||||
goto out_reset_drvdata;
|
||||
|
Reference in New Issue
Block a user