Re: [PATCH] drm/ssd130x: Set the address window in ssd132x_clear_screen()

From: Javier Martinez Canillas

Date: Tue Sep 08 2026 - 07:48:08 EST


Fabio Piparo <holofermes@xxxxxxxxx> writes:

Hello Fabio,

Sorry for the delay. I was on vacation for a few weeks and I'm just
catching up on email.

> ssd132x_clear_screen() sends its zeroes without setting the column and
> row ranges first, so they land in whatever window the last
> ssd132x_update_rect() left programmed. A partial final update then
> leaves the rest of the screen uncleared, with fbcon the last damage is
> typically the cursor cell, so blanking keeps the console content on
> the panel.
>
> Set the full-screen window first, as ssd130x_clear_screen() already
> does.
>

All this makes a lot of sense to me.

> Fixes: fdd591e00a9c ("drm/ssd130x: Add support for the SSD132x OLED controller family")
> Assisted-by: LLM

I was going to mention that this isn't the convention documented in
https://docs.kernel.org/process/coding-assistants.html#attribution,
but I just noticed that there is a recent commit 816d9992d9ed
("coding-assistants: simplify attribution").

So your tag is correct and I learned today that "AGENT_NAME:MODEL_VERSION"
got deprecated.

> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Fabio Piparo <holofermes@xxxxxxxxx>
> ---
> Exercised on an SPI SSD1322 under local enablement patches for that
> chip; compile-tested only on the SSD1325/1327. ssd133x_clear_screen()
> has the same problem, left alone here for lack of hardware.
>
> drivers/gpu/drm/solomon/ssd130x.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>

Reviewed-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>

I'll push to drm-misc (drm-misc-fixes). Thanks for fixing this issue!

--
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat