mmc: renesas_sdhi_internal_dmac: fix #define RST_RESERVED_BITS
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 22 Aug 2018 18:28:01 +0000 (21:28 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 23 Aug 2018 07:58:12 +0000 (09:58 +0200)
The DM_CM_RST register actually has bits 0-31 defaulting to 1s and bits
32-63 defaulting to 0s -- fix off-by-one in #define RST_RESERVED_BITS.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Fixes: 2a68ea7896e3 ("mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC")
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_internal_dmac.c

index 35cc0de6be67a5159a572612ab028ae43d1a84bc..f16677f424b93a0167ed33b10845d731d5e61593 100644 (file)
@@ -45,7 +45,7 @@
 /* DM_CM_RST */
 #define RST_DTRANRST1          BIT(9)
 #define RST_DTRANRST0          BIT(8)
-#define RST_RESERVED_BITS      GENMASK_ULL(32, 0)
+#define RST_RESERVED_BITS      GENMASK_ULL(31, 0)
 
 /* DM_CM_INFO1 and DM_CM_INFO1_MASK */
 #define INFO1_CLEAR            0