Commit graph

585362 commits

Author SHA1 Message Date
David Collins
4f54b53642 ARM: dts: msm: set VDD_APCC CPR IRQ affinity for CPU0/1 on msm8996pro
Set the CPR IRQ affinity of the VDD_APCC CPR3 controller to be
both cores of the APPS power cluster (i.e. CPU0 and CPU1).  This
ensures that neither of the CPU cores of the performance cluster
will be woken up to service a VDD_APCC CPR IRQ which was
generated when the last performance cluster core power collapsed.

Change-Id: I055e50ffcb85622ddd67d55b44d77c342e9ec074
CRs-Fixed: 949650
Signed-off-by: David Collins <collinsd@codeaurora.org>
2017-03-17 04:11:06 -07:00
Linux Build Service Account
3f942f9f96 Merge "misc: qpnp-misc: change the initcall level for qpnp-misc driver" 2017-03-16 20:03:03 -07:00
Linux Build Service Account
ddd0566475 Merge "power: smb-lib: always assume legacy cable and limit ICL" 2017-03-16 20:03:00 -07:00
Linux Build Service Account
d53dae0046 Merge "power: smb-lib: always assume legacy cable to prevent CC OV" 2017-03-16 20:03:00 -07:00
Linux Build Service Account
b5809c9045 Merge "ASoC: wcd934x: Fix mbhc errors upon removing SND_SOC_WCD934X_MBHC" 2017-03-16 20:02:58 -07:00
Linux Build Service Account
d2932199db Merge "arch: arm64: Fix APPENDED_DTB for arm64" 2017-03-16 20:02:57 -07:00
Linux Build Service Account
ca5b7b47a0 Merge "ARM: dts: msm: increase strength for mclk0 on msm8998 HDK" 2017-03-16 20:02:56 -07:00
Linux Build Service Account
c2d9ad7019 Merge "ARM: dts: msm: enable HDMI and DP functionality for HDK835" 2017-03-16 20:02:56 -07:00
Linux Build Service Account
1debce8dc0 Merge "mhi: mhi_core: move mhi from module_Init to subsys_init" 2017-03-16 20:02:53 -07:00
Linux Build Service Account
1e266f61af Merge "mhi: core: add support for priority based event processing" 2017-03-16 20:02:53 -07:00
Subbaraman Narayanamurthy
122836477b misc: qpnp-misc: change the initcall level for qpnp-misc driver
Change the initcall level of qpnp-misc driver from module_init()
to subsys_initcall() so that the misc devices can be available
earlier. This helps the clients to access the registers under
misc peripheral sooner without a probe deferral.

Change-Id: Ie5df2cb9cf6842c59ec6f00ac9123994111f207b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-16 11:56:59 -07:00
Nicholas Troast
437db3081b power: smb-lib: always assume legacy cable and limit ICL
While in DRP the legacy cable detection may fail. When a legacy cable is
detected the legacy input current limits are enforced by hardware.

Always assume a legacy cable since the legacy cable detection will
fail in some cases. Manually enforce the legacy input current limits to
ensure USB stability and compliance. As a side effect, non-legacy 22k
ohm and 10k ohm Rp adapters will be current limited to legacy standards.

To realize this:
- Set a limit of 100mA as soon as type-c is connected and remove that
  limit once PD is confirmed.
- If PD is not confirmed:
  - SDP:   Use 100mA vote until USB PHY updates it to 500/900mA
  - CDP:   Use 1.5A vote
  - DCP:   Use 1.5A vote
  - HVDCP: Use 3A vote

Change-Id: I049a7ee2099acd9e58df1b9417847daec4854af5
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-16 10:00:40 -07:00
Nicholas Troast
11a54fcfa4 power: smb-lib: always assume legacy cable to prevent CC OV
While in DRP the legacy cable detection may fail. Legacy cable
detection is essential to preventing CC OV damage.

Always assume a legacy cable since the legacy cable detection will fail
in some cases. As a side effect, non-legacy HVDCP adapters will stay at
5V if they have a 10k ohm Rp.

To realize this:
- Remove disallowing PD based on the legacy bit being set. That bit set
  or unset is not reliable and it is safe to try PD.
