Skip to content

Commit bd1300e

Browse files
Patrice Chotardgregkh
authored andcommitted
memory: stm32_omm: Fix req2ack update test
commit d140f3b upstream. If "st,omm-req2ack-ns" property is found and its value is not 0, the current test doesn't allow to compute and set req2ack value, Fix this test. Fixes: 8181d06 ("memory: Add STM32 Octo Memory Manager driver") Signed-off-by: Patrice Chotard <[email protected]> Link: https://lore.kernel.org/r/20250807-upstream_omm_fix_req2ack_test_condition-v2-1-d7df4af2b48b@foss.st.com Cc: <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a4df83a commit bd1300e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/memory/stm32_omm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ static int stm32_omm_configure(struct device *dev)
238238
if (mux & CR_MUXEN) {
239239
ret = of_property_read_u32(dev->of_node, "st,omm-req2ack-ns",
240240
&req2ack);
241-
if (!ret && !req2ack) {
241+
if (!ret && req2ack) {
242242
req2ack = DIV_ROUND_UP(req2ack, NSEC_PER_SEC / clk_rate_max) - 1;
243243

244244
if (req2ack > 256)

0 commit comments

Comments
 (0)