All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rockchip: efuse: fix rk3399 reading multiple values
@ 2023-04-17 16:09 John Keeping
  2023-04-17 17:39 ` Jonas Karlman
  0 siblings, 1 reply; 7+ messages in thread
From: John Keeping @ 2023-04-17 16:09 UTC (permalink / raw)
  To: u-boot; +Cc: John Keeping, Simon Glass, Philipp Tomsich, Kever Yang

Update rk3399 to match the pattern in the other device-specific
implementations to ensure the previous address is cleared when reading
multiple blocks.

Signed-off-by: John Keeping <john@metanate.com>
---
 drivers/misc/rockchip-efuse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c
index 2f96b79ea4..d302271239 100644
--- a/drivers/misc/rockchip-efuse.c
+++ b/drivers/misc/rockchip-efuse.c
@@ -207,8 +207,8 @@ static int rockchip_rk3399_efuse_read(struct udevice *dev, int offset,
 	udelay(1);
 
 	while (size--) {
-		setbits_le32(efuse->base + EFUSE_CTRL,
-			     EFUSE_STROBE | RK3399_ADDR(offset++));
+		clrsetbits_le32(efuse->base + EFUSE_CTRL, RK3399_A_MASK,
+				EFUSE_STROBE | RK3399_ADDR(offset++));
 		udelay(1);
 		*buffer++ = readl(efuse->base + EFUSE_DOUT);
 		clrbits_le32(efuse->base + EFUSE_CTRL, EFUSE_STROBE);
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-04-20 11:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-17 16:09 [PATCH] rockchip: efuse: fix rk3399 reading multiple values John Keeping
2023-04-17 17:39 ` Jonas Karlman
2023-04-17 17:58   ` John Keeping
2023-04-17 18:19     ` Jonas Karlman
2023-04-18 12:48       ` Jonas Karlman
2023-04-20 11:16     ` John Keeping
2023-04-20 11:30       ` Jonas Karlman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.