OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
6 years agodwc3-msm: Add delay between consecutive register reads in while loop
Vijayavardhan Vennapusa [Fri, 28 Jul 2017 05:53:47 +0000 (11:23 +0530)]
dwc3-msm: Add delay between consecutive register reads in while loop

Add some delay between two consecutive register reads in while loop
so that to avoid traffic congestion on NOCs.

Change-Id: I6efb8c91e0d07160ccce593a23898b2259cb1ebf
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
7 years agoMerge "msm: mdss: dsi: Remove redundant opmode configuration"
Linux Build Service Account [Tue, 1 Aug 2017 20:41:04 +0000 (13:41 -0700)]
Merge "msm: mdss: dsi: Remove redundant opmode configuration"

7 years agoMerge "ASoC: msm: qdsp6v2: Open unique COPP port for concurrent ULL streams"
Linux Build Service Account [Tue, 1 Aug 2017 06:44:05 +0000 (23:44 -0700)]
Merge "ASoC: msm: qdsp6v2: Open unique COPP port for concurrent ULL streams"

7 years agoMerge "usb: dwc3: dwc3-msm: Handle floating charger PMI notification properly"
Linux Build Service Account [Tue, 1 Aug 2017 06:44:04 +0000 (23:44 -0700)]
Merge "usb: dwc3: dwc3-msm: Handle floating charger PMI notification properly"

7 years agoMerge "cnss2: Add debugfs support to simulate device and firmware boot"
Linux Build Service Account [Tue, 1 Aug 2017 06:44:02 +0000 (23:44 -0700)]
Merge "cnss2: Add debugfs support to simulate device and firmware boot"

7 years agoMerge "ARM: dts: msm: Support Primary TDM Interface for msm8996"
Linux Build Service Account [Tue, 1 Aug 2017 06:44:02 +0000 (23:44 -0700)]
Merge "ARM: dts: msm: Support Primary TDM Interface for msm8996"

7 years agoMerge "cnss2: Remove PCI ioremap wrapper function"
Linux Build Service Account [Tue, 1 Aug 2017 06:44:01 +0000 (23:44 -0700)]
Merge "cnss2: Remove PCI ioremap wrapper function"

7 years agoMerge "cpufreq: interactive: fix to come out of hysteresis mode"
Linux Build Service Account [Tue, 1 Aug 2017 06:44:00 +0000 (23:44 -0700)]
Merge "cpufreq: interactive: fix to come out of hysteresis mode"

7 years agoMerge "msm: kgsl: Fix leak when preemption init fails"
Linux Build Service Account [Tue, 1 Aug 2017 06:43:59 +0000 (23:43 -0700)]
Merge "msm: kgsl: Fix leak when preemption init fails"

7 years agoMerge "input: misc: hbtp_input: fix memory corruption in list_del_entry"
Linux Build Service Account [Tue, 1 Aug 2017 06:43:58 +0000 (23:43 -0700)]
Merge "input: misc: hbtp_input: fix memory corruption in list_del_entry"

7 years agoMerge "msm: mdss: recalc pclk for Y420 format"
Linux Build Service Account [Tue, 1 Aug 2017 06:43:57 +0000 (23:43 -0700)]
Merge "msm: mdss: recalc pclk for Y420 format"

7 years agoMerge "serial: msm_serial_hs: Modify wakeup handler disablement and processing"
Linux Build Service Account [Tue, 1 Aug 2017 06:43:56 +0000 (23:43 -0700)]
Merge "serial: msm_serial_hs: Modify wakeup handler disablement and processing"

7 years agoASoC: msm: qdsp6v2: Open unique COPP port for concurrent ULL streams
Haynes Mathew George [Tue, 25 Jul 2017 21:02:13 +0000 (14:02 -0700)]
ASoC: msm: qdsp6v2: Open unique COPP port for concurrent ULL streams

Routing driver reuses the same adm for streams with the same
app_type, sample_rate etc. This isn't allowed for ULL streams
as per the DSP interface. We need to open a separate COPP
port for concurrent ULL streams

CRs-Fixed: 2083105
Change-Id: I569b32830145d6dae99449d0bc4148b2f60b101d
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
Acked-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
7 years agocnss2: Add debugfs support to simulate device and firmware boot
Yue Ma [Thu, 27 Jul 2017 17:51:54 +0000 (10:51 -0700)]
cnss2: Add debugfs support to simulate device and firmware boot

Add debugfs interface to simulate device and firmware boot step
by step. This can provide the flexibility to debug both host and
device issues in boot path. The debugfs node will only be added
in debug builds.

Change-Id: I4cf03efad5e5a792095f509864fddd54dc6e2e7c
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
7 years agoMerge "soc: qcom: Fix error propagation in scm_qcpe driver"
Linux Build Service Account [Mon, 31 Jul 2017 23:19:18 +0000 (16:19 -0700)]
Merge "soc: qcom: Fix error propagation in scm_qcpe driver"

7 years agoMerge "ASoC: msm: qdsp6v2: Reserve MultiMedia16 for NOIRQ"
Linux Build Service Account [Mon, 31 Jul 2017 23:19:17 +0000 (16:19 -0700)]
Merge "ASoC: msm: qdsp6v2: Reserve MultiMedia16 for NOIRQ"

7 years agoMerge "wil6210: protect against invalid length of tx management frame"
Linux Build Service Account [Mon, 31 Jul 2017 16:52:18 +0000 (09:52 -0700)]
Merge "wil6210: protect against invalid length of tx management frame"

7 years agoMerge "power: smb-lib: enable DPDM regulator at CC attach"
Linux Build Service Account [Mon, 31 Jul 2017 16:52:17 +0000 (09:52 -0700)]
Merge "power: smb-lib: enable DPDM regulator at CC attach"

7 years agoMerge "msm: sde: release LK's pool when LK exits"
Linux Build Service Account [Mon, 31 Jul 2017 16:52:16 +0000 (09:52 -0700)]
Merge "msm: sde: release LK's pool when LK exits"

7 years agosoc: qcom: Fix error propagation in scm_qcpe driver
Amit Blay [Mon, 31 Jul 2017 09:16:17 +0000 (12:16 +0300)]
soc: qcom: Fix error propagation in scm_qcpe driver

Fix scm_qcpe such that an error returned in X0, will be
propagated back to the calling client.

Change-Id: I8014b3f2f850d8664404c69e77ba36295a28db07
Signed-off-by: Amit Blay <ablay@codeaurora.org>
7 years agoMerge "Revert "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails""
Linux Build Service Account [Mon, 31 Jul 2017 02:58:04 +0000 (19:58 -0700)]
Merge "Revert "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails""

7 years agoMerge "power: qpnp-fg-gen3: Use msoc for recharge-soc comparison"
Linux Build Service Account [Mon, 31 Jul 2017 02:58:03 +0000 (19:58 -0700)]
Merge "power: qpnp-fg-gen3: Use msoc for recharge-soc comparison"

7 years agowil6210: protect against invalid length of tx management frame
Lior David [Sun, 30 Jul 2017 17:32:38 +0000 (20:32 +0300)]
wil6210: protect against invalid length of tx management frame

This check is not valid:
if (len < sizeof(struct ieee80211_mgmt))
Because ieee80211_mgmt contains the ieee80211 header followed by
a union of various action frames, so the check will fail when trying
to send any management frame which is smaller than the largest action
frame in the union. This breaks FST and possibly other features.
Fix this by checking only against the header structure size.

Change-Id: I730300e180d9509f3555f16a0803af53cc8eca0a
Signed-off-by: Lior David <liord@codeaurora.org>
7 years agoRevert "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails"
Tirupathi Reddy [Sat, 29 Jul 2017 09:33:05 +0000 (15:03 +0530)]
Revert "ARM: dts: msm: Enable ACD functionality for sdm630 CPU rails"

This reverts commit a4ca7944f48010708a71ce1fea44d37b53e659e2.
There have been stability failures (SPM ack timeouts) due to
ACD. Reverting this patch until the issue is resolved.

CRs-Fixed: 2084607
Change-Id: I407e4ecc5bd7af738c0d0599d1fa57007e959495
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agopower: qpnp-fg-gen3: Use msoc for recharge-soc comparison
Anirudh Ghayal [Wed, 12 Jul 2017 04:42:24 +0000 (10:12 +0530)]
power: qpnp-fg-gen3: Use msoc for recharge-soc comparison

The recharge SOC is based off the monotonic SOC (msoc). Hence, use
the msoc to determine if the hold-soc-while-full logic needs
to be applied.

CRs-Fixed: 2080211
Change-Id: I52b02adc4d97cbed42b0c8034a5a48dba1e343d3
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agoMerge "msm: wlan: Fix regulatory rule of JO"
Linux Build Service Account [Sun, 30 Jul 2017 04:19:28 +0000 (21:19 -0700)]
Merge "msm: wlan: Fix regulatory rule of JO"

