Skip to contentSkip to conversation

drm/sitronix/st7571-i2c: reset position before clearing display

PATCH In review Marcus Folkesson 2 participants 6 messages Sep 13, 2025 – Oct 3, 2025

Subsystems (3)
lore
Share & tools
lore

Marcus Folkesson

author maintainer
#0 lore raw

PATCH 1/1 drm/sitronix/st7571-i2c: reset position before clearing display

We cannot know where the write pointer is, always reset position to (0,0) before clearing display.

---
 drivers/gpu/drm/sitronix/st7571-i2c.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/sitronix/st7571-i2c.c +1 -0
index a6c4a6738dedf5881328414e9d8810d3af2a6fe4..32b91d65b768b26caa7dcef42a00d36f236fbc32 100644
@@ -263,6 +263,7 @@ static int st7571_fb_clear_screen(struct st7571_device *st7571)
 	u32 npixels = st7571->ncols * round_up(st7571->nlines, ST7571_PAGE_HEIGHT) * st7571->bpp;
 	char pixelvalue = 0x00;
 
+	st7571_set_position(st7571, 0, 0);
 	for (int i = 0; i < npixels; i++)
 		regmap_bulk_write(st7571->regmap, ST7571_DATA_MODE, &pixelvalue, 1);
 

---
base-commit: 91494dee1091a14d91da6bcb39e12a907765c793
change-id: 20250911-st7571-reset-785838285415

Best regards,

Signature · 1 line
Marcus Folkesson <[email protected]>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Marcus Folkesson

We cannot know where the write pointer is, always reset position to (0,0) before clearing display.

---

Marcus, do you already have commit rights in drm-misc or do you want me to apply this patch ?

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat
author maintainer
#2 lore raw

Hello Javier,

Quoted 5 lines · Javier Martinez Canillas
Quoted 3 lines · Marcus Folkesson

We cannot know where the write pointer is, always reset position to (0,0) before clearing display.

Quoted 7 lines
Quoted 2 lines

---

Marcus, do you already have commit rights in drm-misc or do you want me to apply this patch ?

I sent a request for commit rights yesterday, once it is approved I will apply this patch myself :-)

Quoted 8 lines
Signature · 6 lines
-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat

Best regards,
Marcus Folkesson

#3 lore raw

Marcus Folkesson <[email protected]> writes:

Hello Marcus,

Quoted 11 lines

Hello Javier,

Quoted 8 lines · Javier Martinez Canillas
Quoted 5 lines · Marcus Folkesson

We cannot know where the write pointer is, always reset position to (0,0) before clearing display.

---

Quoted 8 lines
Quoted 4 lines

Marcus, do you already have commit rights in drm-misc or do you want me to apply this patch ?

I sent a request for commit rights yesterday, once it is approved I will apply this patch myself :-)

Sounds good. Thanks!

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat
author maintainer
#4 lore raw

Hello Javier,

Quoted 23 lines · Javier Martinez Canillas

Marcus Folkesson <[email protected]> writes:

Hello Marcus,

Quoted 19 lines

Hello Javier,

Quoted 5 lines · Javier Martinez Canillas
Quoted 3 lines · Marcus Folkesson

We cannot know where the write pointer is, always reset position to (0,0) before clearing display.

Quoted 7 lines
Quoted 2 lines

---

Marcus, do you already have commit rights in drm-misc or do you want me to apply this patch ?

I sent a request for commit rights yesterday, once it is approved I will apply this patch myself :-)

It took longer than expected to get commit rights.

Could you please apply this patch so that I could get it of my TODO-list :-)

Quoted 9 lines

Sounds good. Thanks!

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat

Thanks,
Marcus Folkesson

#5 lore raw

Marcus Folkesson <[email protected]> writes:

Hello Marcus,

Quoted 23 lines

Hello Javier,

Quoted 20 lines · Javier Martinez Canillas

Marcus Folkesson <[email protected]> writes:

Hello Marcus,

Quoted 16 lines

Hello Javier,

Quoted 12 lines · Javier Martinez Canillas
Quoted 5 lines · Marcus Folkesson

We cannot know where the write pointer is, always reset position to (0,0) before clearing display.

---

Marcus, do you already have commit rights in drm-misc or do you want me to apply this patch ?

Quoted 9 lines
Quoted 3 lines
Quoted 3 lines

I sent a request for commit rights yesterday, once it is approved I will apply this patch myself :-)

It took longer than expected to get commit rights.

Could you please apply this patch so that I could get it of my TODO-list :-)

Sure, pushed to drm-misc (drm-misc-next). Thanks!

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat