Revert "video: tegra: dc: use highest bandwidth setting"
Jon Mayo [Fri, 6 Jan 2012 20:08:07 +0000 (12:08 -0800)]
This reverts commit af9a6eb54c031a8cca1477134d07e1ef2b807be3.

Test reports were inconclusive on the effectiveness of this change.

Change-Id: I859a14d2e2dcd9eed3a1c64f35e4f1c077660311
Reviewed-on: http://git-master/r/74021
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Reviewed-on: http://git-master/r/74550
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jon Mayo <jmayo@nvidia.com>

drivers/video/tegra/dc/dc.c

index e9bbf11..87ef9c4 100644 (file)
@@ -977,24 +977,6 @@ unsigned long tegra_dc_get_bandwidth(struct tegra_dc_win *windows[], int n)
        return tegra_dc_find_max_bandwidth(windows, n);
 }
 
-/* program bandwidth needs if higher than old bandwidth */
-static void tegra_dc_increase_bandwidth(struct tegra_dc *dc)
-{
-       unsigned i;
-
-       if (dc->emc_clk_rate < dc->new_emc_clk_rate) {
-               dc->emc_clk_rate = dc->new_emc_clk_rate;
-               clk_set_rate(dc->emc_clk, dc->emc_clk_rate);
-       }
-
-       for (i = 0; i < DC_N_WINDOWS; i++) {
-               struct tegra_dc_win *w = &dc->windows[i];
-               if (w->bandwidth < w->new_bandwidth && w->new_bandwidth != 0)
-                       tegra_dc_set_latency_allowance(dc, w);
-       }
-}
-
-/* program the current bandwidth */
 static void tegra_dc_program_bandwidth(struct tegra_dc *dc)
 {
        unsigned i;
@@ -1252,7 +1234,6 @@ int tegra_dc_update_windows(struct tegra_dc_win *windows[], int n)
        }
 
        tegra_dc_set_dynamic_emc(windows, n);
-       tegra_dc_increase_bandwidth(dc);
 
        tegra_dc_writel(dc, update_mask << 8, DC_CMD_STATE_CONTROL);