Searched hist:b4d0836e81603600a8db7777b588fe020abf4cf8 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_proto_test.c | diff b4d0836e81603600a8db7777b588fe020abf4cf8 Thu Jun 09 03:49:43 CDT 2022 Tzung-Bi Shih <tzungbi@kernel.org> platform/chrome: cros_ec_proto: separate cros_ec_get_proto_info()
Rename cros_ec_host_command_proto_query() to cros_ec_get_proto_info() and make it responsible for setting `ec_dev` fields according to the response protocol info.
Also make cros_ec_get_host_event_wake_mask() allocate its own message buffer. It was lucky that size of `struct ec_response_host_event_mask` is less than `struct ec_response_get_protocol_info`. Thus, the buffer wasn't overflow.
Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20220609084957.3684698-8-tzungbi@kernel.org
|
H A D | cros_ec_proto.c | diff b4d0836e81603600a8db7777b588fe020abf4cf8 Thu Jun 09 03:49:43 CDT 2022 Tzung-Bi Shih <tzungbi@kernel.org> platform/chrome: cros_ec_proto: separate cros_ec_get_proto_info()
Rename cros_ec_host_command_proto_query() to cros_ec_get_proto_info() and make it responsible for setting `ec_dev` fields according to the response protocol info.
Also make cros_ec_get_host_event_wake_mask() allocate its own message buffer. It was lucky that size of `struct ec_response_host_event_mask` is less than `struct ec_response_get_protocol_info`. Thus, the buffer wasn't overflow.
Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Link: https://lore.kernel.org/r/20220609084957.3684698-8-tzungbi@kernel.org
|