Commit 20c8276
drm: bridge: samsung-dsim: Fix init during host transfer
In case the downstream bridge or panel uses DSI transfers before the
DSI host was actually initialized through samsung_dsim_atomic_enable()
which clears the stop state (LP11) mode, all transfers will fail.
This happens with downstream bridges that are controlled by DSI
commands such as the tc358762.
As documented in [1] DSI hosts are expected to allow transfers
outside the normal bridge enable/disable flow.
To fix this make sure that stop state is cleared in
samsung_dsim_host_transfer() which restores the previous
behavior.
We also factor out the common code to enable/disable stop state
to samsung_dsim_set_stop_state().
[1] https://docs.kernel.org/gpu/drm-kms-helpers.html#mipi-dsi-bridge-operation
Fixes: 0c14d31 ("drm: bridge: samsung-dsim: Fix i.MX8M enable flow to meet spec")
Reported-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Tested-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230724151640.555490-1-frieder@fris.de1 parent 50b6f2c commit 20c8276
1 file changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1386 | 1386 | | |
1387 | 1387 | | |
1388 | 1388 | | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1389 | 1401 | | |
1390 | 1402 | | |
1391 | 1403 | | |
| |||
1445 | 1457 | | |
1446 | 1458 | | |
1447 | 1459 | | |
1448 | | - | |
1449 | 1460 | | |
1450 | 1461 | | |
1451 | 1462 | | |
1452 | 1463 | | |
1453 | 1464 | | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
| 1465 | + | |
1457 | 1466 | | |
1458 | 1467 | | |
1459 | 1468 | | |
| |||
1463 | 1472 | | |
1464 | 1473 | | |
1465 | 1474 | | |
1466 | | - | |
1467 | 1475 | | |
1468 | 1476 | | |
1469 | 1477 | | |
1470 | 1478 | | |
1471 | | - | |
1472 | | - | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
| 1479 | + | |
| 1480 | + | |
1476 | 1481 | | |
1477 | 1482 | | |
1478 | 1483 | | |
| |||
1775 | 1780 | | |
1776 | 1781 | | |
1777 | 1782 | | |
| 1783 | + | |
| 1784 | + | |
1778 | 1785 | | |
1779 | 1786 | | |
1780 | 1787 | | |
| |||
0 commit comments