]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: imx6: Turn off regulator when system is in suspend mode
authorRichard Zhu <hongxing.zhu@nxp.com>
Thu, 14 Jul 2022 07:31:02 +0000 (15:31 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 1 Aug 2022 20:33:42 +0000 (15:33 -0500)
commit21936c7b9700f80c8ab79580a3094fbacb38ecbe
treed65c2590ccde10bfeb583002b8e916ec5c20cff3
parent2d34f8c91223c2c8c89a591b63e5d0d4b3578ecd
PCI: imx6: Turn off regulator when system is in suspend mode

The driver should undo any enables it did itself. The regulator disable
shouldn't be basing decisions on regulator_is_enabled().

Move the regulator_disable to the suspend function, turn off regulator when
the system is in suspend mode.

Link: https://lore.kernel.org/r/1657783869-19194-11-git-send-email-hongxing.zhu@nxp.com
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pci-imx6.c