]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
arm: tegra: power: add reference counters for pcie
authorHaribabu Narayanan <hnarayanan@nvidia.com>
Tue, 3 Jun 2014 01:39:57 +0000 (18:39 -0700)
committerMatthew Pedro <mapedro@nvidia.com>
Wed, 17 Sep 2014 04:33:28 +0000 (21:33 -0700)
commita88ce700174d1957f7378f07ceb1f3c1e46cae98
tree8549516baaa12f90b1932d4f574976ff3ce1acb7
parent1eb27a70ed42f6594a84c4c90cd04f2189241c1a
arm: tegra: power: add reference counters for pcie

Due to HW Bug 1320346, both XUSB and PCIE modules need to control powergating
on PCIE block.  Implement reference counter mechanism so that powergating is
done only when neither of these two drivers are active.

Bug 1451279
Bug 1455032
Bug 200027067

Change-Id: I6866ba0fb47433e211360b722abbb1b2c1a05c35
Reviewed-on: http://git-master/r/418060
(cherry picked from commit 70be55b824632252be36f6ee0d495d4c0f4e507c)
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/498659
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
arch/arm/mach-tegra/powergate-t12x.c
include/linux/tegra-powergate.h