7 years agoMerge "msm: camera: Instead of read_lock use read_lock_irqsave."
Linux Build Service Account [Sat, 29 Jul 2017 08:12:48 +0000 (01:12 -0700)]
Merge "msm: camera: Instead of read_lock use read_lock_irqsave."

7 years agocnss2: Add an option to skip booting device during driver probe
Yue Ma [Thu, 27 Jul 2017 18:05:02 +0000 (11:05 -0700)]
cnss2: Add an option to skip booting device during driver probe

Add an option for the debug module parameter to skip device boot
during driver probe. This adds the flexibility to boot device
later after kernel boots.

Change-Id: Icd8a544149f3d6b0f4ca3e3f7e004d230c2469ab
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
7 years agoMerge "msm: mdss: fix the use after free problem in rotator ioctl"
Linux Build Service Account [Fri, 28 Jul 2017 23:49:02 +0000 (16:49 -0700)]
Merge "msm: mdss: fix the use after free problem in rotator ioctl"

7 years agoMerge "ASoC: msm8998: Update DAI IDs for DSP HW Transcode loopback"
Linux Build Service Account [Fri, 28 Jul 2017 23:49:00 +0000 (16:49 -0700)]
Merge "ASoC: msm8998: Update DAI IDs for DSP HW Transcode loopback"

7 years agoMerge "msm: mdss: dp: avoid aux transactions if dp cable is disconnected"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:59 +0000 (16:48 -0700)]
Merge "msm: mdss: dp: avoid aux transactions if dp cable is disconnected"

7 years agoMerge "ARM: dts: msm: add memory region info for early splash feature on msm8996"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:58 +0000 (16:48 -0700)]
Merge "ARM: dts: msm: add memory region info for early splash feature on msm8996"

7 years agoMerge "msm: sde: add early display handoff feature"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:57 +0000 (16:48 -0700)]
Merge "msm: sde: add early display handoff feature"

7 years agoMerge "drm/msm/sde: disable vblank ref power on crtc disable"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:54 +0000 (16:48 -0700)]
Merge "drm/msm/sde: disable vblank ref power on crtc disable"

7 years agoMerge "drm/msm/sde: output black frame during resume operation"
Linux Build Service Account [Fri, 28 Jul 2017 23:48:51 +0000 (16:48 -0700)]
Merge "drm/msm/sde: output black frame during resume operation"

7 years agousb: dwc3: dwc3-msm: Handle floating charger PMI notification properly
Hemant Kumar [Thu, 27 Jul 2017 22:11:25 +0000 (15:11 -0700)]
usb: dwc3: dwc3-msm: Handle floating charger PMI notification properly

When floating charger is detected, driver first notifies -ETIMEDOUT to
PMI after 10 sec and then stops peripheral by simulating cable disconnect.
As part of disconnect it notifies PMI to draw 0ma which PMI re-interprets
as a SDP in bus suspend state and reconfigures PMI for SDP. Hence send
charger current notification only as part of cable disconnect simulation
by checking charger type.

Change-Id: Ibafe8d52fa14ff32b6cb11e9f6e15a4f3f147d7a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
7 years agocnss2: Remove PCI ioremap wrapper function
Yue Ma [Fri, 7 Jul 2017 01:15:11 +0000 (18:15 -0700)]
cnss2: Remove PCI ioremap wrapper function

Driver should directly call PCI ioremap API, and not customize
it with wrapper function which is only a WAR for QCA6290 chipset
emulation.

Change-Id: Icba3ce0ebbcef94d75a1713f4776524b909e5552
CRs-fixed: 2059087
Signed-off-by: Yue Ma <yuem@codeaurora.org>
7 years agoMerge "msm: mdss: do not update polarity for DSI interface"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:46 +0000 (08:21 -0700)]
Merge "msm: mdss: do not update polarity for DSI interface"

7 years agoMerge "rwsem: fix missed wakeup due to reordering of load"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:45 +0000 (08:21 -0700)]
Merge "rwsem: fix missed wakeup due to reordering of load"

7 years agoMerge "msm: mdss: Fix race condition during mdp dump"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:44 +0000 (08:21 -0700)]
Merge "msm: mdss: Fix race condition during mdp dump"

