UPSTREAM: Bluetooth: btmrvl: separate write-to-clear function from interrupt handler

This patch improves readability and makes future changes easier.

Signed-off-by: Bing Zhao <bzhao@marvell.com>

BUG=chrome-os-partner:26511
TEST=hciconfig up and hcitool scan work fine

Change-Id: I197273bb4356cc904911457a655b0669d4427135
Reviewed-on: https://chromium-review.googlesource.com/191933
Reviewed-by: hyuckjoo lee <hyuckjoolee345@gmail.com>
Tested-by: hyuckjoo lee <hyuckjoolee345@gmail.com>
Reviewed-by: Bing Zhao <bzhao@marvell.com>
Tested-by: Bing Zhao <bzhao@marvell.com>
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Commit-Queue: Bing Zhao <bzhao@marvell.com>
(cherry picked from commit 2503502fccb64d521e4ac3cb05bac5e7410f4600)
Reviewed-on: https://chromium-review.googlesource.com/194173
Commit-Queue: Katie Roberts-Hoffman <katierh@chromium.org>
Tested-by: Katie Roberts-Hoffman <katierh@chromium.org>
UPSTREAM: Bluetooth: btmrvl: implement read-to-clear for SD8897 interrupts

For SD8897, CMD52 write_to_clear may have missing interrupts
under certain corner case condition. Use CMD53 read-to-clear
to fix the problem.

Signed-off-by: Bing Zhao <bzhao@marvell.com>

BUG=chrome-os-partner:26511
TEST=hciconfig/hcitool works, a2dp works fine for 12+ hours
on peach_pit.

Change-Id: Id525fd8de181bdf96def10498960694a13e209f4
Reviewed-on: https://chromium-review.googlesource.com/191934
Reviewed-by: hyuckjoo lee <hyuckjoolee345@gmail.com>
Tested-by: hyuckjoo lee <hyuckjoolee345@gmail.com>
Reviewed-by: Bing Zhao <bzhao@marvell.com>
Tested-by: Bing Zhao <bzhao@marvell.com>
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Commit-Queue: Bing Zhao <bzhao@marvell.com>
(cherry picked from commit 1094d0bdf33f112bbd37aae56f89894d2c640bb1)
Reviewed-on: https://chromium-review.googlesource.com/194174
Commit-Queue: Katie Roberts-Hoffman <katierh@chromium.org>
Tested-by: Katie Roberts-Hoffman <katierh@chromium.org>
CHROMIUM: Bluetooth: btmrvl: indicate pscan scheduling instant in a debug event

A vendor specific command is sent to firmware during
initialization to enable this feature. This command is for
SD8897 only.

Signed-off-by: Bing Zhao <bzhao@marvell.com>

BUG=chrome-os-partner:26511
TEST=play video clips with A2DP continuously for 4 hours.

Change-Id: I4550696e55e154d15298c429d6c1f6d7ca0d46c6
Reviewed-on: https://chromium-review.googlesource.com/192240
Reviewed-by: hyuckjoo lee <hyuckjoolee345@gmail.com>
Tested-by: hyuckjoo lee <hyuckjoolee345@gmail.com>
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Commit-Queue: Bing Zhao <bzhao@marvell.com>
Tested-by: Bing Zhao <bzhao@marvell.com>
(cherry picked from commit d78c9abd8c0aab07d2855326eade2947b7dfe275)
Reviewed-on: https://chromium-review.googlesource.com/194175
Commit-Queue: Katie Roberts-Hoffman <katierh@chromium.org>
Tested-by: Katie Roberts-Hoffman <katierh@chromium.org>
CHROMIUM: ARM: exynos: print exynos5800 instead of exynos5422

Change the name of SoC to 5800 from 5422 in boot logs.
This is done as per requirement from business team.

BUG=chrome-os-partner:27871
TEST=Verified UI, DPMS, and S2R on Peach-pi.

Change-Id: Ibbcfbe2050fae7d44c814499a8c7addb9a1744db
Signed-off-by: Rahul Sharma <rahul.sharma@samsung.com>
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/193745
Reviewed-by: Katie Roberts-Hoffman <katierh@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
(cherry picked from commit 56bbd8e71f32b23ad346f22b1117471a3d8a76d4)
Reviewed-on: https://chromium-review.googlesource.com/194431
Commit-Queue: Katie Roberts-Hoffman <katierh@chromium.org>
Tested-by: Katie Roberts-Hoffman <katierh@chromium.org>
CHERRY-PICK: drm/ptn3460: Stop using edid emulation

There have been reports from the field that older devices are suffering
lcd bloom on boot. Although I cannot reproduce it, it's plausible that
the older hardware is failing when reading the emulated edid and we are
failing to get the modes from hardware.

This patch removes the edid emulation and just uses a devicetree supplied
mode.

BUG=chrome-os-partner:28162
TEST=Tested on my snow, screen came up

Change-Id: Iad1acedaa897c3a90a3d143361964aad96914bfa
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/195466
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
(cherry picked from commit c885d2f0af6e72bcaea6f735c1f85b79b3631859)
Reviewed-on: https://chromium-review.googlesource.com/195730
CHERRY-PICK: ARM: exynos: snow: Add mode to ptn node

Add snow's display timings to the ptn node.

BUG=chrome-os-partner:28162
TEST=Tested on snow, screen came up

Change-Id: Ie74dcc17b71d93877c100cb8839aeaf85cb677f3
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/195467
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
(cherry picked from commit 64f2766157c73f4c42ad5d84db4bb443e0afa1c6)
Reviewed-on: https://chromium-review.googlesource.com/195662
CHERRY-PICK: bluetooth: Add support for WB222 [04ca:3007]

BUG=chrome-os-partner:27988
TEST=manual: hciconfig to show device, hcitool scan to look for remote

Change-Id: Ieedeb0809330b56d48bbb618c563ddd397fc36f3
Original-Change-Id: Iebeee86133c705d1d5876beccf4779b40fe48ae4
Signed-off-by: Mohammed Habibulla <moch@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/195354
Reviewed-by: Scott James Remnant <keybuk@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/195784