mmc: meson-gx: make replace WARN_ONCE with dev_warn_once about scatterlist offset...
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 26 Apr 2021 17:55:58 +0000 (19:55 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 May 2021 12:28:56 +0000 (14:28 +0200)
commitcabb1bb60e88ccaaa122ba01862403cd44e8e8f8
tree54c32136d8f6f2a2a9343be8024ac509ce435ea8
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
mmc: meson-gx: make replace WARN_ONCE with dev_warn_once about scatterlist offset alignment

Some drivers like ath10k can sometimg give an sg buffer with an offset whose alignment
is not compatible with the Amlogic DMA descriptor engine requirements.

Simply replace with dev_warn_once() to inform user this should be fixed to avoid
degraded performance.

This should be ultimately fixed in ath10k, but since it's only a performance issue
the warning should be removed.

Fixes: 79ed05e329c3 ("mmc: meson-gx: add support for descriptor chain mode")
Cc: stable@vger.kernel.org
Reported-by: Christian Hewitt <christianshewitt@gmail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20210426175559.3110575-1-narmstrong@baylibre.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c