7 years agoMerge "msm: mdss: Remove check to cap requested mdp clock"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:43 +0000 (08:21 -0700)]
Merge "msm: mdss: Remove check to cap requested mdp clock"

7 years agoMerge "msm: kgsl: Fix the syncpoint_fence trace"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:42 +0000 (08:21 -0700)]
Merge "msm: kgsl: Fix the syncpoint_fence trace"

7 years agoMerge "msm: ADSPRPC: Handle SMD event signal"
Linux Build Service Account [Fri, 28 Jul 2017 15:21:41 +0000 (08:21 -0700)]
Merge "msm: ADSPRPC: Handle SMD event signal"

7 years agomsm: wlan: Fix regulatory rule of JO
Rajeev Kumar Sirasanagandla [Fri, 28 Jul 2017 13:11:24 +0000 (18:41 +0530)]
msm: wlan: Fix regulatory rule of JO

Parentheses in 60 gHz band channels related regultory rule is
misplaced, due to which unable to change country code to JO.

To fix this, remove unwanted parentheses.

CRs-Fixed: 2084234
Change-Id: I655990f66929237cd4461462306eab9e66a08663
Signed-off-by: Rajeev Kumar Sirasanagandla <rsirasan@codeaurora.org>
7 years agopower: smb-lib: enable DPDM regulator at CC attach
Ashay Jaiswal [Mon, 17 Jul 2017 09:19:05 +0000 (14:49 +0530)]
power: smb-lib: enable DPDM regulator at CC attach

In case of quick back-to-back  insertion/removal of USB
there is a possibility that VBUS does not fall below the
1V usb-plugout threshold and hence the subsequent insertion
does not generate a plug-in event. This keeps the DPDM
regulator disabled at insertion thus impacting the APSD result.

Fix this by voting to enable the DPDM regulator in the cc-attach
handler.

CRs-Fixed: 2042071
Change-Id: I37a32081f0847965e34eb1c4114602ec61e9a005
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
7 years agomsm: camera: Instead of read_lock use read_lock_irqsave.
Trishansh Bhardwaj [Thu, 13 Jul 2017 11:40:39 +0000 (17:10 +0530)]
msm: camera: Instead of read_lock use read_lock_irqsave.

Prevent deadlock between tasklet and delete_stream by stopping
irq during delete_stream.

Change-Id: Ibcc9fd44403d24112b01150a7d1f3c6e705ea99a
Signed-off-by: Trishansh Bhardwaj <tbhardwa@codeaurora.org>
7 years agocpufreq: interactive: fix to come out of hysteresis mode
Ramakrishna Gottimukkula [Wed, 26 Jul 2017 18:03:28 +0000 (23:33 +0530)]
cpufreq: interactive: fix to come out of hysteresis mode

If policy max is set to less than or equal to hispeed_freq, governor can
get stuck in hysteresis mode as long as cpufreq_interactive_timer keeps
coming with in hysteresis period (max_freq_hysteresis). This is because
governor updates hysteresis start time (max_freq_hyst_start_time)
everytime new frequency is greater than or equal to policy max and
jump_to_max_no_ts flag is false. Irrespective of load new frequency in
this case will always end up at least at hispeed_freq due to hysteresis.
As policy max is set to less than or equal to hispeed_freq, this will
result in updating max_freq_hyst_start_time if jump_to_max_no_ts is
false. This will end up restarting hysteresis period. This mode will
break only if timer gets delivered after hysteresis period. Otherwise it
keeps extending.

To come out of this, don't update max_freq_hyst_start_time if new
frequency is bumped up to hispeed_freq due to hysteresis even though the
required frequency as per load is less than policy max and hispeed_freq.

Change-Id: Ib1e9e612036afeb12acd86e603b019e227920d85
Signed-off-by: Ramakrishna Gottimukkula <rgottimu@codeaurora.org>
7 years agoMerge "mhi: uci: Fix a bug related to split transfer packets"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:22 +0000 (00:21 -0700)]
Merge "mhi: uci: Fix a bug related to split transfer packets"

7 years agoMerge "diag: Flush control workqueue immediately on channel close"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:12 +0000 (00:21 -0700)]
Merge "diag: Flush control workqueue immediately on channel close"

7 years agoMerge "diag: Free the read workqueue structure to avoid memory leak"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:12 +0000 (00:21 -0700)]
Merge "diag: Free the read workqueue structure to avoid memory leak"

