Commit e0701e7b authored by Helge Deller's avatar Helge Deller
Browse files

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: default avatarHelge Deller <deller@gmx.de>
parent 789e527a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;
}