[PATCH v2 0/2] i2c: eg20t: Power management upgrade and clean-ups

Vaibhav Gupta
2020-08-05T19:45:59Z

Linux Kernel Mentee: Remove Legacy Power Management.

The purpose of this patch series is to upgrade power management in i2c-eg20t
driver. This has been done by upgrading .suspend() and .resume() callbacks.

The upgrade makes sure that the involvement of PCI Core does not change the
order of operations executed in a driver. Thus, does not change its behavior.

Also, before upgrading PM, some cleanup is required. Both .suspend() and
.resume() invoke pci_enable_wake() just to disable wakeup. This is not
required as if .suspend() does not want to enable-wake the device, PCI core
takes care of the required operations.

v2 : An additional patch had to be added in v1 to drop PCI wakeup calls.

All patches are compile-tested only.

Test tools:
- Compiler: gcc (GCC) 10.1.0
- allmodconfig build: make -j$(nproc) W=1 all

Vaibhav Gupta (2):
i2c: eg20t: Drop PCI wakeup calls from .suspend/.resume
i2c: eg20t: use generic power management

drivers/i2c/busses/i2c-eg20t.c | 39 ++++++----------------------------
1 file changed, 7 insertions(+), 32 deletions(-)

--
2.27.0