From 6ff10789909c86dadd61dadefa7e961990a7b6cf Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Tue, 31 Oct 2017 17:21:23 +0100 Subject: [PATCH] superio: Log if mouse controller is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s useful to know, if the mouse controller is disabled or not, so convert the comment to a log message. Change-Id: Ic3f7d5b7b98cf8c258a6a601f4a44ce403f4a576 Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/22285 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- src/superio/nuvoton/nct5572d/superio.c | 3 ++- src/superio/winbond/w83667hg-a/superio.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/superio/nuvoton/nct5572d/superio.c b/src/superio/nuvoton/nct5572d/superio.c index 04e6967088..1c0ae38113 100644 --- a/src/superio/nuvoton/nct5572d/superio.c +++ b/src/superio/nuvoton/nct5572d/superio.c @@ -57,7 +57,8 @@ static void nct5572d_init(struct device *dev) mouse_detected = pc_keyboard_init(PROBE_AUX_DEVICE); if (!mouse_detected && !acpi_is_wakeup_s3()) { - /* Disable mouse controller */ + printk(BIOS_INFO, "%s: Disable mouse controller.", + __func__); pnp_enter_conf_mode_8787(dev); byte = pnp_read_config(dev, 0x2a); byte |= 0x1 << 1; diff --git a/src/superio/winbond/w83667hg-a/superio.c b/src/superio/winbond/w83667hg-a/superio.c index 9ffbefe17a..1a3be44941 100644 --- a/src/superio/winbond/w83667hg-a/superio.c +++ b/src/superio/winbond/w83667hg-a/superio.c @@ -57,7 +57,8 @@ static void w83667hg_a_init(struct device *dev) mouse_detected = pc_keyboard_init(PROBE_AUX_DEVICE); if (!mouse_detected && !acpi_is_wakeup_s3()) { - /* Disable mouse controller */ + printk(BIOS_INFO, "%s: Disable mouse controller.", + __func__); pnp_enter_conf_mode_8787(dev); byte = pnp_read_config(dev, 0x2a); byte |= 0x1 << 1;