From 085f11cac8da0f74fe028714b849c2f1470c1f69 Mon Sep 17 00:00:00 2001 From: Mahesh Kumar Kalikot Veetil Date: Wed, 3 Jul 2019 14:07:31 -0700 Subject: [PATCH] cnss2: Add idle state to bus voting WLAN driver removes idle bus vote for low throughput traffic scenarios. Fix it by adding idle state. Remove vote only in case of system suspend or driver unload. Change-Id: I504714afc839320ec8099356c9689ea568313470 CRs-Fixed: 2484000 Signed-off-by: Mahesh Kumar Kalikot Veetil --- drivers/net/wireless/cnss2/main.c | 1 + include/net/cnss2.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/wireless/cnss2/main.c b/drivers/net/wireless/cnss2/main.c index 838c590a5614..9f5e3adf3e99 100644 --- a/drivers/net/wireless/cnss2/main.c +++ b/drivers/net/wireless/cnss2/main.c @@ -168,6 +168,7 @@ int cnss_request_bus_bandwidth(struct device *dev, int bandwidth) switch (bandwidth) { case CNSS_BUS_WIDTH_NONE: + case CNSS_BUS_WIDTH_IDLE: case CNSS_BUS_WIDTH_LOW: case CNSS_BUS_WIDTH_MEDIUM: case CNSS_BUS_WIDTH_HIGH: diff --git a/include/net/cnss2.h b/include/net/cnss2.h index 3b65a6896c80..3c9354981937 100644 --- a/include/net/cnss2.h +++ b/include/net/cnss2.h @@ -17,6 +17,7 @@ enum cnss_bus_width_type { CNSS_BUS_WIDTH_NONE, + CNSS_BUS_WIDTH_IDLE, CNSS_BUS_WIDTH_LOW, CNSS_BUS_WIDTH_MEDIUM, CNSS_BUS_WIDTH_HIGH