7 years agoMerge "ARM: dts: msm: Make allocation for diag as guaranteed on sdm630"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:11 +0000 (00:21 -0700)]
Merge "ARM: dts: msm: Make allocation for diag as guaranteed on sdm630"

7 years agoMerge "power: smb-lib: Update the FLOAT detection logic"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:10 +0000 (00:21 -0700)]
Merge "power: smb-lib: Update the FLOAT detection logic"

7 years agoMerge "ath10k: Fix dst CE ring configuration for CE5"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:09 +0000 (00:21 -0700)]
Merge "ath10k: Fix dst CE ring configuration for CE5"

7 years agoMerge "msm: ipa3: add offline charging support"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:08 +0000 (00:21 -0700)]
Merge "msm: ipa3: add offline charging support"

7 years agoMerge "msm: sde: fix kernel booting failure in sde driver"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:07 +0000 (00:21 -0700)]
Merge "msm: sde: fix kernel booting failure in sde driver"

7 years agoMerge "msm: sensor: Fix for variable being de-referenced without proper check"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:06 +0000 (00:21 -0700)]
Merge "msm: sensor: Fix for variable being de-referenced without proper check"

7 years agoMerge "msm: camera: Add support for TOF sensor on msm8998 QVR"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:06 +0000 (00:21 -0700)]
Merge "msm: camera: Add support for TOF sensor on msm8998 QVR"

7 years agoMerge "ath10k: fix memory leak in rx ring buffer allocation"
Linux Build Service Account [Fri, 28 Jul 2017 07:21:05 +0000 (00:21 -0700)]
Merge "ath10k: fix memory leak in rx ring buffer allocation"

7 years agoASoC: msm8998: Update DAI IDs for DSP HW Transcode loopback
Siddartha Shaik [Wed, 19 Jul 2017 13:52:47 +0000 (19:22 +0530)]
ASoC: msm8998: Update DAI IDs for DSP HW Transcode loopback

Replace Multimedia14 and Multimedia18 with Multimedia26
and Multimedia27 respectively for transcode loopback

CRs-Fixed: 2077700
Change-Id: I40e6666882859a5699e86856a0b8769eb295f748
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
7 years agoASoC: msm: Add new FE Dais for DSP HW transcode loopback
Siddartha Shaik [Wed, 19 Jul 2017 10:10:12 +0000 (15:40 +0530)]
ASoC: msm: Add new FE Dais for DSP HW transcode loopback

Add new frontend DAIs MultiMedia26 and MultiMedia27
for DSP HW transcode loopback.

CRs-Fixed: 2077700
Change-Id: Iedbd7da5e83a556749d9dc03cf39b0f942d634fa
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
7 years agomhi: uci: Fix a bug related to split transfer packets
Sujeev Dias [Fri, 30 Jun 2017 04:16:30 +0000 (21:16 -0700)]
mhi: uci: Fix a bug related to split transfer packets

When transfer buffer is larger than available space, uci driver will
split the transfer into multiple transactions. Driver incorrectly
calculated the transfer length and caused infinite transfer.
Simplify uci write method to avoid such bugs.

CRs-Fixed: 2083693
Change-Id: Ic7169cefda6a4637511ecfa3ce5ddde6f3d55f8c
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
7 years agoMerge "msm: ispif: fix the OOB read issue"
Linux Build Service Account [Thu, 27 Jul 2017 13:47:06 +0000 (06:47 -0700)]
Merge "msm: ispif: fix the OOB read issue"

7 years agoMerge "wcnss: fix the potential buffer flow issue in firmware setup"
Linux Build Service Account [Thu, 27 Jul 2017 13:47:05 +0000 (06:47 -0700)]
Merge "wcnss: fix the potential buffer flow issue in firmware setup"

7 years agorwsem: fix missed wakeup due to reordering of load
Prateek Sood [Wed, 5 Jul 2017 17:54:16 +0000 (23:24 +0530)]
rwsem: fix missed wakeup due to reordering of load

If a spinner is present, there is a chance that the load of
rwsem_has_spinner() in rwsem_wake() can be reordered with
respect to decrement of rwsem count in __up_write() leading
to wakeup being missed.

 spinning writer                  up_write caller
 ---------------                  -----------------------
 [S] osq_unlock()                 [L] osq
  spin_lock(wait_lock)
  sem->count=0xFFFFFFFF00000001
            +0xFFFFFFFF00000000
  count=sem->count
  MB
                                   sem->count=0xFFFFFFFE00000001
                                             -0xFFFFFFFF00000001
                                   RMB
                                   spin_trylock(wait_lock)
                                   return
 rwsem_try_write_lock(count)
 spin_unlock(wait_lock)
 schedule()

