[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200805193616.384313-1-vaibhavgupta40@gmail.com>
Date: Thu, 6 Aug 2020 01:06:14 +0530
From: Vaibhav Gupta <vaibhavgupta40@...il.com>
To: Bjorn Helgaas <helgaas@...nel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Vaibhav Gupta <vaibhav.varodek@...il.com>,
Tomoya MORINAGA <tomoya-linux@....okisemi.com>,
Tomoya MORINAGA <tomoya.rohm@...il.com>,
Linus Walleij <linus.walleij@...aro.org>,
Ben Dooks <ben.dooks@...ethink.co.uk>
Cc: Vaibhav Gupta <vaibhavgupta40@...il.com>,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
Shuah Khan <skhan@...uxfoundation.org>
Subject: [PATCH v2 0/2] i2c: eg20t: Power management upgrade and clean-ups
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
Powered by blists - more mailing lists