Skip to contentSkip to conversation

cros_ec: spi: disable annoying key echo on console

PATCH Superseded Milan P. Stanić 2 participants 2 messages Oct 17, 2023 – Oct 18, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cros_ec: spi: disable annoying key echo on console

on Peach-pi console every key press is echoed with message 'cros_ec_command: Returned status 1'

this is not proper fix, just hack to disable this message

---
 drivers/misc/cros_ec_spi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/misc/cros_ec_spi.c +0 -1
index 001f0a85ca..7317f4b0f1 100644
@@ -151,7 +151,6 @@ int cros_ec_spi_command(struct udevice *udev, uint8_t cmd, int cmd_version,
 
 	/* Response code is first byte of message */
 	if (p[0] != EC_RES_SUCCESS) {
-		printf("%s: Returned status %d\n", __func__, p[0]);
 		return -(int)(p[0]);
 	}
 
Signature · 1 line
2.42.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Milan P. Stanić

on Peach-pi console every key press is echoed with message 'cros_ec_command: Returned status 1'

this is not proper fix, just hack to disable this message

---
 drivers/misc/cros_ec_spi.c | 1 -
 1 file changed, 1 deletion(-)

I thought a similar patch went in ages ago but I now see it was in cros_ec_i2c.c

drivers/misc/cros_ec_spi.c int cros_ec_spi_command(struct udevice *udev, uint8_t cmd, int cmd_version, · line 154

Quoted 10 lines
drivers/misc/cros_ec_spi.c +0 -1
index 001f0a85ca..7317f4b0f1 100644
@@ -151,7 +151,6 @@ int cros_ec_spi_command(struct udevice *udev, uint8_t cmd, int cmd_version,
 
        /* Response code is first byte of message */
        if (p[0] != EC_RES_SUCCESS) {
-               printf("%s: Returned status %d\n", __func__, p[0]);

log_debug() (without the __func__) would be better

Quoted 6 lines
drivers/misc/cros_ec_spi.c +0 -1
                return -(int)(p[0]);
        }
 
--

2.42.0