]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: wwan: t7xx: Change PM_AUTOSUSPEND_MS to 5000
authorJack Wu <wojackbb@gmail.com>
Thu, 14 Nov 2024 10:20:02 +0000 (18:20 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 02:38:20 +0000 (18:38 -0800)
commita0c80d5108ab36cf6cc974a24ce9c522f271d754
tree7ed32f3a0c185b7e363ffb6c5f599c4a49596fce
parent6204656478bec37a3c801cbd6a451e085bbaca41
net: wwan: t7xx: Change PM_AUTOSUSPEND_MS to 5000

Because optimizing the power consumption of t7XX,
change auto suspend time to 5000.

The Tests uses a script to loop through the power_state
of t7XX.
(for example: /sys/bus/pci/devices/0000\:72\:00.0/power_state)

* If Auto suspend is 20 seconds,
  test script show power_state have 0~5% of the time was in D3 state
  when host don't have data packet transmission.

* Changed auto suspend time to 5 seconds,
  test script show power_state have 50%~80% of the time was in D3 state
  when host don't have data packet transmission.

We tested Fibocom FM350 and our products using the t7xx and they all
benefited from this.

Signed-off-by: Jack Wu <wojackbb@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Link: https://patch.msgid.link/20241114102002.481081-1-wojackbb@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wwan/t7xx/t7xx_pci.c