Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d04fe221 authored by Prateek Patil's avatar Prateek Patil Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Receive HOST wakeup event from FW

For IPCI_FW_SIM, HOST is not sending WMI_WOW_HOSTWAKEUP_FROM_SLEEP_CMDID to
FW. To wakeup HOST after suspend add api pld_ipci_fw_sim_exit_power_save
to redirect HOST wakeup.

Change-Id: Iaec5c947c5f3c1fd23dc5b31801ff94612fb7c47
CRs-Fixed: 3039189
parent 46f9ca37
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1319,12 +1319,14 @@ int pld_exit_power_save(struct device *dev)
	switch (type) {
	case PLD_BUS_TYPE_PCIE:
	case PLD_BUS_TYPE_PCIE_FW_SIM:
	case PLD_BUS_TYPE_IPCI_FW_SIM:
	case PLD_BUS_TYPE_SNOC_FW_SIM:
	case PLD_BUS_TYPE_SNOC:
	case PLD_BUS_TYPE_SDIO:
	case PLD_BUS_TYPE_USB:
		break;
	case PLD_BUS_TYPE_IPCI_FW_SIM:
		ret = pld_pcie_fw_sim_exit_power_save(dev);
		break;
	case PLD_BUS_TYPE_IPCI:
		ret = pld_ipci_exit_power_save(dev);
		break;
+12 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -147,6 +148,12 @@ static inline int pld_pcie_fw_sim_get_thermal_state(struct device *dev,
{
	return 0;
}

static inline int pld_pcie_fw_sim_exit_power_save(struct device *dev)
{
	return 0;
}

#else
#include <net/cnss2.h>

@@ -247,5 +254,10 @@ static inline int pld_pcie_fw_sim_get_thermal_state(struct device *dev,
						     mon_id);
}

static inline int pld_pcie_fw_sim_exit_power_save(struct device *dev)
{
	return cnss_fw_sim_exit_power_save(dev);
}

#endif
#endif