Skip to content

Commit e0701e7

Browse files
committed
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>
1 parent 789e527 commit e0701e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/parisc/kernel/pdc_chassis.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include <asm/processor.h>
3232
#include <asm/pdc.h>
3333
#include <asm/pdcpat.h>
34+
#include <asm/led.h>
3435

3536
#define PDC_CHASSIS_VER "0.05"
3637

@@ -234,6 +235,11 @@ int pdc_chassis_send_status(int message)
234235
} else retval = -1;
235236
#endif /* CONFIG_64BIT */
236237
} /* if (pdc_chassis_enabled) */
238+
239+
/* if system has LCD display, update current string */
240+
if (retval != -1 && IS_ENABLED(CONFIG_CHASSIS_LCD_LED))
241+
lcd_print(NULL);
242+
237243
#endif /* CONFIG_PDC_CHASSIS */
238244
return retval;
239245
}

0 commit comments

Comments
 (0)