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

Commit 2f62759c authored by Conner Huff's avatar Conner Huff Committed by Subash Abhinov Kasiviswanathan
Browse files

soc: qcom: Add support for power collapse



Adds handling interfaces between kernel clients and rmnet
driver. It enables the rmnet driver to create/delete DFC/WDA
clients and provides the common functionality for data flow control
and power save features

CRs-Fixed: 2277101
Change-Id: I212f00c7b68cc89371b7c90378616133534d7cc3
Acked-by: default avatarNing Cai <ncai@qti.qualcomm.com>
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: default avatarConner Huff <chuff@codeaurora.org>
parent 23cc55e8
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -519,8 +519,6 @@ CONFIG_QCOM_LLCC=y
CONFIG_QCOM_SM8150_LLCC=y
CONFIG_QCOM_SM8150_LLCC=y
CONFIG_QCOM_LLCC_PERFMON=m
CONFIG_QCOM_LLCC_PERFMON=m
CONFIG_QCOM_QMI_HELPERS=y
CONFIG_QCOM_QMI_HELPERS=y
CONFIG_QCOM_QMI_DFC=y
CONFIG_QCOM_QMI_POWER_COLLAPSE=y
CONFIG_QCOM_SMEM=y
CONFIG_QCOM_SMEM=y
CONFIG_QCOM_MEMORY_DUMP_V2=y
CONFIG_QCOM_MEMORY_DUMP_V2=y
CONFIG_QCOM_WATCHDOG_V2=y
CONFIG_QCOM_WATCHDOG_V2=y
+0 −2
Original line number Original line Diff line number Diff line
@@ -541,8 +541,6 @@ CONFIG_QCOM_LLCC=y
CONFIG_QCOM_SM8150_LLCC=y
CONFIG_QCOM_SM8150_LLCC=y
CONFIG_QCOM_LLCC_PERFMON=m
CONFIG_QCOM_LLCC_PERFMON=m
CONFIG_QCOM_QMI_HELPERS=y
CONFIG_QCOM_QMI_HELPERS=y
CONFIG_QCOM_QMI_DFC=y
CONFIG_QCOM_QMI_POWER_COLLAPSE=y
CONFIG_QCOM_SMEM=y
CONFIG_QCOM_SMEM=y
CONFIG_QCOM_MEMORY_DUMP_V2=y
CONFIG_QCOM_MEMORY_DUMP_V2=y
CONFIG_QCOM_WATCHDOG_V2=y
CONFIG_QCOM_WATCHDOG_V2=y
+1 −1
Original line number Original line Diff line number Diff line
@@ -481,7 +481,7 @@ int rmnet_del_bridge(struct net_device *rmnet_dev,
	return 0;
	return 0;
}
}


#ifdef CONFIG_QCOM_QMI_DFC
#ifdef CONFIG_QCOM_QMI_RMNET
void *rmnet_get_qmi_pt(void *port)
void *rmnet_get_qmi_pt(void *port)
{
{
	if (port)
	if (port)
+17 −8
Original line number Original line Diff line number Diff line
@@ -149,10 +149,19 @@ config QCOM_QMI_HELPERS
	  clients and this helpers provide the common functionality needed for
	  clients and this helpers provide the common functionality needed for
	  doing this from a kernel driver.
	  doing this from a kernel driver.


config QCOM_QMI_DFC
config QCOM_QMI_RMNET
	bool "Enable burst mode flow control"
	bool "QTI QMI Rmnet Helpers"
	depends on QCOM_QMI_HELPERS
	depends on QCOM_QMI_HELPERS
	depends on RMNET
	depends on RMNET
	help
	  Helper for handling interfaces between kernel clients and rmnet
	  driver. It enables the rmnet driver to create/delete DFC/WDA
	  clients and provides the common functionality for data flow control
	  and power save features.

config QCOM_QMI_DFC
	bool "Enable burst mode flow control"
	depends on QCOM_QMI_RMNET
	help
	help
	  Say y here to enable support for burst mode data flow control.
	  Say y here to enable support for burst mode data flow control.
	  DFC client provides an interface to the modem dfc service and
	  DFC client provides an interface to the modem dfc service and
@@ -161,13 +170,13 @@ config QCOM_QMI_DFC
	  If unsure or not use burst mode flow control, say 'N'.
	  If unsure or not use burst mode flow control, say 'N'.


config QCOM_QMI_POWER_COLLAPSE
config QCOM_QMI_POWER_COLLAPSE
	bool "Enable power collapse feature"
	bool "Enable power save features"
	depends on QCOM_QMI_DFC
	depends on QCOM_QMI_RMNET
	help
	help
	  Say y here to enable support for power collapse.
	  Say y here to enable support for power save features.
	  It is to register/unregister the flow status indication callback
	  It provides an interface to offload uplink flow control based on
	  based on detected flow status.
	  detected flow status.
	  If unsure or not use power collapse feature, say 'N'.
	  If unsure or not use power save feature, say 'N'.


config QCOM_SMEM
config QCOM_SMEM
	tristate "Qualcomm Shared Memory Manager (SMEM)"
	tristate "Qualcomm Shared Memory Manager (SMEM)"
+2 −1
Original line number Original line Diff line number Diff line
@@ -15,8 +15,9 @@ obj-$(CONFIG_QCOM_PM) += spm.o
obj-$(CONFIG_QCOM_QMI_HELPERS)	+= qmi_helpers.o
obj-$(CONFIG_QCOM_QMI_HELPERS)	+= qmi_helpers.o
qmi_helpers-y += qmi_encdec.o
qmi_helpers-y += qmi_encdec.o
qmi_helpers-y += qmi_interface.o
qmi_helpers-y += qmi_interface.o
obj-$(CONFIG_QCOM_QMI_DFC)	+= qmi_rmnet.o
obj-$(CONFIG_QCOM_QMI_RMNET)	+= qmi_rmnet.o
obj-$(CONFIG_QCOM_QMI_DFC)	+= dfc_qmi.o
obj-$(CONFIG_QCOM_QMI_DFC)	+= dfc_qmi.o
obj-$(CONFIG_QCOM_QMI_POWER_COLLAPSE) += wda_qmi.o
obj-$(CONFIG_QCOM_SMD_RPM)	+= smd-rpm.o
obj-$(CONFIG_QCOM_SMD_RPM)	+= smd-rpm.o
obj-$(CONFIG_QCOM_SMEM) +=	smem.o
obj-$(CONFIG_QCOM_SMEM) +=	smem.o
obj-$(CONFIG_MSM_SPM) += msm-spm.o spm_devices.o
obj-$(CONFIG_MSM_SPM) += msm-spm.o spm_devices.o
Loading