- Remove the workaround which tries to fix legacy cable being set
  incorrectly at boot. That bit set or unset is not reliable.

Change-Id: I37879866592f63906a7c688f51c309b4e2fee48d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-16 10:00:40 -07:00
Nicholas Troast
fa12cb53c0 power: smb-lib: use updated ICL override bit
Currently to override the ICL the self-clearing ICL override bit is
used. The problem with this bit is that it is self-clearing and a
separate register needs to be read to get the override status.
Furthermore, the hardware will automatically clear this bit on USB
removal.

A new ICL override bit was added in PMI hardware revision 2.0. This bit
is not self-clearing, and can be set prior to USB insertion. Use this
new bit.

Change-Id: I30a601b6aacba3c404ebdfb82e529504a694a048
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-16 10:00:39 -07:00
Nicholas Troast
13bdd014a7 power: smb-lib: let userspace rerun AICL for PD and PPS
Currently AICL will be rerun whenever PD requests a voltage increase.
While this works in most cases it can become problematic if PD requests
the same voltage twice, and the ICL may fall to ICL_MIN.

Since the voltage requests originate in the userspace it would be less
error prone to allow the userspace to rerun AICL instead. Do it.

Change-Id: Id190564e28bcffd72a1de70fa1327fce3e40299e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-16 10:00:39 -07:00
Nicholas Troast
e7f294565f power: smb-lib: prevent unnecessary APSD re-runs
When APSD_START_ON_CC_BIT is set both VBUS and CC must be attached
before APSD runs. This eliminates all issues related to slow plugin.

Unfortunately this means that if CC is re-asserted anytime after APSD
finishes, then it will rerun again.

Fix this by disabling APSD_START_ON_CC_BIT right after CC is asserted,
and enable it after USB removal.

Change-Id: I27d3727647635b78392b925f0881dc3a4ef41623
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-16 10:00:38 -07:00
Nicholas Troast
c3e73c5a50 power: pmic-voter: add is_client_vote_enabled API
A client vote can be enabled or disabled. Add an API which allows
consumers to check the enable/disable status of a client vote.

Change-Id: Ic4e9224c19e63fb88216da0cb775994e3e87c1f7
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-03-16 10:00:37 -07:00
Wei Ding
722434012e ARM: dts: msm: increase strength for mclk0 on msm8998 HDK
Increase the strength of camera mclk0 on msm8998 HDK.

Change-Id: I9804d26265f074e1696f9b324ac8973100bb0a0e
Signed-off-by: Wei Ding <weiding@codeaurora.org>
2017-03-15 17:43:32 -07:00
Linux Build Service Account
6f55033ecf Merge "USB: f_qc_rndis: Change descriptors to support wireless RNDIS" 2017-03-15 10:25:37 -07:00
Linux Build Service Account
c22a9eb365 Merge "ARM: dts: msm: Move improve touch device node for SDM660 QRD" 2017-03-15 10:25:37 -07:00
Linux Build Service Account
6989b3b8c5 Merge "msm: mdss: Fix hist sum sanity check issue" 2017-03-15 10:25:36 -07:00
Linux Build Service Account
358a638e69 Merge "msm: mdss: Fix source split validation" 2017-03-15 10:25:35 -07:00
Linux Build Service Account
921b4d5582 Merge "msm: mdss: Add check to fix null pointer dereference during pipe reset" 2017-03-15 10:25:34 -07:00
Linux Build Service Account
b5337ed3d2 Merge "ARM: dts: qcom: Update DDIC timing for JDI panel" 2017-03-15 10:25:33 -07:00
Linux Build Service Account
39b7c03e8a Merge "msm: mdss: fix secure buffer ref counting" 2017-03-15 10:25:32 -07:00
Linux Build Service Account
0da87c9f78 Merge "icnss: QMI timeout, do not ASSERT when PD down" 2017-03-15 10:25:32 -07:00
Linux Build Service Account
833104d826 Merge "qpnp-fg-gen3: Fix adjusting recharge_soc after charge termination" 2017-03-15 10:25:31 -07:00
Linux Build Service Account
5bd64ca62c Merge "mhi: core: add support for MHI to operate on slave mode" 2017-03-15 10:25:29 -07:00
Linux Build Service Account
e59fe1c6b9 Merge "mhi: core: add support for MHI host managing firmware upload" 2017-03-15 10:25:28 -07:00
Linux Build Service Account
1e3cff4cba Merge "mhi: mhi_rmnet: pass maximum payload size to mhi during registration" 2017-03-15 10:25:27 -07:00
zhaoyuan
41f002b596 ARM: dts: msm: Move improve touch device node for SDM660 QRD
Improve touch device setting is needed by QTC800H only. So move
the node to qrd dts from common file.

