msm: qdsp6v2: NULL pointer check on userspace data argument in kernel

The null pointer check is required to ensure that userspace data
in kernalspace is not null.

Change-Id: I9e522c393ae643626a4bae03731a73f5d6db6458
CRs-Fixed: 563752
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
ARM: dts: msm: fix ssd2080m pixel corruption issue

There's pixel corruption issue on the right corner of
ssd2080m with current panel setting, vendor suggests to
update porch and gate setting to address this issue.

CRs-fixed: 591272
Change-Id: Ibff3312b4dd89867ca2b4b882d62315b39dd4ec7
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Merge "ARM: dts: msm: fix ssd2080m pixel corruption issue"
ARM: dts: msm: enable LP11 configuration for ssd2080m

ssd2080m requires panel reset after LP11 timing starts,
add extra 50ms delay after reset to ensure the safety.

Change-Id: I5278443a5555dcc59498a52984c9523134b35d50
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Merge "ARM: dts: msm: enable LP11 configuration for ssd2080m"
Merge "msm: qdsp6v2: NULL pointer check on userspace data argument in kernel"
diag: Safeguard for bound checks and integer underflow

At certain point in diag driver there can be integer underflow
and thus can lead to memory leak. Bound checks are placed to
ensure correct behavior of condition statements.

Change-Id: I47e02f764c2c7412db6f90fd42192fee32a761d3
CRs-fixed: 549470
Signed-off-by: Katish Paran <kparan@codeaurora.org>
ARM: dts: msm: Update USB HSPHY init parameters for skug

These are PHY electrical setting related parameters that are
required to pass high speed electrical compliance tests.

Change-Id: I1abbf67dd2e7270ea058b93d4975c86cbfcc8775
Signed-off-by: Guoping Yu <guopingy@codeaurora.org>
rtc: alarm: update power_on alarm setting logic

The previous power_on alarm value should be checked to avoid
cancelling the alarm by mistake.

Change-Id: I4de12265416fab41a9c591d09961c9fef0d25917
Signed-off-by: Xiaocheng Li <lix@codeaurora.org>
qpnp-rtc: clear alarm register when rtc irq is disabled

The rtc alarm register should be cleared when the rtc irq is
disabled

Change-Id: I97a8bf989ff610093240a6b308a297702da6cb89
Signed-off-by: Xiaocheng Li <lix@codeaurora.org>
msm: vidc: add sleep of 100us before clock disable

ARM9 execute following sequence when venus is idle
1. Disable ARM9 watchdog
2. Set bit 30 of A_VENUS_CPU_CS_SCIACMDARG0 register
   to indicate venus is idle
3. Write HFI_MSG_SYS_IDLE to message queue
4. Raise interrupt to host
5. ARM9 execute wait for interrupt instruction to go
   into low power state. This will internally drain the
   ARM9 write buffer which can generate bus transaction.
6. ARM9 in idle

Host clock gate venus based on following sequence
1. Host receive HFI_MSG_SYS_IDLE from the msg queue
2. Host check both cmd / msg queue are empty by
   comparing the queue read/write pointers.
3. Host check bit 30 of A_VENUS_CPU_CS_SCIACMDARG0
   register to confirm it indicate idle
4. Host clock gate whole venus

As the host clock gate venus in step 4, ARM9 is still
in step 5&6. The sleep will ensure that step 5 and 6
are completed before host clock gates venus.

CRs-Fixed: 589417
CRs-Fixed: 595251
Change-Id: Idf1f788718adea2dacceca97afa4ba4fe4562ddd
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Merge "ARM: dts: msm: Update USB HSPHY init parameters for skug"
Merge "rtc: alarm: update power_on alarm setting logic"
Merge "qpnp-rtc: clear alarm register when rtc irq is disabled"
Merge "msm: vidc: add sleep of 100us before clock disable"
Merge "diag: Safeguard for bound checks and integer underflow"
Revert "ARM: dts: msm: fix ssd2080m pixel corruption issue"

This reverts commit 8f783c0162c13ce43269277dccdcf26330db9139.

Change-Id: I0bf72b6bd1a79ef6d3dc65e06d50c67a95455526
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
msm: mdss: Replace enums with strings in panel dtsi

To make dtsi files more readable, enums or u32
values that referred to strings in the panel
dtsi files are replaced by strings.

CRs-Fixed: 511801
Change-Id: I516358c7027fe9ed05541b56c2de47280a23baab
Signed-off-by: Casey Piper <cpiper@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
ARM: dts: msm: correct ssd2080m panel commands and timing

Update ssd2080m panel on/off commands,vertical/horizontal
porch values and timing according to vendor's suggestion

CRs-fixed: 569455
Change-Id: Ia60bb8caf55ebbff96751f6b9706f9ef682428c7
Signed-off-by: Ray Zhang <rayzhang@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
Merge "Revert "ARM: dts: msm: fix ssd2080m pixel corruption issue""