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

Commit 93643a51 authored by Dedy Lansky's avatar Dedy Lansky
Browse files

wil6210: remove HALP for Talyn devices



In Talyn the HW is responsible for power management enter / exit
flow, hence the deep sleep exit latency is significantly shorter than
in Sparrow.
In such a case HALP feature, that is meant to prevent long PCIe blocking
accesses, is no longer needed and can be removed for Talyn.

Change-Id: I7ae6d3889bb482770da49dcc8a1a6e35a5843ae3
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
Signed-off-by: default avatarDedy Lansky <dlansky@codeaurora.org>
parent 6e9f8d30
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1976,6 +1976,9 @@ void wil_halp_vote(struct wil6210_priv *wil)
	unsigned long rc;
	unsigned long rc;
	unsigned long to_jiffies = msecs_to_jiffies(WAIT_FOR_HALP_VOTE_MS);
	unsigned long to_jiffies = msecs_to_jiffies(WAIT_FOR_HALP_VOTE_MS);


	if (wil->hw_version >= HW_VER_TALYN_MB)
		return;

	mutex_lock(&wil->halp.lock);
	mutex_lock(&wil->halp.lock);


	wil_dbg_irq(wil, "halp_vote: start, HALP ref_cnt (%d)\n",
	wil_dbg_irq(wil, "halp_vote: start, HALP ref_cnt (%d)\n",
@@ -2006,6 +2009,9 @@ void wil_halp_vote(struct wil6210_priv *wil)


void wil_halp_unvote(struct wil6210_priv *wil)
void wil_halp_unvote(struct wil6210_priv *wil)
{
{
	if (wil->hw_version >= HW_VER_TALYN_MB)
		return;

	WARN_ON(wil->halp.ref_cnt == 0);
	WARN_ON(wil->halp.ref_cnt == 0);


	mutex_lock(&wil->halp.lock);
	mutex_lock(&wil->halp.lock);