]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI: dra7xx: Clear MSE bit during suspend so clocks will idle
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 31 Jul 2015 12:25:12 +0000 (17:55 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 11 Aug 2015 20:50:20 +0000 (15:50 -0500)
commit389c7094ec241ee8ebe358ba10fe392018692c8c
treef7a3431b6b8128e22367acc3785d9ec2edcdabb8
parente52eb445ea1d97bf7fb92d2297e487a305392136
PCI: dra7xx: Clear MSE bit during suspend so clocks will idle

DRA7xx requires the MSE bit to be cleared to set the master in standby
mode.  (In DRA7xx TRM_vE, section 24.9.4.5.2.2.1 PCIe Controller Master
Standby Behavior advises to use the clearing of the local MSE bit to set
the master in standby.  Without this some of the clocks do not idle).

Clear the MSE bit on suspend and enable it on resume.  Clearing MSE bit is
required to get clocks to be idled after suspend.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jingoo Han <jingoohan1@gmail.com>
drivers/pci/host/pci-dra7xx.c