A possible kms NULL pointer access is found during CPU vote for IRQ
when kms isn't NULL checked before accessing structure members. So,
perform kms NULL check before accessing members.
Change-Id: I137759ea0723be8580e9166c983d1ba38f4eb281
Signed-off-by: Jayasri Sampath Kumaran <quic_jsampath@quicinc.com>
(cherry picked from commit 393118f87846d64a10c1d5a32161bcbe012c0667)
(cherry picked from commit 17513cad23c67a11431fdfd77a59d5e207352dbc)
Set parent to xo clock for link clocks,
before we enter suspend, so that framework and hw state are
in correct state, when we exit from hibernation.
Change-Id: Ib0e2ca6ac57aec566171b2f72e2b6822e2d9fde2
Signed-off-by: Venkata Gopi Nagaraju Botlagunta <quic_botlagun@quicinc.com>
dp_parser is only available post connector init, so if parser is
not available get display_type from devicetree itself and remove
redundant code.
Change-Id: I2131a257cb4795f52be1706882dce533baf94600
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Add support to limit the maximum resolution that can
be supported on display port.
Change-Id: I2729743f57997302d3f4e3bd01bfad2fd4b23c6d
Signed-off-by: Navjyot SINGH <quic_navjsing@quicinc.com>
Add for eDP display support pluggable and support eDP as secondary.
Change-Id: I25d153282f08b8db21fdad15d3c971f609cdf49a
Signed-off-by: Boyuan Yan <quic_boyuyan@quicinc.com>
Add a check on number of built in displays to avoid
array index out of bounds issue.
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Change-Id: I1af626d2f05bf822e02c8e228c28823370d32b4f
For eDP connectors, store brightness setting during
bridge disable and restore during bridge enable.
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Change-Id: I04834b86110d9bec40d458f609adb8aeae49b9dd
(cherry picked from commit f76dda607b)
For eDP connectors, store brightness setting during
bridge disable and restore during bridge enable.
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Change-Id: I04834b86110d9bec40d458f609adb8aeae49b9dd
Add a keystr into the connector property if wants this
external bridge to support hpd. Userspace can get this
info from the connector, and do hpd support.
Change-Id: I19e8c2684ef054fbd5c5bf5951357edb1b4ea40c
Signed-off-by: Shubham Talekar <quic_stalekar@quicinc.com>
Get the interface number from dsi panel timing node, if no
timing node was set, set the number as ext_bridge_num.
Change-Id: I1f36df6b5780f6eb1ef42e5b260cbdb16ec61c15
Signed-off-by: Boyuan Yan <boyuyan@qti.qualcomm.com>
If redriver is the aux switch instead of fsa4480,
skip configuring aux switch.
Change-Id: I28edfec3833f21511a0e4589cbcf871a8c5628da
Signed-off-by: Boyuan Yan <boyuyan@qti.qualcomm.com>
Driver probe has to wait for dp resource initialization,
in case of continuous splash to avoid any resource resets.
Change-Id: Idaa506b14132d22b9bfe558c88ab6d33171b4f3b
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Additional pm vote is added when cont splash is enabled
for eDP. This vote has to be removed at the time of
handoff.
Change-Id: Ib1c0cc58f0be1031d405ca8941d3e7984b1e9f46
Signed-off-by: Sai Srujana Oruganti <quic_osaisruj@quicinc.com>
For continuous splash use case bootloader already takes
care of eDP hardware states including clocks and regulators.
This change avoid touching eDP hardware blocks during
eDP initialization sequence.
Change-Id: I23635b43ce2a41078383bbcc89aa3f60564599dd
Signed-off-by: Sai Srujana Oruganti <quic_osaisruj@quicinc.com>
Register backlight and cooling devices for eDP interface
and reuse connector backlight update functions. Parse and
use backlight properties from devicetree.
Change-Id: I5d96a8d588d8f7266aa5bffad310718942e7dfe6
Signed-off-by: Venkata Prahlad Valluru <quic_vvalluru@quicinc.com>
Skip hpd config when continuous splash is enabled.
Change-Id: Ibeff020a981bcb29df188668f87498d29343f5a3
Signed-off-by: Sai Srujana Oruganti <quic_osaisruj@quicinc.com>
If panel notifier support is set, get panel
phandle and add panel to drm_panel. Notifier
for this panel will be called on dpms update.
Change-Id: I6346eb09a551a993ec9050797d1ba9383491e612
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
If panel notifier support is set, get panel
phandle and add panel to drm_panel. Notifier
for this panel will be called on dpms update.
Change-Id: I6346eb09a551a993ec9050797d1ba9383491e612
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Add pinctrl state for backlight pwm to apply its settings.
Change-Id: I0de1edc0a1bbd43057de77e1f26307f0de33f29f
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
DP driver, at probe time, checks for fsa probe completion by
registering a notifier callback. The fsa driver performs some
I2C operations at this time. But occasionally, it takes multiple
attempts to complete these I2C transactions,adding huge delays
to display driver probing.If this delay is long enough, then
display usermode services start before display driver probe completes
and as a result, it fails to enumerate any displays.
Since the fsa switch is needed only after an external display is hot
plugged,this change moves the fsa probe check to dp hotplug handler.
Change-Id: I1b592ec3921a0b406ca23142d07e1a7e8b72090e
Signed-off-by: Vara Reddy <varar@codeaurora.org>