Message ID | 20230207173051.449151-1-krzysztof.kozlowski@linaro.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 637581ce60403a27712c657453a210c8fd17cc66 |
Headers | show |
Series | [PULL] memory: renesas-rpc-if: Remove redundant division of dummy | expand |
Hello: This patch was applied to soc/soc.git (for-next) by Arnd Bergmann <arnd@arndb.de>: On Tue, 7 Feb 2023 18:30:51 +0100 you wrote: > From: Cong Dang <cong.dang.xn@renesas.com> > > The dummy cycles value was wrongly calculated if dummy.buswidth > 1, > which affects QSPI, OSPI, HyperFlash on various SoCs. We're lucky in > Single SPI case since its dummy.buswidth equals to 1, so the result of > the division is unchanged > > [...] Here is the summary with links: - [PULL] memory: renesas-rpc-if: Remove redundant division of dummy https://git.kernel.org/soc/soc/c/637581ce6040 You are awesome, thank you!
diff --git a/drivers/memory/renesas-rpc-if.c b/drivers/memory/renesas-rpc-if.c index 62b06041d758..025bb628aaf3 100644 --- a/drivers/memory/renesas-rpc-if.c +++ b/drivers/memory/renesas-rpc-if.c @@ -435,8 +435,7 @@ void rpcif_prepare(struct device *dev, const struct rpcif_op *op, u64 *offs, if (op->dummy.buswidth) { rpc->enable |= RPCIF_SMENR_DME; - rpc->dummy = RPCIF_SMDMCR_DMCYC(op->dummy.ncycles / - op->dummy.buswidth); + rpc->dummy = RPCIF_SMDMCR_DMCYC(op->dummy.ncycles); } if (op->option.buswidth) {