Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bcb0575e authored by Wenhua Lin's avatar Wenhua Lin Committed by Greg Kroah-Hartman
Browse files

gpio: pmic-eic-sprd: Add can_sleep flag for PMIC EIC chip



[ Upstream commit 26d9e5640d2130ee16df7b1fb6a908f460ab004c ]

The drivers uses a mutex and I2C bus access in its PMIC EIC chip
get implementation. This means these functions can sleep and the PMIC EIC
chip should set the can_sleep property to true.

This will ensure that a warning is printed when trying to get the
value from a context that potentially can't sleep.

Fixes: 348f3cde ("gpio: Add Spreadtrum PMIC EIC driver support")
Signed-off-by: default avatarWenhua Lin <Wenhua.Lin@unisoc.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 90f5eacc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment