提交 5d896570 编写于 作者: I Ilya Lipnitskiy 提交者: Thomas Bogendoerfer

MIPS: ralink: mt7621: use bitwise NOT instead of logical

It was the intention to reverse the bits, not make them all zero by
using logical NOT operator.

Fixes: cc19db8b ("MIPS: ralink: mt7621: do memory detection on KSEG1")
Suggested-by: NChuanhong Guo <gch981213@gmail.com>
Signed-off-by: NIlya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Reviewed-by: NSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
上级 1e6ae0e4
......@@ -69,7 +69,7 @@ static bool __init mt7621_addr_wraparound_test(phys_addr_t size)
__raw_writel(MT7621_MEM_TEST_PATTERN, dm);
if (__raw_readl(dm) != __raw_readl(dm + size))
return false;
__raw_writel(!MT7621_MEM_TEST_PATTERN, dm);
__raw_writel(~MT7621_MEM_TEST_PATTERN, dm);
return __raw_readl(dm) == __raw_readl(dm + size);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册