ARM: tegra: disable powergate spew
Bitan Biswas [Mon, 8 Oct 2012 14:15:21 +0000 (19:15 +0530)]
Disable powergate spew "already powered-off unpowergating" for tegra11x

bug 1060652

Reviewed-on: http://git-master/r/142393
(cherry picked from commit a65df4fc7a98fb0431129950893f8b30dcbfc055)

Change-Id: I38e02e7eb197a1446f9bcb3e2a8c38ac128338b2
Signed-off-by: rrajk <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/146450
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: Ra4670065c8fe82211e6b16c57b7de58b393ca8a3

arch/arm/mach-tegra/powergate.c

index 52bbb61..d422a70 100644 (file)
@@ -1131,13 +1131,8 @@ static bool skip_pg_check(int id, bool is_unpowergate)
        }
        /* unpowergate is allowed for all partitions */
        if (!tegra_powergate_is_powered(id) &&
-               is_unpowergate) {
-               pr_err("Partition %s already powered-%s unpowergating\n",
-                       tegra_powergate_get_name(id),
-                       (tegra_powergate_is_powered(id)) ?
-                       "on" : "off");
+               is_unpowergate)
                return false;
-       }
        for (i = 0; i < tegra_num_powerdomains; i++) {
                if (id == skip_pg_t11x_list[i]) {
                        pr_err("Partition %s %spowergate skipped\n",