Reordering of atomic_long_sub_return_release() in __up_write()
and rwsem_has_spinner() in rwsem_wake() can cause missing of
wakeup in up_write() context. In spinning writer, sem->count
and local variable count is 0XFFFFFFFE00000001. It would result
in rwsem_try_write_lock() failing to acquire rwsem and spinning
writer going to sleep in rwsem_down_write_failed().

The smp_rmb() will make sure that the spinner state is
consulted after sem->count is updated in up_write context.

Change-Id: I96de9a65adedb35d1ee2c6c36dc7759c9b8f5d4d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
7 years agodiag: Free the read workqueue structure to avoid memory leak
Manoj Prabhu B [Thu, 27 Jul 2017 09:57:23 +0000 (15:27 +0530)]
diag: Free the read workqueue structure to avoid memory leak

The patch frees the read workqueue structure after
scheduled workqueue processes the glink buffers and notifies
glink to avoid possible memory leak.

CRs-Fixed: 2083447
Change-Id: I4e562f9d1cbf02d8306e0a127835af85dfa5db23
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
7 years agodiag: Flush control workqueue immediately on channel close
Mohit Aggarwal [Mon, 24 Jul 2017 08:33:56 +0000 (14:03 +0530)]
diag: Flush control workqueue immediately on channel close

Currently, flushing of control workqueue is happening
under protection which is causing a deadlock. The patch
fixes the issue by flushing the control workqueue on
immediate closure of channel.

CRs-Fixed: 2081948
Change-Id: I6a7b1ee7cbabf2974700e28fc62c6d8fa3d464ed
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
7 years agoARM: dts: msm: Make allocation for diag as guaranteed on sdm630
Mohit Aggarwal [Wed, 31 May 2017 11:00:03 +0000 (16:30 +0530)]
ARM: dts: msm: Make allocation for diag as guaranteed on sdm630

Currently, memshare allocates 5MB memory to diag client on
receiving requests from modem. With the patch diag client
will be considered guaranteed on sdm630 to avoid memory
allocation failure on modem SSRs. Also being guaranteed
client allocated memory will never be freed.

CRs-Fixed: 2054448
Change-Id: I7b0780d064a27e8ebca9d31747ce1f9c18d84fdb
Signed-off-by: Mohit Aggarwal <maggarwa@codeaurora.org>
7 years agoARM: dts: msm: Support Primary TDM Interface for msm8996
Cong Tang [Fri, 26 May 2017 03:32:39 +0000 (11:32 +0800)]
ARM: dts: msm: Support Primary TDM Interface for msm8996

Support Primary TDM Interface for automotive and use optional property
clk-attribute couple_no to mimic PCM mode.

CRs-Fixed: 2083327
Change-Id: I2ef32eac5ecd4740f0985a77241952abca4ebc52
Signed-off-by: Cong Tang <congt@codeaurora.org>
7 years agoMerge "cnss2: Print string for firmware mode"
Linux Build Service Account [Thu, 27 Jul 2017 02:22:55 +0000 (19:22 -0700)]
Merge "cnss2: Print string for firmware mode"

7 years agoMerge "icnss: Set crash state for PDR"
Linux Build Service Account [Thu, 27 Jul 2017 02:22:54 +0000 (19:22 -0700)]
Merge "icnss: Set crash state for PDR"

7 years agoMerge "hotplug cpu: ratelimit logs for thermal veto"
Linux Build Service Account [Thu, 27 Jul 2017 02:22:53 +0000 (19:22 -0700)]
Merge "hotplug cpu: ratelimit logs for thermal veto"

7 years agoMerge "msm: ipa3: disable clock gating for MISC"
Linux Build Service Account [Thu, 27 Jul 2017 02:22:45 +0000 (19:22 -0700)]
Merge "msm: ipa3: disable clock gating for MISC"

7 years agomsm: ipa3: add offline charging support
Skylar Chang [Thu, 6 Jul 2017 21:31:57 +0000 (14:31 -0700)]
msm: ipa3: add offline charging support

In offline charging mode, modem is not loaded so the proxy
IPA clock vote added by IPA driver on behalf of modem is
never released and this prolongs the charge time. Move the
proxy vote to IPA3_POST_INIT before rmnet_ipa driver init
completes.

