linux/drivers/gpu/drm/panel
Stephen Boyd c913cd5489 drm/panel: boe-tv101wum-nl6: Ensure DSI writes succeed during disable
The unprepare sequence has started to fail after moving to panel bridge
code in the msm drm driver (commit 007ac0262b ("drm/msm/dsi: switch to
DRM_PANEL_BRIDGE")). You'll see messages like this in the kernel logs:

   panel-boe-tv101wum-nl6 ae94000.dsi.0: failed to set panel off: -22

This is because boe_panel_enter_sleep_mode() needs an operating DSI link
to set the panel into sleep mode. Performing those writes in the
unprepare phase of bridge ops is too late, because the link has already
been torn down by the DSI controller in post_disable, i.e. the PHY has
been disabled, etc. See dsi_mgr_bridge_post_disable() for more details
on the DSI .

Split the unprepare function into a disable part and an unprepare part.
For now, just the DSI writes to enter sleep mode are put in the disable
function. This fixes the panel off routine and keeps the panel happy.

My Wormdingler has an integrated touchscreen that stops responding to
touch if the panel is only half disabled too. This patch fixes it. And
finally, this saves power when the screen is off because without this
fix the regulators for the panel are left enabled when nothing is being
displayed on the screen.

Fixes: 007ac0262b ("drm/msm/dsi: switch to DRM_PANEL_BRIDGE")
Fixes: a869b9db7a ("drm/panel: support for boe tv101wum-nl6 wuxga dsi video mode panel")
Cc: yangcong <yangcong5@huaqin.corp-partner.google.com>
Cc: Douglas Anderson <dianders@chromium.org>
Cc: Jitao Shi <jitao.shi@mediatek.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Rob Clark <robdclark@chromium.org>
Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230106030108.2542081-1-swboyd@chromium.org
2023-01-31 13:23:38 -08:00
..
Kconfig drm/panel: Add Magnachip D53E6EA8966 Panel Driver 2023-01-27 09:42:30 +01:00
Makefile drm/panel: Add Magnachip D53E6EA8966 Panel Driver 2023-01-27 09:42:30 +01:00
panel-abt-y030xx067a.c
panel-arm-versatile.c
panel-asus-z00t-tm5p5-n35596.c drm/panel-asus-z00t-tm5p5-n35596: Drop custom DSI write macros 2023-01-11 18:50:45 +01:00
panel-auo-a030jtn01.c drm/panel: Add driver for the AUO A030JTN01 TFT LCD 2023-01-22 11:25:06 +00:00
panel-boe-bf060y8m-aj0.c drm/panel-boe-bf060y8m-aj0: Drop custom DSI write macro 2023-01-11 18:50:49 +01:00
panel-boe-himax8279d.c
panel-boe-tv101wum-nl6.c drm/panel: boe-tv101wum-nl6: Ensure DSI writes succeed during disable 2023-01-31 13:23:38 -08:00
panel-dsi-cm.c
panel-ebbg-ft8719.c
panel-edp.c drm/panel-edp: add IVO M133NW4J panel entry 2023-01-10 16:52:40 -08:00
panel-elida-kd35t133.c drm/panel-elida-kd35t133: Drop custom DSI write macro 2023-01-11 18:50:48 +01:00
panel-feixin-k101-im2ba02.c
panel-feiyang-fy07024di26a30d.c
panel-himax-hx8394.c drm: panel: Add Himax HX8394 panel controller driver 2023-01-10 13:28:35 +01:00
panel-ilitek-ili9322.c
panel-ilitek-ili9341.c drm/mipi-dbi: Initialize default driver functions with macro 2022-12-05 13:36:16 +01:00
panel-ilitek-ili9881c.c drm/panel: Do not include <linux/fb.h> 2023-01-13 13:19:13 +01:00
panel-innolux-ej030na.c
panel-innolux-p079zca.c
panel-jadard-jd9365da-h3.c drm: panel: jd9365da-h3: Add Radxa Display 8HD 2023-01-27 08:55:00 +01:00
panel-jdi-fhd-r63452.c drm/panel-jdi-fhd-r63452: Drop custom DSI write macros 2023-01-11 18:50:51 +01:00
panel-jdi-lt070me05000.c
panel-khadas-ts050.c
panel-kingdisplay-kd097d04.c
panel-leadtek-ltk050h3146w.c drm/panel-leadtek-ltk050h3146w: Drop custom DSI write macro 2023-01-11 18:50:47 +01:00
panel-leadtek-ltk500hd1829.c
panel-lg-lb035q02.c
panel-lg-lg4573.c
panel-lvds.c
panel-magnachip-d53e6ea8966.c drm/panel: Add Magnachip D53E6EA8966 Panel Driver 2023-01-27 09:42:30 +01:00
panel-mantix-mlaf057we51.c drm/panel-mantix-mlaf057we51: Drop custom DSI write macro 2023-01-11 18:50:55 +01:00
panel-nec-nl8048hl11.c
panel-newvision-nv3051d.c drm/panel: Add NewVision NV3051D MIPI-DSI LCD panel 2022-11-14 12:44:46 +01:00
panel-newvision-nv3052c.c
panel-novatek-nt35510.c drm: Fix typo 'the the' in comment 2022-07-27 09:17:58 +02:00
panel-novatek-nt35560.c
panel-novatek-nt35950.c drm/panel-novatek-nt35950: Drop custom DSI write macro 2023-01-11 18:50:50 +01:00
panel-novatek-nt36672a.c
panel-novatek-nt39016.c
panel-olimex-lcd-olinuxino.c drm/panel: olimex-lcd-olinuxino: Convert to i2c's .probe_new() 2023-01-10 11:04:58 +01:00
panel-orisetech-ota5601a.c drm/panel: add the orisetech ota5601a 2022-12-29 22:05:03 +01:00
panel-orisetech-otm8009a.c
panel-osd-osd101t2587-53ts.c
panel-panasonic-vvx10f034n00.c
panel-raspberrypi-touchscreen.c drm/panel: Do not include <linux/fb.h> 2023-01-13 13:19:13 +01:00
panel-raydium-rm67191.c
panel-raydium-rm68200.c
panel-ronbo-rb070d30.c drm/panel: Do not include <linux/fb.h> 2023-01-13 13:19:13 +01:00
panel-samsung-atna33xc20.c drm/panel-samsung-atna33xc20: Extend autosuspend delay 2022-11-29 14:25:19 -08:00
panel-samsung-db7430.c drm/panel: db7430: Silent no spi_device_id warning 2022-10-03 21:48:41 +02:00
panel-samsung-ld9040.c
panel-samsung-s6d16d0.c
panel-samsung-s6d27a1.c
panel-samsung-s6e3ha2.c drm: exynos: dsi: Fix MIPI_DSI*_NO_* mode flags 2023-01-20 16:04:34 +01:00
panel-samsung-s6e8aa0.c drm: exynos: dsi: Fix MIPI_DSI*_NO_* mode flags 2023-01-20 16:04:34 +01:00
panel-samsung-s6e63j0x03.c drm: exynos: dsi: Fix MIPI_DSI*_NO_* mode flags 2023-01-20 16:04:34 +01:00
panel-samsung-s6e63m0-dsi.c
panel-samsung-s6e63m0-spi.c
panel-samsung-s6e63m0.c
panel-samsung-s6e63m0.h
panel-samsung-s6e88a0-ams452ef01.c drm/panel-samsung-s6e88a0-ams452ef01: Drop custom DSI write macro 2023-01-11 18:50:52 +01:00
panel-samsung-sofef00.c drm/panel: sofef00: Use 16-bit brightness function 2023-01-19 08:21:57 +01:00
panel-seiko-43wvf1g.c
panel-sharp-lq101r1sx01.c
panel-sharp-ls037v7dw01.c
panel-sharp-ls043t1le01.c
panel-sharp-ls060t1sx01.c drm/panel-sharp-ls060t1sx01: Drop custom DSI write macro 2023-01-11 18:50:54 +01:00
panel-simple.c drm/panel-simple: Use ktime_get_boottime for delays 2022-11-29 14:24:22 -08:00
panel-sitronix-st7701.c drm/panel/panel-sitronix-st7701: Remove panel on DSI attach failure 2022-11-01 23:12:06 +01:00
panel-sitronix-st7703.c drm/panel-sitronix-st7703: Drop custom DSI write macros 2023-01-11 18:50:46 +01:00
panel-sitronix-st7789v.c
panel-sony-acx565akm.c
panel-sony-tulip-truly-nt35521.c drm/panel-sony-tulip-truly-nt35521: Drop custom DSI write macro 2023-01-11 18:50:56 +01:00
panel-tdo-tl070wsh30.c
panel-tpo-td028ttec1.c
panel-tpo-td043mtea1.c
panel-tpo-tpg110.c drm/panel: tpg110: Silent no spi_device_id warning 2022-10-03 21:49:50 +02:00
panel-truly-nt35597.c
panel-visionox-rm69299.c
panel-visionox-vtdr6130.c drm/panel: vtdr6130: fix unused ret in visionox_vtdr6130_bl_update_status 2023-01-19 15:32:11 +01:00
panel-widechips-ws2401.c drm/panel: ws2401: Silent no spi_device_id warning 2022-10-03 21:50:53 +02:00
panel-xinpeng-xpp055c272.c drm/panel-xinpeng-xpp055c272: Drop custom DSI write macro 2023-01-11 18:50:57 +01:00