kernel_optimize_test/drivers/platform/chrome
Emil Karlson d4d2313a3c
mfd: cros-ec: copy the whole event in get_next_event_xfer
Commit 57e94c8b97 caused cros-ec keyboard events
be truncated on many chromebooks so that Left and Right keys on Column 12 were
always 0. Use ret as memcpy len to fix this.

The old code was using ec_dev->event_size, which is the event payload/data size
excluding event_type header, for the length of the memcpy operation. Use ret
as memcpy length to avoid the off by one and copy the whole msg->data.

Fixes: 57e94c8b97 ("mfd: cros-ec: Increase maximum mkbp event size")

Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Emil Karlson <jekarlson@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
2018-10-09 20:57:30 -07:00
..
chromeos_laptop.c platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes 2018-05-29 15:11:04 -07:00
chromeos_pstore.c
chromeos_tbmc.c platform/chrome: chromeos_tbmc - fix SPDX identifier 2018-06-16 16:52:59 -07:00
cros_ec_debugfs.c mfd: cros_ec: Don't try to grab log when suspended 2018-05-29 09:10:39 +01:00
cros_ec_i2c.c platform/chrome: Move cros-ec transport drivers to drivers/platform. 2018-07-03 12:40:06 -07:00
cros_ec_lightbar.c platform/chrome: Use to_cros_ec_dev more broadly 2018-05-30 11:53:40 -07:00
cros_ec_lpc_mec.c
cros_ec_lpc_reg.c
cros_ec_lpc.c
cros_ec_proto.c mfd: cros-ec: copy the whole event in get_next_event_xfer 2018-10-09 20:57:30 -07:00
cros_ec_spi.c platform/chrome: Move cros-ec transport drivers to drivers/platform. 2018-07-03 12:40:06 -07:00
cros_ec_sysfs.c platform/chrome: Use to_cros_ec_dev more broadly 2018-05-30 11:53:40 -07:00
cros_ec_vbc.c platform/chrome: Use to_cros_ec_dev more broadly 2018-05-30 11:53:40 -07:00
cros_kbd_led_backlight.c
Kconfig platform/chrome: Move cros-ec transport drivers to drivers/platform. 2018-07-03 12:40:06 -07:00
Makefile platform/chrome: Move cros-ec transport drivers to drivers/platform. 2018-07-03 12:40:06 -07:00