sdm660 has comparator circuit addded in mic path. When headset
is connected comparator output is 186mv instead of 0 which
is effecting headset detection. To resolve this change moisture
detection threshold to 184_K.
CRs-Fixed: 1099543
Change-Id: I79382da8715227ccf737f1a54b358ab95be63419
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
The LBF_IGNORE_PREFERRED_CLUSTER_TASKS flag needs to be set
for all types of inter-cluster load balance. Currently this
is set only when higher capacity CPU is pulling the tasks from
a lower capacity CPU. This can result in the migration of grouped
tasks from higher capacity cluster to lower capacity cluster.
Change-Id: Ib0476c5c85781804798ef49268e1b193859ff5ef
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Remove SPSS from glink_ssr notification list
for Modem ssr, ADSP ssr and DSPS ssr to prevent
unnecessary notification to SPSS. Delayed response
from SPSS to these notifications may cause a system
crash.
CRs-Fixed: 1114968
Change-Id: Id01ea87b41f9026892b52b4fd4544ca8c5e7d825
Signed-off-by: Chris Lew <clew@codeaurora.org>
If APSD is triggered while APSD is disabled the APSD_RESULT_STATUS
register will be reset. APSD will trigger whenever both VBUS and CC
have been debounced. This includes when VBUS is stable and CC is
re-asserted.
This is an issue particularly when the CC2 workaround re-asserts CC
when PD performs a hard reset since APSD will be disabled.
Fix this by configuring APSD to trigger only on VBUS before CC is
re-asserted by the CC2 workaround.
Change-Id: I507646faaab7aafeedb4104ad0ad5c32970270a6
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Sometimes the apsd results show up as Unkonwn for SDP and SDP
for DCP. These are especially after reboot.
For such situations introduce code to rerun APSD right at bootup.
While at it also ensure that APSD rerun is enabled while shutting
down.
Change-Id: Ic81e270fd6efcf619624cb336cb0b8b41193913f
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Enable WARN_ON only when VIDC_INFO debug level is
enabled.
Change-Id: I39ccb69e0809614c4d85c3e9e13bb6faa8ffd6eb
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
Add battery voltage, current and low SoC thresholds for sdm630.
The BCL module will mitigate the CPU's, when battery reaches
the low voltage threshold, high current threshold or low
state of Charge.
Change-Id: I045b4e451955dfd155811a39e5b8a7c4c1b4a617
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
This patch defines condition for collecting ramdump
only when ramdump collection is enabled, modem is crashed
and memshare is notified of SUBSYS_RAMDUMP_NOTIFICATION.
CRs-Fixed: 1114015
Change-Id: I7e3ca0794980fd21cc0a5d890df4aeadfd5fbbbb
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
Before calling snd_soc_dai_set_channel_map for tavil in audrx_init,
update the channel settings for SLIM RX and SLIM TX.
Change-Id: I84410b3f1f02a7d01b93b0d90b9dbd2071af5147
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add check to disable traffic shaper for pipe in command mode
for sdm660 target.
Change-Id: Id67ae89cbee90922212cc7cd6edafcae4ab4d0fc
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Add sdhc1 for enabling eMMC and sdhc2 for enabling SD card for sdm630
target. Since sdm660 and sdm630 have same entries for eMMC and SD card,
the common entires are added to sdm660-common.dtsi. If later on some
properties change, overwrite or use delete-property on those entries in
the appropriate DT files.
Change-Id: Ib43fb23a18e56f2d6d270598584ed8a8470c3d86
Signed-off-by: Vijay Viswanath <vviswana@codeaurora.org>
Enhance sched scan to support option of finding a better BSS while in
connected state. Firmware scans the medium and reports when it finds a
known BSS which has better RSSI than the current connected BSS. New
attributes to specify the relative RSSI (compared to the current BSS)
are added to the sched scan to implement this.
Signed-off-by: vamsi krishna <vamsin@qti.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: bf95ecdba93b98d27ac219e79f773f2074b4ca47
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 1112378
Change-Id: I0e3cf69ff6e0a73e23080a2d1e8ab9f51bcaba96
Introducing a new feature that the driver can use to
indicate the driver/firmware supports configuration of BSS
selection criteria upon CONNECT command. This can be useful
when multiple BSS-es are found belonging to the same ESS,
ie. Infra-BSS with same SSID. The criteria can then be used to
offload selection of a preferred BSS.
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Lei Zhang <leizh@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
[move wiphy support check into parse_bss_select()]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Ashwini Patil<apati@codeaurora.org>
Git-commit: 38de03d2a28925b489c11546804e2f5418cc17a4
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-Fixed: 1112378
Change-Id: I8fe69aab5215fe848c8deab123ecb1561a3b2402
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>