mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] memory: renesas-rpc-if: Fix missing setting address
@ 2022-11-23  2:51 JaimeLiao
  2022-12-27  8:59 ` Krzysztof Kozlowski
  2023-01-23 10:44 ` Geert Uytterhoeven
  0 siblings, 2 replies; 4+ messages in thread
From: JaimeLiao @ 2022-11-23  2:51 UTC (permalink / raw)
  To: linux-kernel, krzysztof.kozlowski
  Cc: jaimeliao, leoyu, alvinzhou, juliensu, JaimeLiao

In the RPC manual mode, if the data direction is not set
(such as the flash erase command), the address misses the
setting.

Signed-off-by: JaimeLiao <jaimeliao.tw@gmail.com>
---
 drivers/memory/renesas-rpc-if.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-if.c
index 4316988d791a..bdf0a7f68ff2 100644
--- a/drivers/memory/renesas-rpc-if.c
+++ b/drivers/memory/renesas-rpc-if.c
@@ -571,6 +571,7 @@ int rpcif_manual_xfer(struct rpcif *rpc)
 		}
 		break;
 	default:
+		regmap_write(rpc->regmap, RPCIF_SMADR, rpc->smadr);
 		regmap_write(rpc->regmap, RPCIF_SMENR, rpc->enable);
 		regmap_write(rpc->regmap, RPCIF_SMCR,
 			     rpc->smcr | RPCIF_SMCR_SPIE);
-- 
2.17.1


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

end of thread, other threads:[~2023-01-23 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23  2:51 [PATCH] memory: renesas-rpc-if: Fix missing setting address JaimeLiao
2022-12-27  8:59 ` Krzysztof Kozlowski
2023-01-23 10:47   ` Krzysztof Kozlowski
2023-01-23 10:44 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®