Change-Id: I1c04e2b2540a4db9dff839ebe3dfe45efe552c9a
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
2017-03-15 01:28:41 -07:00
Ray Zhang
58d17170ba ARM: dts: msm: enable HDMI and DP functionality for HDK835
HDK835 has HDMI and DP hardware blocks, so enable them in the
device tree.

CRs-Fixed: 2012660
Change-Id: I04a58527875bd6c62d7d31e20bc4ade3824d7e03
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2017-03-14 23:50:42 -07:00
Linux Build Service Account
ad64f3159b Merge "soc: qcom: qmi: add export symbol qmi_response_type_v01_ei" 2017-03-14 23:45:55 -07:00
Linux Build Service Account
012107e127 Merge "ARM: dts: msm: Update more thermal-mitigation levels for PM660" 2017-03-14 23:45:54 -07:00
Linux Build Service Account
31af073d20 Merge "epoll: Drop struct epoll_event definition" 2017-03-14 23:45:53 -07:00
Linux Build Service Account
5362d67feb Merge "msm: ipa: Add spinlock to avoid deleting already deleted list" 2017-03-14 23:45:53 -07:00
Linux Build Service Account
aebd97e372 Merge "msm: ipa: Hold wakelock on Neutrino offload enable" 2017-03-14 23:45:51 -07:00
Linux Build Service Account
081dc50ec7 Merge "clk: qcom: Update ops for esc clock source" 2017-03-14 23:45:50 -07:00
Linux Build Service Account
e326dbfb8f Merge "wil6210: protect against sporadic interrupt during suspend flow" 2017-03-14 23:45:49 -07:00
Linux Build Service Account
ebcfa03af9 Merge "ARM: dts: msm: Modify pm660 gpio3 to 10uA pulldown" 2017-03-14 23:45:48 -07:00
Linux Build Service Account
7309dc1ced Merge "ARM: dts: msm: Add routing controls for sdm660 qrd" 2017-03-14 23:45:47 -07:00
Linux Build Service Account
7a17dfedc6 Merge "ASoc: msm: qdsp6v2: Add timestamp support for offload playback" 2017-03-14 23:45:46 -07:00
Linux Build Service Account
3961be10c4 Merge "soc: qcom: Avoid possible buffer overflow in service-locator" 2017-03-14 23:45:45 -07:00
Linux Build Service Account
040d1247eb Merge "usb: host: xhci: Move LPM support quirk to xhci_plat_quirks" 2017-03-14 23:45:45 -07:00
Linux Build Service Account
bb6ff6488f Merge "ARM: dts: msm: enable display for SDM660 PM660A QRD" 2017-03-14 23:45:44 -07:00
Linux Build Service Account
01107b6d9c Merge "msm: mdss: set interface stopped flag properly during suspend" 2017-03-14 23:45:43 -07:00
Linux Build Service Account
83b21004d2 Merge "msm: mdss: Avoid unnecessary warnings during pipe unstaging" 2017-03-14 23:45:42 -07:00
Linux Build Service Account
6b1a41eea8 Merge "firmware: qcom: tz_log: fix reading log issue on secure boot enabled device" 2017-03-14 23:45:41 -07:00
Linux Build Service Account
29620da5ab Merge "msm: isp: Add support for VFE dual camera resolution limit" 2017-03-14 23:45:40 -07:00
Linux Build Service Account
c4849b9b3e Merge "ARM: dts: msm: update vote on ldo11 for amoled panel on sdm660" 2017-03-14 23:45:39 -07:00