net: wwan: iosm: enable runtime pm support for 7560
authorM Chetan Kumar <m.chetan.kumar@linux.intel.com>
Thu, 8 Jun 2023 10:08:03 +0000 (15:38 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jun 2023 07:49:22 +0000 (08:49 +0100)
commite4f5073d53be6cec0c654fac98372047efb66947
tree83f840663aead369c60bf90ab31a17b20d979c80
parentcbb1ca6d5f9a5a4972c4466a4b61e5bed1f4690f
net: wwan: iosm: enable runtime pm support for 7560

Adds runtime pm support for 7560.

As part of probe procedure auto suspend is enabled and auto suspend
delay is set to 5000 ms for runtime pm use. Later auto flag is set
to power manage the device at run time.

On successful communication establishment between host and device the
device usage counter is dropped and request to put the device into
sleep state (suspend).

In TX path, the device usage counter is raised and device is moved out
of sleep(resume) for data transmission. In RX path, if the device has
some data to be sent it request host platform to change the power state
by giving PCI PME message.

Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/iosm/iosm_ipc_imem.c
drivers/net/wwan/iosm/iosm_ipc_imem.h
drivers/net/wwan/iosm/iosm_ipc_pcie.c
drivers/net/wwan/iosm/iosm_ipc_port.c
drivers/net/wwan/iosm/iosm_ipc_trace.c
drivers/net/wwan/iosm/iosm_ipc_wwan.c