From 6e140060e28d7da15890b61fd45dc240ad7e17ef Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Tue, 9 May 2023 20:44:20 +0200 Subject: [PATCH 1/2] Add debug print --- src/uniwill_leds.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uniwill_leds.h b/src/uniwill_leds.h index af72863..26b2b17 100644 --- a/src/uniwill_leds.h +++ b/src/uniwill_leds.h @@ -179,6 +179,7 @@ int uniwill_leds_init_early(struct platform_device *dev) pr_err("Reading barebone ID failed.\n"); return ret; } + pr_debug("EC Barebone ID: %#04x\n", data); if (data == UW_EC_REG_BAREBONE_ID_VALUE_PFxxxxx || data == UW_EC_REG_BAREBONE_ID_VALUE_PFxMxxx || From 2fb6977b4b3cee2a633a9f9228687c4cf2fbddb6 Mon Sep 17 00:00:00 2001 From: Werner Sembach Date: Tue, 9 May 2023 20:45:35 +0200 Subject: [PATCH 2/2] Add IBP14 Gen8 to white only keyboard backlight device list --- src/uniwill_interfaces.h | 1 + src/uniwill_leds.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uniwill_interfaces.h b/src/uniwill_interfaces.h index ceba580..9273da7 100644 --- a/src/uniwill_interfaces.h +++ b/src/uniwill_interfaces.h @@ -64,6 +64,7 @@ typedef void (uniwill_event_callb_t)(u32); #define UW_EC_REG_BAREBONE_ID_VALUE_PH6TRX1 0x15 #define UW_EC_REG_BAREBONE_ID_VALUE_PH6TQxx 0x16 #define UW_EC_REG_BAREBONE_ID_VALUE_PH4Axxx 0x17 +#define UW_EC_REG_BAREBONE_ID_VALUE_PH4Pxxx 0x18 #define UW_EC_REG_FEATURES_0 0x0765 #define UW_EC_REG_FEATURES_1 0x0766 diff --git a/src/uniwill_leds.h b/src/uniwill_leds.h index 26b2b17..d08efc7 100644 --- a/src/uniwill_leds.h +++ b/src/uniwill_leds.h @@ -188,7 +188,8 @@ int uniwill_leds_init_early(struct platform_device *dev) data == UW_EC_REG_BAREBONE_ID_VALUE_PH4TQx1 || data == UW_EC_REG_BAREBONE_ID_VALUE_PH6TRX1 || data == UW_EC_REG_BAREBONE_ID_VALUE_PH6TQxx || - data == UW_EC_REG_BAREBONE_ID_VALUE_PH4Axxx) { + data == UW_EC_REG_BAREBONE_ID_VALUE_PH4Axxx || + data == UW_EC_REG_BAREBONE_ID_VALUE_PH4Pxxx) { ret = uniwill_read_ec_ram(UW_EC_REG_KBD_BL_STATUS, &data); if (ret) { pr_err("Reading keyboard backlight status failed.\n");