mmc: sdhci-of-arasan: fix timings allocation code
authorManish Narani <manish.narani@xilinx.com>
Tue, 14 Jul 2020 19:12:33 +0000 (00:42 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jul 2020 09:53:33 +0000 (11:53 +0200)
commit88e1d0b175ec0bfa775c8629eae2a728726e2c6a
treebbd6faf9723d8acbbd09bf6bf160fd320ba74591
parent907be2a62e4522c3dc3c298a213ccc741bd22732
mmc: sdhci-of-arasan: fix timings allocation code

The initial code that was adding delays was doing a cast over undefined
memory. This meant that the delays would be all gibberish.

This change, allocates all delays on the stack, and assigns them from the
ZynqMP & Versal macros/phase-list. And then finally copies them over the
common iclk_phase & oclk_phase variables.

Signed-off-by: Manish Narani <manish.narani@xilinx.com>
Link: https://lore.kernel.org/r/1594753953-62980-1-git-send-email-manish.narani@xilinx.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-arasan.c