提交 5688ca34 编写于 作者: W Wadim Egorov 提交者: Neil Armstrong

drm/bridge: sii902x: Allow reset line to be tied to a sleepy GPIO controller

Switch to gpiod_set_value_cansleep() in sii902x_reset().
This is relevant if the reset line is tied to a I2C GPIO
controller.
Signed-off-by: NWadim Egorov <w.egorov@phytec.de>
Reviewed-by: NAndrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: NNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20221228145704.939801-1-w.egorov@phytec.de
上级 9402cde9
...@@ -239,12 +239,12 @@ static void sii902x_reset(struct sii902x *sii902x) ...@@ -239,12 +239,12 @@ static void sii902x_reset(struct sii902x *sii902x)
if (!sii902x->reset_gpio) if (!sii902x->reset_gpio)
return; return;
gpiod_set_value(sii902x->reset_gpio, 1); gpiod_set_value_cansleep(sii902x->reset_gpio, 1);
/* The datasheet says treset-min = 100us. Make it 150us to be sure. */ /* The datasheet says treset-min = 100us. Make it 150us to be sure. */
usleep_range(150, 200); usleep_range(150, 200);
gpiod_set_value(sii902x->reset_gpio, 0); gpiod_set_value_cansleep(sii902x->reset_gpio, 0);
} }
static enum drm_connector_status sii902x_detect(struct sii902x *sii902x) static enum drm_connector_status sii902x_detect(struct sii902x *sii902x)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册