Skip to content

Commit 77d08a2

Browse files
tq-steinadianders
authored andcommitted
drm/bridge: ti-sn65dsi86: Allow GPIO operations to sleep
There is no need to require non-sleeping GPIO access. Silence the WARN_ON() if GPIO is using e.g. I2C expanders. Signed-off-by: Alexander Stein <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Douglas Anderson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a80c882 commit 77d08a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/bridge/ti-sn65dsi86.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static int __maybe_unused ti_sn65dsi86_resume(struct device *dev)
363363
/* td2: min 100 us after regulators before enabling the GPIO */
364364
usleep_range(100, 110);
365365

366-
gpiod_set_value(pdata->enable_gpio, 1);
366+
gpiod_set_value_cansleep(pdata->enable_gpio, 1);
367367

368368
/*
369369
* If we have a reference clock we can enable communication w/ the
@@ -386,7 +386,7 @@ static int __maybe_unused ti_sn65dsi86_suspend(struct device *dev)
386386
if (pdata->refclk)
387387
ti_sn65dsi86_disable_comms(pdata);
388388

389-
gpiod_set_value(pdata->enable_gpio, 0);
389+
gpiod_set_value_cansleep(pdata->enable_gpio, 0);
390390

391391
ret = regulator_bulk_disable(SN_REGULATOR_SUPPLY_NUM, pdata->supplies);
392392
if (ret)

0 commit comments

Comments
 (0)