]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi: renesas: Write DRDMCR register once
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 31 Aug 2024 20:31:45 +0000 (22:31 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 8 Sep 2024 23:10:33 +0000 (01:10 +0200)
commit3fba388e611e27e663c7cb4c1d1483e8909bdbc0
treecac6bad3adc685fbf89466cd71dbbd0ea7ec2774
parent1cc7c7e119a31c64cf64d887374c95b58ffe9993
mtd: spi: renesas: Write DRDMCR register once

Instead of writing DRDMCR with 0 first and then overwriting DRDMCR again
in case any dummy bytes have to be sent out, write DRDMCR in every case
with the amount of dummy bytes that have to be sent out. In case no dummy
bytes have to be sent out, the value written into DRDMCR is zero, so no
dummy bytes are sent out. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/spi/renesas_rpc_spi.c