1. Add support to update backlight when display commit. Backlight
level is sent from userspace. And sync to set PP config, kickoff,
and set backlight in the same vsync period.
2. Add support to get current backlight level through sysfs node.
Change-Id: Icf264299ecf8edd3831938745a471c2655c23542
Signed-off-by: Xu Yang <yangxu@codeaurora.org>
The wlan firmware is configuring the clk and voltage regulator
for hardware power on and hardware reset sequence.
The icnss platform driver is configuring this clk and regulators
to avoid invalid access to copy engine register during the wlan
recovery.
As platform driver is not configuring this regulator to power on
or reset the WLAN hardware, So no need to define the voltage
regulators are the required properties for the ICNSS platform driver.
Define vdd-0.8-cx-mx as an optional voltage regulator for
the icnss platform driver.
CRs-Fixed: 2014965
Change-Id: I74a1445522997ba4e7a52da5a29e9afb57ad12df
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
To indicate, presence of cfg80211_connect_timeout() api to wlan driver
with additional parameter, CFG80211_CONNECT_TIMEOUT_REASON_CODE is
defined and depends on commit eadbd4a4290b ("cfg80211: Specify the
reason for connect timeout") which adds reason while indicating timeout.
When CFG80211_CONNECT_TIMEOUT_REASON_CODE is defined and if wlan
connection attempt failed due to timeout, then wlan driver invokes
cfg80211_connect_timeout() with reason of timeout.
CRs-Fixed: 2004380
Change-Id: I0ba392e05fa9db82de75abd8c29df0b7570066d6
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
This enhances the connect timeout API to also carry the reason for the
timeout. These reason codes for the connect time out are represented by
enum nl80211_timeout_reason and are passed to user space through a new
attribute NL80211_ATTR_TIMEOUT_REASON (u32).
Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
[keep gfp_t argument last]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 3093ebbeabcdddc9a982950052f2151df43c7aa2
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 2004380
Change-Id: If25dbf99d08d6ee658782fb08bd0ac670e95584a
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
To indicate, presence of cfg80211_connect_timeout() api to wlan driver,
CFG80211_CONNECT_TIMEOUT is defined and depends on
commit 48f3dee442d9 ("cfg80211: Allow cfg80211_connect_result() errors
to be distinguished") which implements cfg80211_connect_timeout().
When CFG80211_CONNECT_TIMEOUT is defined and if wlan connection attempt
failed due to timeout, then wlan driver invokes
cfg80211_connect_timeout().
CRs-Fixed: 2004380
Change-Id: Ie2c16eb9c1a1330264daf843848c7da43da49b6c
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
Previously, the status parameter to cfg80211_connect_result() was
documented as using WLAN_STATUS_UNSPECIFIED_FAILURE (1) when the real
status code for the failure is not known. This value can be used by an
AP (and often is) and as such, user space cannot distinguish between
explicitly rejected authentication/association and not being able to
even try to associate or not receiving a response from the AP.
Add a new inline function, cfg80211_connect_timeout(), to be used when
the driver knows that the connection attempt failed due to a reason
where connection could not be attempt or no response was received from
the AP. The internal functions now allow a negative status value (-1) to
be used as an indication of this special case. This results in the
NL80211_ATTR_TIMED_OUT to be added to the NL80211_CMD_CONNECT event to
allow user space to determine this case was hit. For backwards
compatibility, NL80211_STATUS_CODE with the value
WLAN_STATUS_UNSPECIFIED_FAILURE is still indicated in the event in such
a case.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
[johannes: fix cfg80211_connect_bss() prototype to use int for status,
add cfg80211_connect_timeout() to docbook, fix docbook]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: bf1ecd210541ef5f3a110e88e8ca5d33b4aa5c23
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 2004380
Change-Id: I43e2a7d588ee86a8470cf72ac0a95daaae569fa0
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
Add change to correct the conditional check for entering the
panel in and out of LP configurations. Remove the unused enum
structure related to panel blank status.
Change-Id: Ic1140eafcc7cdd8d64c107bddc824eeca844462d
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
In current implementation we disable tear check block when
transitioning into ultra low power or power off state for
doze mode. But it is not enabled back when moving from
ultra low power state(LP2) to low power state(LP1), after
which updates are expected. This change enables back tearcheck
block when transitioning to LP1 from LP2 state.
Change-Id: Ic0d8f97752ccf88470da2423f3f8d56a32de227f
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
During a DSI DMA read command transaction, it is expected to have
DSI FIFO overflow if the read operation duration exceeds one BLLP
line time frame. Make sure not to trigger DSI FIFO overflow recovery
sequence for such cases where DSI FIFO overflow error is masked.
Change-Id: I0762a0f51d580a44cfa24ffac60cc465c241c733
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
rm67195 AMOLED FHD display panel will be used for SDM630/SDM660
PM660A QRD, so add a new panel dtsi file to support that.
Change-Id: Icbdb68874e2e119b3a805a8959b01045e0dd63c9
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Signed-off-by: Yahui Wang <yahuiw@codeaurora.org>
As GPIO 54 has already been connected to an external
pull up resistor, config it to no pull to save power
consumption.
CRs-Fixed: 2015121
Change-Id: Id13588be53b8756e4d9792035bcc6adfbaa8c3f7
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
Add backend user count checking to protect the index
boundary.
Change-Id: Ic1b61d1f7130252cc54da0b16553858714988dbd
CRs-Fixed: 2009216
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
Mark AIF4 MAD TX as ignore suspend so that MAD path
will not power down during suspend mode.
CRs-Fixed: 2003858
Change-Id: Iae55e2778edcdd8efa6ae13b746795d8a1594a41
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
HIFI headphone path is not present in sdm660 qrd board.
So there is no need to add these two hph_en nodes under tasha node.
These two nodes get initialized by msm_cdc_pinctrl driver and make
gpio24/25 as output low, which causes some power leakage.
Remove these two hph_en nodes for sdm660 qrd.
Change-Id: I527ce45296cd3b168bea67804e0909f668f74221
CRs-Fixed: 2011375
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
Tracecounter code was only displaying the values from the first
4 PMU counters. This patch will display all 6 PMU counter values.
Change output strings L2CTR0, L2CTR1 to CTR4, CTR5 respectively.
Change-Id: I111355513bf30a2544bf10e4fbfda79f4cf2678c
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
Currently the HVDCP auth IRQ is only enabled upon USB removal. When APSD
is rerun the USB type is not updated to HVDCP_3 since the IRQ was
disabled.
Fix this by enabling the HVDCP auth IRQ before APSD is rerun.
Change-Id: Ic9ec2dca5915651864582abea9165ca8c4290169
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Remove the code to dump the CCI registers in msm_cci_wait.
Clock access to the CCI may be halted and may potentially cause
a crash while accessing the registers.
CRs-Fixed: 2005506
Change-Id: I6c7e61dc3ebc0a599e801acfedb98f523beb090b
Signed-off-by: Rajesh Bondugula <rajeshb@codeaurora.org>
In cases where DSI DMA done operation is performed but isr is
not triggered due to CPU delays, we clear only the DMA_DONE
interrupt. There is a possibility of a DSI read operation for
DSI command mode panels where the DMA_DONE interrupt is cleared and
DSI link clocks are turned off. After some time, the DSI isr gets
triggered for BTA_DONE interrupt and since DSI link clocks are off,
this causes an interrupt storm due to BTA_DONE interrupt not getting
cleared. Clear the BTA_DONE interrupt as well for cases where DMA_DONE
operation is done but isr not getting triggered.
Change-Id: Iceb02e6dd78f4bbf313e2b4d252d6a30699619f0
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So make it possible to select
the best clocksource right after arm arch timer initialization, so that
jiffies can be increased by multiple counts since then.
Change-Id: Id8c4e3ce9b9e44061fef7ad7e678ca1c27d84bb1
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
As the best clocksource is not selected till core boot completion,
only periodic tick timer works and it increases jiffies by one at
every tick updates. If interrupt is disabled more than one tick(10ms),
timer interrupts are missed and jiffies can't be updated at every
10ms and it can be behind the real time. So add API to force re-
selection of the best clocksource among registered clocksources so
that the best clocksource can be selected whenever it is available.
Change-Id: I481de3cdf1df8f0e35ed10aee7ab3882bf7a35b3
Signed-off-by: Se Wang (Patrick) Oh <sewango@codeaurora.org>
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
In SDM660 internal codec drivers, both platform dev probe and
snd_soc codec probe allocate different structures but
update allocated address pointer to same driver data info.
This causes override of earlier structure location.
Combine the structures to make single codec private data.
CRs-Fixed: 2012230, 2013959
Change-Id: I6c6c43f408fb00003ca43d78919f54ba87f37ffd
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Setting adsp cma region to 8MB, as cma region need to be 4MB aligned.
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Change-Id: I7f774dd193435f045243b34fc0d4f2a9ff24329f
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
Enable common Cx ipeak driver for various multimedia
clients like GPU, MDP, Venus and Camera modules.
This is needed to handle Cx ipeak limit on SDM660.
Change-Id: I95a46964fdf9df48cc0aeb2891426f88c1ff72f9
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
SPDM feature requires to be enabled, so add SPDM settings
for APPS CPU bus client.
Change-Id: I35fdafcefebcd3fb6e59f3e55bb68d07403abc74
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
Update the proper GPIO configuration for the QDSS so that CTI output can be
mapped to the GPIO to generate the proper trigger.
Change-Id: Icc8915522f9c5707869572cf80b7bd345d59eca4
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Setting adsp cma region to 8MB, as cma region need to be 4MB aligned.
Change-Id: Idf7865712a97870fd56d1957b464b98fb92fad2a
Acked-by: Chenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>