mmc: sdhci-of-aspeed: Turn down a phase correction warning
authorAndrew Jeffery <andrew@aj.id.au>
Mon, 7 Jun 2021 01:30:20 +0000 (11:00 +0930)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 14 Jun 2021 11:57:44 +0000 (13:57 +0200)
commita7ab186f60785850b5af1be183867000485ad491
tree43eda0a6813d9cd8a16df8768d05db444026d56e
parent039259156b3bbe62bff3492f007f0dd247013fa6
mmc: sdhci-of-aspeed: Turn down a phase correction warning

The card timing and the bus frequency are not changed atomically with
respect to calls to the set_clock() callback in the driver. The result
is the driver sees a transient state where there's a mismatch between
the two and thus the inputs to the phase correction calculation
formula are garbage.

Switch from dev_warn() to dev_dbg() to avoid noise in the normal case,
though the change does make bad configurations less likely to be
noticed.

Reported-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210607013020.85885-1-andrew@aj.id.au
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-aspeed.c