Skip to content

Commit 4bff721

Browse files
Bernard Zhaokrzk
authored andcommitted
memory: samsung: exynos5422-dmc: Fix tFAW timings alignment
Aligning of tFAW timing with standard was using wrong argument as minimum acceptable value. This could lead to wrong timing if provided timings and clock period do not match the standard. Fixes: 6e7674c ("memory: Add DMC driver for Exynos5422") Cc: <[email protected]> Signed-off-by: Bernard Zhao <[email protected]> Reviewed-by: Lukasz Luba <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 8f3d9f3 commit 4bff721

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/samsung/exynos5422-dmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ static int create_timings_aligned(struct exynos5_dmc *dmc, u32 *reg_timing_row,
10911091
/* power related timings */
10921092
val = dmc->timings->tFAW / clk_period_ps;
10931093
val += dmc->timings->tFAW % clk_period_ps ? 1 : 0;
1094-
val = max(val, dmc->min_tck->tXP);
1094+
val = max(val, dmc->min_tck->tFAW);
10951095
reg = &timing_power[0];
10961096
*reg_timing_power |= TIMING_VAL2REG(reg, val);
10971097

0 commit comments

Comments
 (0)