]> git.baikalelectronics.ru Git - kernel.git/commit
parport: PCI core handles power state for us
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Wed, 7 Feb 2018 19:47:52 +0000 (19:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Mar 2018 16:54:09 +0000 (17:54 +0100)
commit4f2f03e9e62e503a0bce458e392a37dbe2aacbc7
tree5082b50231f96e83ebe3ba3e69c02aed9f475bbb
parent56eb69ff3525deec297f97a644345e4c7f4eebb2
parport: PCI core handles power state for us

There is no need to repeat the work that is already done in the PCI
driver core. The patch removes excerpts from suspend and resume
callbacks.

Note that there is no more calls performed to enable or disable a PCI
device during suspend-resume cycle. Nowadays they seems to be
superflous. Someone can read more in [1].

While here, convert calls to new driver API.

[1] https://www.kernel.org/doc/ols/2009/ols2009-pages-319-330.pdf

Tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/parport_serial.c