Skip to contentSkip to conversation

spi: dw-mmio: add MSCC Jaguar2 support]

PATCH In review Andy Shevchenko 4 participants 5 messages Aug 29, 2018 – Aug 30, 2018 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: dw-mmio: add MSCC Jaguar2 support]

----- Forwarded message from Andy Shevchenko <[email protected]> -----

Date: Wed, 29 Aug 2018 18:08:31 +0300
From: Andy Shevchenko <[email protected]>
To: Alexandre Belloni <[email protected]>
Subject: Re: [PATCH] spi: dw-mmio: add MSCC Jaguar2 support
User-Agent: Mutt/1.10.1 (2018-07-13)

Review

Quoted 7 lines · Alexandre Belloni

Unfortunately, the Jaguar2 CPU_SYSTEM_CTRL register set has a different layout than the Ocelot one. Handle that while keeping most of the code common.

(quoted diff) +1 -1
-#define OCELOT_IF_SI_OWNER_MASK			GENMASK(5, 4)
 
+			   0x3 << if_si_owner_offset,

Perhaps,

#define MSCC_IF_SI_OWNER_MASK GENMASK(1, 0)

...

MSCC_IF_SI_OWNER_MASK << if_si_owner_offset,

Signature · 10 lines
With Best Regards,
Andy Shevchenko



----- End forwarded message -----

-- 
With Best Regards,
Andy Shevchenko
maintainer
#1 lore raw
Quoted 13 lines · Andy Shevchenko

----- Forwarded message from Andy Shevchenko <[email protected]> -----

Date: Wed, 29 Aug 2018 18:08:31 +0300
From: Andy Shevchenko <[email protected]>
To: Alexandre Belloni <[email protected]>
Subject: Re: [PATCH] spi: dw-mmio: add MSCC Jaguar2 support
User-Agent: Mutt/1.10.1 (2018-07-13)

Quoted 3 lines · Alexandre Belloni

Unfortunately, the Jaguar2 CPU_SYSTEM_CTRL register set has a different layout than the Ocelot one. Handle that while keeping most of the code common.

Quoted 7 lines

Review

Quoted 3 lines
(quoted diff) +1 -1
-#define OCELOT_IF_SI_OWNER_MASK			GENMASK(5, 4)
 
+			   0x3 << if_si_owner_offset,

Perhaps,

#define MSCC_IF_SI_OWNER_MASK GENMASK(1, 0)

Oops, sorry - that seems to have been eaten somewhere. :(

#2 lore raw
Quoted 17 lines · Mark Brown
Quoted 15 lines · Andy Shevchenko

----- Forwarded message from Andy Shevchenko <[email protected]> -----

Date: Wed, 29 Aug 2018 18:08:31 +0300
From: Andy Shevchenko <[email protected]>
To: Alexandre Belloni <[email protected]>
Subject: Re: [PATCH] spi: dw-mmio: add MSCC Jaguar2 support
User-Agent: Mutt/1.10.1 (2018-07-13)

Quoted 5 lines · Alexandre Belloni

Unfortunately, the Jaguar2 CPU_SYSTEM_CTRL register set has a different layout than the Ocelot one. Handle that while keeping most of the code common.

-#define OCELOT_IF_SI_OWNER_MASK GENMASK(5, 4)

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

+ 0x3 << if_si_owner_offset,

Perhaps,

#define MSCC_IF_SI_OWNER_MASK GENMASK(1, 0)

Oops, sorry - that seems to have been eaten somewhere. :(

Nothing to sorry about, I'm in a process on move to mutt, so, I mispushed 'r' (Reply) instead of 'g' (Group Reply).
I just forwarded the first one.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw
In reply to Mark Brown

Mark,

Quoted 16 lines · Mark Brown
Quoted 15 lines · Andy Shevchenko

----- Forwarded message from Andy Shevchenko <[email protected]> -----

Date: Wed, 29 Aug 2018 18:08:31 +0300
From: Andy Shevchenko <[email protected]>
To: Alexandre Belloni <[email protected]>
Subject: Re: [PATCH] spi: dw-mmio: add MSCC Jaguar2 support
User-Agent: Mutt/1.10.1 (2018-07-13)

Quoted 5 lines · Alexandre Belloni

Unfortunately, the Jaguar2 CPU_SYSTEM_CTRL register set has a different layout than the Ocelot one. Handle that while keeping most of the code common.

-#define OCELOT_IF_SI_OWNER_MASK GENMASK(5, 4)

Quoted 7 lines
Quoted 5 lines

Review

Quoted 1 line
(quoted diff) +1 -0
+			   0x3 << if_si_owner_offset,

Perhaps,

#define MSCC_IF_SI_OWNER_MASK GENMASK(1, 0)

Oops, sorry - that seems to have been eaten somewhere. :(

Do you want me to send a new version or a patch that you could squash in the second one?

Signature · 3 lines
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
maintainer
#4 lore raw
Quoted 2 lines · Alexandre Belloni

Do you want me to send a new version or a patch that you could squash in the second one?

A followup would be best given that I applied it.