mmc: zynq_sdhci: Use Mask writes for Tap delays
authorAshok Reddy Soma <ashok.reddy.soma@xilinx.com>
Fri, 9 Jul 2021 11:53:41 +0000 (05:53 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 26 Jul 2021 07:18:45 +0000 (09:18 +0200)
commitee9ae005dc4cbd0a9a792c0b78385055f18b9a8a
tree22f3679579c0e6465eb7f9c9889d2111799c17e6
parentaffcba728b90428f38e6ea6b945935146c8f3dcb
mmc: zynq_sdhci: Use Mask writes for Tap delays

Restrict tap_delay value to the allowed size(8bits for itap and 6 bits
for otap) before writing to the tap delay register.

Clear ITAP and OTAP delay bits before updating with the new tap value
for Versal platform.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mmc/zynq_sdhci.c