Skip to contentSkip to conversation

MIPS: mscc: ocelot: fix length of memory address space for MIIM

PATCH In review Quentin Schulz 3 participants 3 messages Jul 25, 2018 – Jul 26, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: mscc: ocelot: fix length of memory address space for MIIM

The length of memory address space for MIIM0 is from 0x7107009c to 0x710700bf included which is 36 bytes long in decimal, or 0x24 bytes in hexadecimal and not 0x36.

Fixes 49b031690abe ("MIPS: mscc: Add switch to ocelot")
---
 arch/mips/boot/dts/mscc/ocelot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/boot/dts/mscc/ocelot.dtsi +1 -1
index 4f33dbc67348..7096915f26e0 100644
@@ -184,7 +184,7 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 			compatible = "mscc,ocelot-miim";
-			reg = <0x107009c 0x36>, <0x10700f0 0x8>;
+			reg = <0x107009c 0x24>, <0x10700f0 0x8>;
 			interrupts = <14>;
 			status = "disabled";
 
Signature · 1 line
2.14.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Quentin Schulz

The length of memory address space for MIIM0 is from 0x7107009c to 0x710700bf included which is 36 bytes long in decimal, or 0x24 bytes in hexadecimal and not 0x36.

Fixes 49b031690abe ("MIPS: mscc: Add switch to ocelot")
Quoted 20 lines
---
 arch/mips/boot/dts/mscc/ocelot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/boot/dts/mscc/ocelot.dtsi +1 -1
index 4f33dbc67348..7096915f26e0 100644
@@ -184,7 +184,7 @@
 			#address-cells = <1>;
 			#size-cells = <0>;
 			compatible = "mscc,ocelot-miim";
-			reg = <0x107009c 0x36>, <0x10700f0 0x8>;
+			reg = <0x107009c 0x24>, <0x10700f0 0x8>;
 			interrupts = <14>;
 			status = "disabled";
 
Signature · 1 line
2.14.1
Signature · 3 lines
Alexandre Belloni, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
In reply to Quentin Schulz

Hi Quentin,

Quoted 10 lines · Quentin Schulz

The length of memory address space for MIIM0 is from 0x7107009c to 0x710700bf included which is 36 bytes long in decimal, or 0x24 bytes in hexadecimal and not 0x36.

Fixes 49b031690abe ("MIPS: mscc: Add switch to ocelot")
---
 arch/mips/boot/dts/mscc/ocelot.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thanks - applied to mips-next for 4.19.

Paul