linux/drivers/gpu/drm/solomon
Francesco Lavra 36d9579fed
drm/solomon: Fix page start when updating rectangle in page addressing mode
In page addressing mode, the pixel values of a dirty rectangle must be sent
to the display controller one page at a time. The range of pages
corresponding to a given rectangle is being incorrectly calculated as if
the Y value of the top left coordinate of the rectangle was 0. This can
result in rectangle updates being displayed on wrong parts of the screen.

Fix the above issue by consolidating the start page calculation in a single
place at the beginning of the update_rect function, and using the
calculated value for all addressing modes.

Fixes: b0daaa5cfa ("drm/ssd130x: Support page addressing mode")
Signed-off-by: Francesco Lavra <flavra@baylibre.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patch.msgid.link/20260210180932.736502-1-flavra@baylibre.com
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
2026-02-26 13:42:09 +01:00
..
Kconfig drm/solomon: Run DRM default client setup 2024-09-26 09:31:28 +02:00
Makefile drm/solomon: Add SSD130x OLED displays SPI support 2022-04-20 18:48:17 +02:00
ssd130x-i2c.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ssd130x-spi.c drm/ssd130x: Remove the use of dev_err_probe() 2025-09-01 16:09:19 +02:00
ssd130x.c drm/solomon: Fix page start when updating rectangle in page addressing mode 2026-02-26 13:42:09 +01:00
ssd130x.h drm/ssd130x: Add support for the SSD133x OLED controller family 2024-01-01 13:03:05 +01:00