mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-05 00:52:57 +01:00
Preserve the I/O register bits in __ast_write8_i_masked() as specified by preserve_mask. Accidentally OR-ing the output value into these will overwrite the register's previous settings. Fixes display output on the AST2300, where the screen can go blank at boot. The driver's original commit312fec1405("drm: Initial KMS driver for AST (ASpeed Technologies) 2000 series (v2)") already added the broken code. Commit6f719373b9("drm/ast: Blank with VGACR17 sync enable, always clear VGACRB6 sync off") triggered the bug. Signed-off-by: Thomas Zimmermann <[email protected]> Reported-by: Peter Schneider <[email protected]> Closes: https://lore.kernel.org/dri-devel/[email protected]/ Tested-by: Peter Schneider <[email protected]> Reviewed-by: Jocelyn Falempe <[email protected]> Fixes:6f719373b9("drm/ast: Blank with VGACR17 sync enable, always clear VGACRB6 sync off") Fixes:312fec1405("drm: Initial KMS driver for AST (ASpeed Technologies) 2000 series (v2)") Cc: Thomas Zimmermann <[email protected]> Cc: Nick Bowler <[email protected]> Cc: Douglas Anderson <[email protected]> Cc: Dave Airlie <[email protected]> Cc: Jocelyn Falempe <[email protected]> Cc: [email protected] Cc: <[email protected]> # v3.5+ Link: https://patch.msgid.link/[email protected]