Change-Id: I271c8e6916d0c3068f720ae81b67f0fc5c198b6f
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
7 years agocnss2: Print string for firmware mode
Yue Ma [Fri, 21 Jul 2017 00:31:48 +0000 (17:31 -0700)]
cnss2: Print string for firmware mode

This can clearly show the firmware mode sent through QMI message
in the logs to help debugging.

Signed-off-by: Yue Ma <yuem@codeaurora.org>
CRs-fixed: 2059087
Change-Id: I0b11808f00229ed557141226bc2510673a7a1ede

7 years agopower: smb-lib: Update the FLOAT detection logic
Anirudh Ghayal [Wed, 26 Jul 2017 14:56:20 +0000 (20:26 +0530)]
power: smb-lib: Update the FLOAT detection logic

An SDP may get detected as a FLOAT charger by PMIC APSD.
To handle this case do the following steps when a FLOAT
charger is detected -

1. Limit the ICL to 100mA and start USB enumeration
2. If enumeration succeeds, USB notifies a valid
   ICL and the charger updates ICL and charger-type to SDP.
3. If enumeration fails, USB notifies -ETIMEDOUT and
   charger applies ICL based on the Rp value.

CRs-Fixed: 2081457
Change-Id: I2747a42ed9f9531e83c53d781a8ae9baa9aa74d0
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
7 years agoMerge "ARM: dts: msm: enable DP functionality for SDA660 HDK platform"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:59 +0000 (08:44 -0700)]
Merge "ARM: dts: msm: enable DP functionality for SDA660 HDK platform"

7 years agoMerge "msm: camera: Make use of mutex lock to avoid race condition"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:56 +0000 (08:44 -0700)]
Merge "msm: camera: Make use of mutex lock to avoid race condition"

7 years agoMerge "msm: ais: sensor: validating the flash initialization parameters"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:55 +0000 (08:44 -0700)]
Merge "msm: ais: sensor: validating the flash initialization parameters"

7 years agoMerge "icnss: Consolidate logging message"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:54 +0000 (08:44 -0700)]
Merge "icnss: Consolidate logging message"

7 years agoMerge "drm/msm: Turn off hardware clock gating before reading A5XX registers"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:51 +0000 (08:44 -0700)]
Merge "drm/msm: Turn off hardware clock gating before reading A5XX registers"

7 years agoMerge "ARM: dts: msm: Add qseecom device node on msm8996 lfv platform"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:50 +0000 (08:44 -0700)]
Merge "ARM: dts: msm: Add qseecom device node on msm8996 lfv platform"

7 years agoMerge "misc: qseecom: Support qseecom deferred probing"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:49 +0000 (08:44 -0700)]
Merge "misc: qseecom: Support qseecom deferred probing"

7 years agoMerge "scsi: ufs: Serialise ufs clock gating and ungating"
Linux Build Service Account [Wed, 26 Jul 2017 15:44:42 +0000 (08:44 -0700)]
Merge "scsi: ufs: Serialise ufs clock gating and ungating"

7 years agoinput: misc: hbtp_input: fix memory corruption in list_del_entry
Vevek Venkatesan [Mon, 10 Jul 2017 09:39:39 +0000 (15:09 +0530)]
input: misc: hbtp_input: fix memory corruption in list_del_entry

Fix memory corruption in the hbtp_input driver by adding
complete in the release routine to resolve the Kernel crash
in __list_del_entry corruption.

Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
Change-Id: I764923317f720137bfd4e7adfc6bf763a36911c3

7 years agomsm: mdss: do not update polarity for DSI interface
zhaoyuan [Wed, 17 May 2017 10:00:12 +0000 (18:00 +0800)]
msm: mdss: do not update polarity for DSI interface

Polarity should be updated based on HDMI resolution
for HDMI display. However, DSI interface does not need
to update polarity.

CRs-Fixed: 2046790
Change-Id: I4a30fcd7ebec70224accd2178c14bd37d2059f4e
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
7 years agoARM: dts: msm: enable DP functionality for SDA660 HDK platform
zhaoyuan [Wed, 21 Jun 2017 02:58:32 +0000 (10:58 +0800)]
ARM: dts: msm: enable DP functionality for SDA660 HDK platform

SDA660 HDK platform has DP hardware blocks, so enable it in the
device tree.

