Some targets do not have GPMU block in GPU and register read
or write into those registers is not valid.
To prevent this, check GPMU presence and then proceed.
Change-Id: I0992125af8cda4b8235aedb64f6ef8868ae95f20
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
IBB discharge resistor configuration needs to be decided on the
mode (LCD/AMOLED) along with the capacitor used on the hardware
platform. On hardware platforms that uses pmi8998, this would be
configured in the bootloader and HLOS should not be modifying it
based on the mode.
Hence, remove the property in msm-pmi8998.dtsi. Change the device
tree property to optional so that the driver can probe even when
the property is not specified.
Also, remove the code that force discharge resistor configuration
to 300KOhms for AMOLED mode as it can be done either in the
bootloader or through device tree.
CRs-Fixed: 1115531
Change-Id: I0da5db166bb99a732978c287e97566f649686f42
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Make sure to validate the input args to queuecommand to avoid
NULL dereferences.
Change-Id: I803e1cc019a4c5569fed9ee08113e323daab75c8
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Reset and initiate controller and phy low power mode to bring them to
known good state during boot up. This will avoid any leakage and makes
sure that DP/DM lines are in high-z state.
Change-Id: I55dbe8d42ce9e56046bd7c99e17c2ec6f368c9a6
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This allows system to enter SVS2 when high speed or lower speed device
is connected.
Change-Id: I57e4f3091f5fed7b36df1c03ba9654075a279ce6
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Core clock rate can be reduced or increased based on operating
speeds. Controller starts in Super Speed mode (higher core clock
rate) and it will operate in super or high or full or low speed
upon device connection. Update the core clock rate based on bus
speed to allows system to operate in better low power state (such
as SVS1/SVS2 based on system configuration). High Speed rate for
core clock is programmed from dtsi. Super Speed rate will be used
if High speed core clock rate is not provided for backward
compatibility.
Change-Id: I265149d34de19ab50bd7f106a670a7112bfae384
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
A part of the ADC circuit does not work as expected which causes die
temp inaccuracies. Enable the stacked diode circuit to bypass the
non-working circuit which fixes the die temp accuracy.
Change-Id: I2537ecd9190d3260396a847d3fd907634f874eb7
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Modify the sleep state settings for BLSP2 UART1 pins to optimize power
when the BT use case is inactive.
Change-Id: I08aa3ee6817ccbff30b99730731754bc6eb28ada
Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
commit e19a6ee2460bdd0d0055a6029383422773f9999a upstream.
If we take an exception while at EL1, the exception handler inherits
the original context's addr_limit and PSTATE.UAO values. To be consistent
always reset addr_limit and PSTATE.UAO on (re-)entry to EL1. This
prevents accidental re-use of the original context's addr_limit.
Based on a similar patch for arm from Russell King.
Change-Id: Iaef0dfaa335bd665b15718a2f1bba775ffc18a11
Acked-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: e19a6ee2460bdd0d0055a6029383422773f9999a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[psodagud@codeaurora.org bring in changes missed
in commit a5a095803c]
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
This reverts 'commit 1a35b11b4a ("drm/msm: remove
clock framework dependency")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I2a1fd46a36613a74ebd4c0471de47ad2c9524d5a
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit 3d589da976 ("drm/msm/dsi-staging:
add dsi definitions for new dsi driver")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: Icd478a54a07f9689dc0110382fd8b5de5c241a49
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit 4843e1948f ("drm/msm/dsi-staging:
add hardware driver for dsi phy")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: Ifb18bac24f47a359394fc4d253803a2dd4720de3
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit a47691f8c9 ("drm/msm/dsi-staging:
add hardware driver for dsi controller")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I8d8f93eef70c9028eb5e31b6b9e280b30a26ad13
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit af5a0d5df1 ("drm/msm/dsi-staging: add
catalog for dsi driver")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I2069e0f10df0b5f0b89c9d736c9176370b6b9e00
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit 54a4a3fb41 ("drm/msm/sde: add
driver for sde support")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: Iea6b08608a30979232826efba8fbb2a631d93f83
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit 29e061e200 ("drm/msm: add smmu handler")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I65034605b1caefe435a37c6fde78d4c52f3439c3
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit 815cfffb81 ("drm/msm/sde: add
basic sde object enumeration")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I5d58276f207485ac8ae80d8619282d2b62c0a695
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit 1cab338540 ("drm/msm/sde: add
controller instance to INTF block in catalog")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: Id950e4f131b9330908f65c431fca34cddf96b5ee
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit a142ec80ca ("drm/msm/sde: sde
encoder virtualization")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: Ida1e127788961e1c9484b0a69695d0ad5391cf88
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit fe03524bee ("drm/msm/sde: programmable
pre-fetch support for video encoders")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I978b0248f5e011abbb8cede98a56b3cb558f2d87
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit 0190e3c975 ("drm/msm/sde: move sde
encoder to new display interface")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I810da6da7df48bba1df68c81e2843f6597e4ca27
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit 643f961532 ("drm/msm/sde: simplify
encoder display probe logic")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I8df181f1e9a7d998aa9f35fbd5154a022d8563db
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit d199f38207 ("drm/msm/sde: sde
hw interrupt handling")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I7235fa269888d72247a3a5aee31b5fde3fb3b8e3
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit f8846e9345 ("drm/msm/sde: adding
implementation for mdp_top in hw driver")'
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I39fbad9b113cac96bb523876673787eed121172d
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
This reverts 'commit e14b3005bd ("drm/msm/sde: add
resource manager to enable dual dsi")'.
This is partial change for display drm driver,
that will break drm/sde merge commit.
Change-Id: I2d4f915aa5d3382ce22aa1b4d6e02183ab2f7c5c
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
Instead of using the value read from IBB_ENABLE_CTL register to
determine whether SWIRE control is already enabled by bootloader,
wrong value is used. Fix it.
Change-Id: I80ddf60a3a8010a749a001f10ba82e6560ecdfd2
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
usb driver can set master clk rate to 60MHz when operating in high
speed mode to allow svs2.
Change-Id: I31c64a42d3774c0296faa19928a832575846956e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This reverts commit 8e5ea69a41 ("mac80211: Add support for beacon
report radio measurement") which is incomplete cherry-pick of
commit 7947d3e075cd ("mac80211: Add support for beacon report
radio measurement") from
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
and due to which compilation of ath10k module is broken.
Incomplete cherry-pick means not all files of corresponding commit from
opensource repo are pulled.
CRs-Fixed: 1115991
Change-Id: Iec6aeea39e1a581c91641329fcfa85e608d60bfa
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
When applying partial update for command mode panel, the ROI is
calculated from the mixer ROI. When destination scaling is enabled, the
ROI for command mode panel should be the ROI after the scaling. This
panel ROI is provided from the user mode where the scaling is calculated
from.
CRs-Fixed: 1082694
Change-Id: Iac899e5130fdd7d34e598998f4b5cab601cf7a22
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
WCN3990 uses different wmi ops and services.
Add support for these wmi ops and services for
WCN3990 in ath10k
CRs-Fixed: 1115136
Change-Id: Id3f5f21dc4eb16e2175e570cc5c019a22b8ffb37
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
The WLAN firmware writes Rx packet in the Rx ring buffer
through copy engine. The Rx ring fill level depends on
the number of mac in WLAN chipset and wcn3990 WLAN chipset
has a dual mac. Update the Rx ring buffer fill level method
to add support for wcn3990 WLAN module.
CRs-Fixed: 1115978
Change-Id: Ife7a951171e25602b74f6b389f464c38cf9af1c8
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Current tz_buf pointer type is causing the end address calcultion
of tz_buf to go wrong. "end_addr = tz_buf + PAGE_ALIGN(size)" is
resulting in an end address way beyond the allocated range because
tz_buf is of type unsigned int. This change changes the tz_buf
pointer type to u8 to fix this issue.
Change-Id: I16db09c565801b56c0c0ee8a8184f6e276512fa3
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
This reverts commit ee6143827c ("cfg80211: remove enum ieee80211_band")
which is incomplete cherry-pick of commit 57fbcce37be7
("cfg80211: remove enum ieee80211_band") from
git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
and due to which compilation of ath10k module is broken.
Incomplete cherry-pick means not all files of corresponding commit from
opensource repo are pulled.
Conflicts were resolved in drivers/net/wireless/ath/ath10k/htt_rx.c
CRs-Fixed: 1113043
Change-Id: Ie2f95b1524777e8eaf1436ba3e4ab3f9e6b2822e
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
Add qrng device node with all the necessary parameters,
to enable the qrng driver on SDM630.
Change-Id: Id6321e4fe7a134266e8b580898618b0faafa841e
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
Add tz-log device node with all the necessary parameters,
to enable the TZ log driver on SDM630.
Change-Id: I8bf06dcc228ac27b1e9b1e3ddcd937a875ccebf0
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
Add qcrypto and qcedev device nodes with all the necessary
parameters, to enable crypto drivers on SDM630.
Change-Id: I342ddd1ffabab92b4152373d0acb6fa1629aa416
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
Add qseecom device node with all the necessary parameters,
to enable qseecom driver on SDM630.
Change-Id: I92f45e6bd1854825c8921dd4c997ab7473daa476
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
Update internal codec settings for RX/TX devices.
Disable lpass notifier in analog codec driver.
Handle 44.1K support in machine driver to
disable MCLK before request for change in
MCLK frequency.
Change-Id: I5f78f07da46dee0c66e4e374da600e2e5c5d8e21
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Model and configure MDSS Display Port PLL for SDM660 target.
Add changes to define and register DP VCO, divider and mux clocks
as per common clock infrastructure.
Change-Id: Ice83e21323087e81e2f30998260be85120e41fa8
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Update the clock names for parents of MDSS display port source
clocks for SDM660. The clock frequencies of DP clocks are
requested by the MDSS display port driver in order of KHz to
avoid integer overflow issues on 32-bit builds. Update the same
for DP clock structures in clock driver.
Change-Id: Ibfdade6f2db5c9ec7a7ff53ba76e6db53e4e605e
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
After hotplug policy max and min should be restored
to the user defined values.
Update to restore the policy min and max values defined
by user before going into hotplug.
Change-Id: I6a87fb7e84fae647e76e65734c7e1e9b498f82e3
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
Update the battery profiles for ascent, itech and st1031ga
batteries that are used with 8998 platforms as per the recent
characterized profile data.
Change-Id: I8dda10320f216e8fe40fda405817c1afc3b436de
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Add batterydata phandle to pmi8998 FG device so that it can be
used for obtaining the battery profiles that is required for
msm8998 MTP and QRD platforms.
Change-Id: I2255cd6475f3e49394cbdf3dd4594cb96fd70c31
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Initialize the variables before their usage and add null pointer checks
before dereferencing pointers.
Change-Id: Ibe4140c6e0aa25c37583e6e5e6e2331d86f389aa
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Add a check to event ring handle.
Change-Id: If835e7e610745aeb82d4d0e363ef833d0f8d857a
CRs-Fixed: 1115476
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Recording is failing for Tavil codec due to no input from microphones
that caused by wrong shared TX channels. Correct the order of Tavil
codec SLIMBUS TX channels to avoid wrong shared channel number being
used while enabling TX ports.
CRs-Fixed: 1114886
Change-Id: Ief94556995961f87e0effa092caf370b0927150a
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Don't check return value of sending dynamic feature mask in cold
boot initialization sequence as it is an optional message.
CRs-Fixed: 1115626
Change-Id: Ieb2f86f3a5c2c368b2699755a716a3e385562f48
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Fix the power on/off sequence based on the
hw recommendation, where bimc smmu gdsc is
powered off after mdss gdsc; and for the
power on sequence the bimc smmu gdsc is
enabled before the mdss gdsc.
Change-Id: Iad005082bcdb07f5529cd5eafd6ecd9c250c9665
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>