Commit dd303e02 authored by Ivaylo Ivanov's avatar Ivaylo Ivanov Committed by Krzysztof Kozlowski
Browse files

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: 11e77776 ("soc: samsung: usi: add a routine for unconfiguring the ip")
Signed-off-by: default avatarIvaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
Link: https://lore.kernel.org/r/20250413163755.788907-1-ivo.ivanov.ivanov1@gmail.com


Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 2908ffa5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ static void exynos_usi_unconfigure(void *data)
	/* Make sure that we've stopped providing the clock to USI IP */
	val = readl(usi->regs + USI_OPTION);
	val &= ~USI_OPTION_CLKREQ_ON;
	val |= ~USI_OPTION_CLKSTOP_ON;
	val |= USI_OPTION_CLKSTOP_ON;
	writel(val, usi->regs + USI_OPTION);

	/* Set USI block state to reset */