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 <deller@gmx.de>
This commit is contained in:
parent
789e527adf
commit
e0701e7b9f
@ -31,6 +31,7 @@
|
||||
#include <asm/processor.h>
|
||||
#include <asm/pdc.h>
|
||||
#include <asm/pdcpat.h>
|
||||
#include <asm/led.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user