Skip to content

Commit fd820a1

Browse files
Uwe Kleine-Königtmlind
authored andcommitted
memory: omap-gpmc: dump "before" state before first modification
When gpmc_cs_show_timings is called in gpmc_cs_set_timings() gpmc_cs_program_settings() was already run which modifies the CONFIG1 register. So to be more useful do the "before" dump earlier. Signed-off-by: Uwe Kleine-König <[email protected]> Acked-by: Roger Quadros <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent be59b61 commit fd820a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/omap-gpmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,6 @@ int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t,
696696
int div;
697697
u32 l;
698698

699-
gpmc_cs_show_timings(cs, "before gpmc_cs_set_timings");
700699
div = gpmc_calc_divider(t->sync_clk);
701700
if (div < 0)
702701
return div;
@@ -1988,6 +1987,7 @@ static int gpmc_probe_generic_child(struct platform_device *pdev,
19881987
if (ret < 0)
19891988
goto err;
19901989

1990+
gpmc_cs_show_timings(cs, "before gpmc_cs_program_settings");
19911991
ret = gpmc_cs_program_settings(cs, &gpmc_s);
19921992
if (ret < 0)
19931993
goto err;

0 commit comments

Comments
 (0)