[PATCH v3] mfd: cros-ec: copy the whole event in get_next_event_xfer

2018-10-03 Thread Emil Karlson
ing 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: 57e94c8b974d ("mfd: cros-ec: Increase maximum mkbp event size") Acked-by: Enric Balletbo i Serra Tested-by: Emil Renner Berthing Sig

Re: [PATCH] mfd: cros-ec: copy the whole event in get_next_event_xfer

2018-09-28 Thread Emil Karlson
system that has message version 1. Background work documented in commit message. Best regards -Emil On Fri, Sep 28, 2018 at 8:08 PM Emil Karlson wrote: > > Commit 57e94c8b974db2d83c60e1139c89a70806abbea0 caused cros-ec keyboard events > be truncated on many chromebooks so that Left an

[PATCH] mfd: cros-ec: copy the whole event in get_next_event_xfer

2018-09-28 Thread Emil Karlson
ta and returns len as ret drivers/mfd/cros_ec_i2c.c:267 cros_ec_cmd_xfer_i2c copies len amount to ec_msg->data and returns len as ret so msg->data length is always the same as ret. Fixes: 57e94c8b974d ("mfd: cros-ec: Increase maximum mkbp event size") Signed-off-by: Emil Karlson

Re: [PATCH] mfd: cros-ec: copy the whole event when msg->version is 0

2018-09-27 Thread Emil Karlson
test with version 1, possibly it requires update of cros-ec firmware. Best regards -Emil On Thu, Sep 27, 2018 at 12:24 PM Emil Karlson wrote: > > Commit 57e94c8b974db2d83c60e1139c89a70806abbea0 caused cros-ec keyboard events > be truncated on many chromebooks so that Left and Right keys

[PATCH] mfd: cros-ec: copy the whole event when msg->version is 0

2018-09-27 Thread Emil Karlson
Commit 57e94c8b974db2d83c60e1139c89a70806abbea0 caused cros-ec keyboard events be truncated on many chromebooks so that Left and Right keys on Column 12 were always 0. This commit fixes the issue by restoring the old semantics when the protocol version is 0. --- drivers/platform/chrome/cros_ec_pro

Re: [RESEND PATCH 0/2] crypto/rockchip: fix some issue which causes crypto failed

2017-07-26 Thread Emil Karlson
Greetings While I am not getting the original error anymore, using dm-crypt still fails at cryptsetup luksOpen with [rk_ablk_rx:331] Lack of data https://users.aalto.fi/~jkarlson/files/rk3288-fail_2017-07-24.jpg Test platform: Asus chromebook C201/rk3288 linux-4.12.3+ this patchset Best Regards