diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-04-24 18:00:10 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-03 11:23:14 +0200 |
commit | 49d98a8e1f55f8406c45ce2b88eb4912d9877f67 (patch) | |
tree | 8c065ffb0c603a2c97c9bf51f7ff278bdf51612f | |
parent | 099fae46d8dfed70744321bbbd265cc7af2982f3 (diff) | |
download | linux-stable-49d98a8e1f55f8406c45ce2b88eb4912d9877f67.tar.gz linux-stable-49d98a8e1f55f8406c45ce2b88eb4912d9877f67.tar.bz2 linux-stable-49d98a8e1f55f8406c45ce2b88eb4912d9877f67.zip |
mfd: intel-lpss: Program REMAP register in PIO mode
commit d28b62520830b2d0bffa2d98e81afc9f5e537e8b upstream.
According to documentation REMAP register has to be programmed in
either DMA or PIO mode of the slice.
Move the DMA capability check below to let REMAP register be programmed
in PIO mode.
Cc: stable@vger.kernel.org # 4.3+
Fixes: 4b45efe85263 ("mfd: Add support for Intel Sunrisepoint LPSS devices")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/mfd/intel-lpss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c index 70c646b0097d..19ac8bc8e7ea 100644 --- a/drivers/mfd/intel-lpss.c +++ b/drivers/mfd/intel-lpss.c @@ -275,11 +275,11 @@ static void intel_lpss_init_dev(const struct intel_lpss *lpss) intel_lpss_deassert_reset(lpss); + intel_lpss_set_remap_addr(lpss); + if (!intel_lpss_has_idma(lpss)) return; - intel_lpss_set_remap_addr(lpss); - /* Make sure that SPI multiblock DMA transfers are re-enabled */ if (lpss->type == LPSS_DEV_SPI) writel(value, lpss->priv + LPSS_PRIV_SSP_REG); |