diff mbox series

mmc: renesas_sdhi_internal_dmac: fix #define RST_RESERVED_BITS

Message ID d5574b7b-9bb6-1f24-f2b4-2036c66a2924@cogentembedded.com (mailing list archive)
State New, archived
Headers show
Series mmc: renesas_sdhi_internal_dmac: fix #define RST_RESERVED_BITS | expand

Commit Message

Sergei Shtylyov Aug. 22, 2018, 6:28 p.m. UTC
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>

---
The patch is against Ulf Hansson's 'mmc.git' repo's 'fixes' branch.

 drivers/mmc/host/renesas_sdhi_internal_dmac.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wolfram Sang Aug. 22, 2018, 7:38 p.m. UTC | #1
On Wed, Aug 22, 2018 at 09:28:01PM +0300, Sergei Shtylyov wrote:
> 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>

Suggesting stable.
Sergei Shtylyov Aug. 22, 2018, 7:41 p.m. UTC | #2
On 08/22/2018 10:38 PM, Wolfram Sang wrote:

>> 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>
> 
> Suggesting stable.

   Stable looks at the Fixes: tags now. Should I add that?

MBR, Sergei
Wolfram Sang Aug. 22, 2018, 7:45 p.m. UTC | #3
On Wed, Aug 22, 2018 at 10:41:56PM +0300, Sergei Shtylyov wrote:
> On 08/22/2018 10:38 PM, Wolfram Sang wrote:
> 
> >> 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>
> > 
> > Suggesting stable.
> 
>    Stable looks at the Fixes: tags now. Should I add that?

Yes, that would be great IMHO.
Sergei Shtylyov Aug. 22, 2018, 8:03 p.m. UTC | #4
On 08/22/2018 10:45 PM, Wolfram Sang wrote:

>>>> 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>
>>>
>>> Suggesting stable.
>>
>>    Stable looks at the Fixes: tags now. Should I add that?
> 
> Yes, that would be great IMHO.

Fixes: 2a68ea7896e3 ("mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC")

   Hopefully, Ulf uses patchwork. :-)

MBR, Sergei
Ulf Hansson Aug. 23, 2018, 10:43 a.m. UTC | #5
On 22 August 2018 at 22:03, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> On 08/22/2018 10:45 PM, Wolfram Sang wrote:
>
>>>>> 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>
>>>>
>>>> Suggesting stable.
>>>
>>>    Stable looks at the Fixes: tags now. Should I add that?
>>
>> Yes, that would be great IMHO.
>
> Fixes: 2a68ea7896e3 ("mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC")
>
>    Hopefully, Ulf uses patchwork. :-)

I do. However, fixes tags doesn't seem to get picked up. Anyway, it's
easy for me to add them.

Applied for fixes, thanks!

Kind regards
Uffe
Sergei Shtylyov Aug. 23, 2018, 11:16 a.m. UTC | #6
On 08/23/2018 01:43 PM, Ulf Hansson wrote:

>>>>>> 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>
>>>>>
>>>>> Suggesting stable.
>>>>
>>>>    Stable looks at the Fixes: tags now. Should I add that?
>>>
>>> Yes, that would be great IMHO.
>>
>> Fixes: 2a68ea7896e3 ("mmc: renesas-sdhi: add support for R-Car Gen3 SDHI DMAC")
>>
>>    Hopefully, Ulf uses patchwork. :-)
> 
> I do. However, fixes tags doesn't seem to get picked up. Anyway, it's

   I figured after writing... only patchwork.ozlabs.org seems to pick those up.

> easy for me to add them.
> 
> Applied for fixes, thanks!

   Thank you!

> Kind regards
> Uffe

MBR, Sergei
diff mbox series

Patch

Index: mmc/drivers/mmc/host/renesas_sdhi_internal_dmac.c
===================================================================
--- mmc.orig/drivers/mmc/host/renesas_sdhi_internal_dmac.c
+++ mmc/drivers/mmc/host/renesas_sdhi_internal_dmac.c
@@ -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