Searched hist:"20 bcab576168792c4127105b8f54d2e9484448e7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_proto_test.c | diff 20bcab576168792c4127105b8f54d2e9484448e7 Tue Oct 03 03:05:04 CDT 2023 Tzung-Bi Shih <tzungbi@kernel.org> platform/chrome: kunit: initialize lock for fake ec_dev
[ Upstream commit e410b4ade83d06a046f6e32b5085997502ba0559 ]
cros_ec_cmd_xfer() uses ec_dev->lock. Initialize it.
Otherwise, dmesg shows the following: > DEBUG_LOCKS_WARN_ON(lock->magic != lock) > ... > Call Trace: > ? __mutex_lock > ? __warn > ? __mutex_lock > ... > ? cros_ec_cmd_xfer
Reviewed-by: Guenter Roeck <groeck@chromium.org> Link: https://lore.kernel.org/r/20231003080504.4011337-1-tzungbi@kernel.org Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
|