linux_dsm_epyc7002/drivers/gpu/drm/bridge
Linus Walleij 2e7a66a8b5 drm/bridge: sii902x: Retry status read after DDI I2C
The following happens when connection a DVI output driven
from the SiI9022 using a DVI-to-VGA adapter plug:

i2c i2c-0: sendbytes: NAK bailout.
i2c i2c-0: sendbytes: NAK bailout.

Then no picture. Apparently the I2C engine inside the SiI9022
is not smart enough to try to fall back to DDC I2C. Or the
vendor have not integrated the electronics properly. I don't
know which one it is.

After this, the I2C bus seems stalled and the first attempt to
read the status register fails, and the code returns with
negative return value, and the display fails to initialized.

Instead, retry status readout five times and continue even
if this fails.

Tested on the ARM Versatile Express with a DVI-to-VGA
connector, it now gives picture.

Introduce a helper struct device *dev variable to make
the code more readable.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180305101702.13441-1-linus.walleij@linaro.org
2018-03-07 22:48:19 +01:00
..
adv7511 drm/bridge: adv7511/33: Fix adv7511_cec_init() failure handling 2017-11-30 10:37:11 +05:30
analogix drm/bridge: analogix_dp: Don't create useless connectors 2018-03-07 16:18:00 +01:00
synopsys drm: bridge: dw-hdmi: Fix overflow workaround for Amlogic Meson GX SoCs 2018-03-06 11:52:15 +01:00
analogix-anx78xx.c drm/bridge: analogix-anx78xx: Remove duplicate NULL check 2018-01-18 16:24:29 +02:00
analogix-anx78xx.h drm/bridge: Add Analogix anx78xx support 2016-05-12 11:32:14 +02:00
dumb-vga-dac.c drm/bridge: Add timing support to dumb VGA DAC 2018-01-12 14:14:31 +05:30
Kconfig bridge: Elaborate a bit on dumb VGA bridges in Kconfig 2018-03-07 22:38:50 +01:00
lvds-encoder.c drm/bridge: Fix lvds-encoder since the panel_bridge rework. 2017-11-30 11:03:45 +05:30
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
megachips-stdpxxxx-ge-b850v3-fw.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
nxp-ptn3460.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
panel.c drm/bridge: make drm_panel_bridge_remove more robust 2017-10-10 11:32:35 +02:00
parade-ps8622.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
sii902x.c drm/bridge: sii902x: Retry status read after DDI I2C 2018-03-07 22:48:19 +01:00
sii9234.c drm/bridge: add Silicon Image SiI9234 driver 2017-10-06 14:28:22 +02:00
sil-sii8620.c drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
sil-sii8620.h drm/bridge/sii8620: add HSIC initialization code 2017-02-02 15:15:30 +05:30
tc358767.c Merge tag 'drm-misc-next-2017-11-30' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2017-12-04 05:42:49 +10:00
ti-tfp410.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00