diff mbox series

[3/3] parisc: chassis: Do not overwrite LCD display

Message ID 20230825180928.205499-3-deller@kernel.org (mailing list archive)
State Accepted, archived
Headers show
Series [1/3] parisc: led: Reduce CPU overhead for disk & lan LED computation | expand

Commit Message

Helge Deller Aug. 25, 2023, 6:09 p.m. UTC
From: Helge Deller <deller@gmx.de>

If we have the LCD/LED driver and tell PDC about a status change
of the system, PDC will usually overwrite the contents on the LCD.

To avoid that, just write the LCD string again via the LCD driver.

Signed-off-by: Helge Deller <deller@gmx.de>
---
 arch/parisc/kernel/pdc_chassis.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

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 <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;
 }