CRs-Fixed: 2064346
Change-Id: Ieb524e37ed2f4cdd5776759b00ec182378ff6ff5
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
7 years agohotplug cpu: ratelimit logs for thermal veto
Prateek Sood [Thu, 11 May 2017 11:32:29 +0000 (17:02 +0530)]
hotplug cpu: ratelimit logs for thermal veto

Thermal notifier callback is not allowing CPU
to come online. Rate limit logs to avoid watchdog
non-secure bite as it is a valid rejection due to
high temperature of SOC.

Change-Id: If3f8df7370e6ffd18b50e7451431d6a26023359d
Signed-off-by: Prateek Sood <prsood@codeaurora.org>
7 years agomsm: camera: Make use of mutex lock to avoid race condition
annamraj [Wed, 19 Jul 2017 11:22:55 +0000 (16:52 +0530)]
msm: camera: Make use of mutex lock to avoid race condition

Make use of mutex lock to access IOCTL so that two threads
can avoid race condition.

Change-Id: I00db78a42c86eef8a157b5b3547e4ca0006b0853
Signed-off-by: annamraj <annamraj@codeaurora.org>
7 years agoath10k: fix memory leak in rx ring buffer allocation
Rakesh Pillai [Tue, 25 Jul 2017 09:34:17 +0000 (15:04 +0530)]
ath10k: fix memory leak in rx ring buffer allocation

The rx ring buffers are added to a hash table if firmare
support full rx reorder. If the full rx reorder support
flag is not set before allocating the rx ring buffers,
none of the buffers are added to the hash table. When we
unload the module, this hash table is checked for freeing
the allocated rx ring buffers. Since none of the rx ring buffers
were added to the hash table, this memory is leaked.

Set the rx full reorder support flag before we allocate
the rx ring buffer to avoid the memory leak.

CRs-Fixed: 2081334
Change-Id: I6b7cbe05b914cf9aedd8e1ad54ccc4738f8b01e8
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
7 years agoMerge "spcom: ignore CONNECTED notification while closing the channel"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:50 +0000 (15:29 -0700)]
Merge "spcom: ignore CONNECTED notification while closing the channel"

7 years agoMerge "msm: vidc: retain clock rate across power suspend/resume"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:49 +0000 (15:29 -0700)]
Merge "msm: vidc: retain clock rate across power suspend/resume"

7 years agoMerge "ARM: dts: msm: Add intermediate voting for DDR in memlat for sdm630"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:48 +0000 (15:29 -0700)]
Merge "ARM: dts: msm: Add intermediate voting for DDR in memlat for sdm630"

7 years agoMerge "msm: sensor: Fix to validate the settings size in flash"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:47 +0000 (15:29 -0700)]
Merge "msm: sensor: Fix to validate the settings size in flash"

7 years agoMerge "msm: camera: Prevent kernel info leak."
Linux Build Service Account [Tue, 25 Jul 2017 22:29:46 +0000 (15:29 -0700)]
Merge "msm: camera: Prevent kernel info leak."

7 years agoMerge "ARM: dts: msm: Add pinctrl bindings for msm8998"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:45 +0000 (15:29 -0700)]
Merge "ARM: dts: msm: Add pinctrl bindings for msm8998"

7 years agoMerge "msm: kgsl: Update total time at right place for accurate GPU busy"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:45 +0000 (15:29 -0700)]
Merge "msm: kgsl: Update total time at right place for accurate GPU busy"

7 years agoMerge "cnss2: Do not deinit MHI right after powerup failure"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:44 +0000 (15:29 -0700)]
Merge "cnss2: Do not deinit MHI right after powerup failure"

7 years agoMerge "usb: gadget: Disable USB2 LPM Support"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:35 +0000 (15:29 -0700)]
Merge "usb: gadget: Disable USB2 LPM Support"

7 years agoMerge "clk: msm: Fix pll out div programming"
Linux Build Service Account [Tue, 25 Jul 2017 22:29:34 +0000 (15:29 -0700)]
Merge "clk: msm: Fix pll out div programming"

7 years agoicnss: Set crash state for PDR
Sameer Thalappil [Tue, 25 Jul 2017 20:24:48 +0000 (13:24 -0700)]
icnss: Set crash state for PDR

For PDR, the crashed state should be set to invoke driver's
PDR/SSR routine rather than the remove routine.

CRs-Fixed: 2082279
Change-Id: I5f5d51c530c563d93eeaf183ee10ac558f5d5a1a
Signed-off-by: Sameer Thalappil <sameert@codeaurora.org>