From: Helge Deller Date: Sun, 27 Aug 2023 11:54:12 +0000 (+0200) Subject: parisc: chassis: Do not overwrite string on LCD display X-Git-Tag: block-6.6-2023-09-08~20^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e0701e7b9fb741d92b5f888cdf2caa0afdff7209;p=linux-2.6-block.git parisc: chassis: Do not overwrite string on LCD display If we send a chassis code via PDC, PDC usually overwrites the contents on the LCD display. Just call lcd_print() in this case so that the LCD/LED driver prints the last string again. Signed-off-by: Helge Deller --- diff --git a/arch/parisc/kernel/pdc_chassis.c b/arch/parisc/kernel/pdc_chassis.c index 0a9d7008ef2a..d477d0177c2f 100644 --- a/arch/parisc/kernel/pdc_chassis.c +++ b/arch/parisc/kernel/pdc_chassis.c @@ -31,6 +31,7 @@ #include #include #include +#include #define PDC_CHASSIS_VER "0.05" @@ -234,6 +235,11 @@ int pdc_chassis_send_status(int message) } else retval = -1; #endif /* CONFIG_64BIT */ } /* if (pdc_chassis_enabled) */ + + /* if system has LCD display, update current string */ + if (retval != -1 && IS_ENABLED(CONFIG_CHASSIS_LCD_LED)) + lcd_print(NULL); + #endif /* CONFIG_PDC_CHASSIS */ return retval; }