Skip to content

Commit dd303e0

Browse files
ivoszbgkrzk
authored andcommitted
soc: samsung: usi: prevent wrong bits inversion during unconfiguring
Instead of setting bit 1 (USI_OPTION_CLKSTOP_ON) during USI unconfiguring, all the other bits in the USI_OPTION register get inverted, which should not happen as that means the clock will keep getting provided to the USI IP. Remove the unnecessary tilde. Fixes: 11e7777 ("soc: samsung: usi: add a routine for unconfiguring the ip") Signed-off-by: Ivaylo Ivanov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 2908ffa commit dd303e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/samsung/exynos-usi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static void exynos_usi_unconfigure(void *data)
233233
/* Make sure that we've stopped providing the clock to USI IP */
234234
val = readl(usi->regs + USI_OPTION);
235235
val &= ~USI_OPTION_CLKREQ_ON;
236-
val |= ~USI_OPTION_CLKSTOP_ON;
236+
val |= USI_OPTION_CLKSTOP_ON;
237237
writel(val, usi->regs + USI_OPTION);
238238

239239
/* Set USI block state to reset */

0 commit comments

Comments
 (0)