Skip to contentSkip to conversation

mfd: rsmu: support 32-bit address space

PATCH Applied Min Li 3 participants 4 messages Mar 27, 2023 – Jul 13, 2023

Subsystems (3)
lore
Share & tools
lore

Min Li

author
#0 lore raw

PATCH v2 1/3 mfd: rsmu: support 32-bit address space

From: Min Li <[email protected]>

We used to assume 0x2010xxxx address. Now that we need to access 0x2011xxxx address, we need to support read/write the whole 32-bit address space.

Also defined RSMU_MAX_WRITE_COUNT and
RSMU_MAX_READ_COUNT for readability

---
changelog
-change commit message to include defining RSMU_MAX_WRITE/WRITE_COUNT

 drivers/mfd/rsmu.h       |   2 +
 drivers/mfd/rsmu_i2c.c   | 172 +++++++++++++++++++++++++++++++--------
 drivers/mfd/rsmu_spi.c   |  52 +++++++-----
 include/linux/mfd/rsmu.h |   5 +-
 4 files changed, 175 insertions(+), 56 deletions(-)
drivers/mfd/rsmu.h +2 -0
index bb88597d189f..1bb04cafa45d 100644
@@ -10,6 +10,8 @@
 
 #include <linux/mfd/rsmu.h>
 
+#define RSMU_CM_SCSR_BASE		0x20100000
+
 int rsmu_core_init(struct rsmu_ddata *rsmu);
 void rsmu_core_exit(struct rsmu_ddata *rsmu);
 
drivers/mfd/rsmu_i2c.c +136 -36

228 lines not on this page · raw message

drivers/mfd/rsmu_spi.c +33 -19

110 lines not on this page · raw message

include/linux/mfd/rsmu.h +4 -1
index 6870de608233..0379aa207428 100644
@@ -8,6 +8,9 @@
 #ifndef __LINUX_MFD_RSMU_H
 #define __LINUX_MFD_RSMU_H
 
+#define RSMU_MAX_WRITE_COUNT	(255)
+#define RSMU_MAX_READ_COUNT	(255)
+
 /* The supported devices are ClockMatrix, Sabre and SnowLotus */
 enum rsmu_type {
 	RSMU_CM		= 0x34000,
@@ -31,6 +34,6 @@ struct rsmu_ddata {
 	struct regmap *regmap;
 	struct mutex lock;
 	enum rsmu_type type;
-	u16 page;
+	u32 page;
 };
 #endif /*  __LINUX_MFD_RSMU_H */
Signature · 1 line
2.39.2
maintainer Applied
#1 lore raw
Quoted 14 lines · Min Li

From: Min Li <[email protected]>

We used to assume 0x2010xxxx address. Now that we need to access 0x2011xxxx address, we need to support read/write the whole 32-bit address space.

Also defined RSMU_MAX_WRITE_COUNT and
RSMU_MAX_READ_COUNT for readability

---
changelog
-change commit message to include defining RSMU_MAX_WRITE/WRITE_COUNT

Quoted 5 lines
 drivers/mfd/rsmu.h       |   2 +
 drivers/mfd/rsmu_i2c.c   | 172 +++++++++++++++++++++++++++++++--------
 drivers/mfd/rsmu_spi.c   |  52 +++++++-----
 include/linux/mfd/rsmu.h |   5 +-
 4 files changed, 175 insertions(+), 56 deletions(-)

I changed the commit message a little and reworded/moved a comment and:

Applied, thanks

--
Lee Jones [李琼斯]

#2 lore raw

Hi Lee

I am writing to follow up with the following change. But I can't track it being merged with any branch, can anyone tell me where it is now? Thanks

Min

Quoted 38 lines

-----Original Message-----
From: Lee Jones <[email protected]>
Sent: March 30, 2023 9:26 AM
To: Min Li <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Min Li <[email protected]>
Subject: Re: [PATCH mfd v2 1/3] mfd: rsmu: support 32-bit address space

Quoted 6 lines · Min Li

From: Min Li <[email protected]>

We used to assume 0x2010xxxx address. Now that we need to access 0x2011xxxx address, we need to support read/write the whole 32-bit address space.

Quoted 7 lines

Also defined RSMU_MAX_WRITE_COUNT and
RSMU_MAX_READ_COUNT for readability

---
changelog
-change commit message to include defining

RSMU_MAX_WRITE/WRITE_COUNT

Quoted 3 lines
 drivers/mfd/rsmu.h       |   2 +
 drivers/mfd/rsmu_i2c.c   | 172 +++++++++++++++++++++++++++++++--

------

Quoted 3 lines
 drivers/mfd/rsmu_spi.c   |  52 +++++++-----
 include/linux/mfd/rsmu.h |   5 +-
 4 files changed, 175 insertions(+), 56 deletions(-)

I changed the commit message a little and reworded/moved a comment and:

Applied, thanks

--
Lee Jones [李琼斯]

maintainer
#3 lore raw
Quoted 34 lines

Hi Lee

Quoted 32 lines

-----Original Message-----
From: Lee Jones <[email protected]>
Sent: March 30, 2023 9:26 AM
To: Min Li <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; Min Li <[email protected]>
Subject: Re: [PATCH mfd v2 1/3] mfd: rsmu: support 32-bit address space

Quoted 6 lines · Min Li

From: Min Li <[email protected]>

We used to assume 0x2010xxxx address. Now that we need to access 0x2011xxxx address, we need to support read/write the whole 32-bit address space.

Quoted 7 lines

Also defined RSMU_MAX_WRITE_COUNT and
RSMU_MAX_READ_COUNT for readability

---
changelog
-change commit message to include defining

RSMU_MAX_WRITE/WRITE_COUNT

Quoted 3 lines
 drivers/mfd/rsmu.h       |   2 +
 drivers/mfd/rsmu_i2c.c   | 172 +++++++++++++++++++++++++++++++--

------

Quoted 3 lines
 drivers/mfd/rsmu_spi.c   |  52 +++++++-----
 include/linux/mfd/rsmu.h |   5 +-
 4 files changed, 175 insertions(+), 56 deletions(-)
Quoted 5 lines
Quoted 3 lines

I changed the commit message a little and reworded/moved a comment and:

Applied, thanks

I am writing to follow up with the following change. But I can't track it being merged with any branch, can anyone tell me where it is now? Thanks

67d6c76fc815c ("mfd: rsmu: Support 32-bit address space")

Signature · 1 line
Lee Jones [李琼斯]