Bluetooth: Add AR30XX device ID on Asus laptops

commit 6b6ba88b5bb8779156b21bb957520a448c3642e2 upstream.

The ID is found on Asus K54HR and K53U.
Blacklist the AR3011-based device ID [0489:e03d]
and add to ath3k.c for firmware loading.

Below is the output of usb-devices script:

Before the fiwmware loading:

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0489 ProdID=e03d Rev=00.01
C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

After the fiwmware loading:

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0cf3 ProdID=3005 Rev=00.01
C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Bluetooth: Add AR30XX device ID on Asus laptops

commit 6b6ba88b5bb8779156b21bb957520a448c3642e2 upstream.

The ID is found on Asus K54HR and K53U.
Blacklist the AR3011-based device ID [0489:e03d]
and add to ath3k.c for firmware loading.

Below is the output of usb-devices script:

Before the fiwmware loading:

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0489 ProdID=e03d Rev=00.01
C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

After the fiwmware loading:

T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0cf3 ProdID=3005 Rev=00.01
C:  #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
video: msm: reset msm video to CAF

Reset to CAF/ics_chocolate at "Initial Contribution", commit ID:
3f2bc4d6eb5a4fada842462ba22bb6bbb41d00c7
msm_fb: display: Use spinlock instead of mutex in vsync timer handler

Use spinlock instead of mutex in vsync timer handler to avoid sleeping
from timer context through mutex locks

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm_fb: display: Enable H/W vsync in msm7x27a

Enable tearing effect control in msm7x27a using gpio.

CRs-Fixed: 289024
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
msm_fb: display: add spinlock to synchronize mdp irq enable/disable

To improve performance, UI push thread release mutex before blocked at
waiting for vsync to allow Video thread to be updated at same vsycn.
This also cause contention to enable/disable mdp irq.
Add spinlock to synchronize both threads and irq context.

Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm_fb: display: set flush bit at overlay_unset

set flush bit at overlay_unset to notify mdp blending engine to
pick up new configuration changes.

Signed-off-by: KUogee Hiseh <khsieh@codeaurora.org>
video: msm: update msm video for NPA removal

Original CAF commit for NPA removal ID:
bdc7bbba1cc1202166a45b479b1cb7b0e54eec8f
msm_fb: display: Fix writeback offset with correct fbnum

Fix writeback offset with correct fbnum value to avoid any
memory corruption with image buffers in use

CRs-Fixed: 290324
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm_fb: display: add 3D support at DSI video mode

Currently, only DSI command mode have 3D capability. Add 3D
support for DSI video mode also.

CRs-fixed: 294082
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
video: Kconfig: Remove extraneous dots from help text

Clean up the help text by removing extraneous punctuation.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
msm_fb: display: Fix 8960 HDMI resolution switch issue

Fix 8960 HDMI resolution switch issue by removing core
reset via clock branches. This helps in retaining the
HDMI PLL register values for subsequent cable
disconnect/connect scenarios.

CRs-Fixed: 296879
Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm: display: HDMI: ISR not triggered when HPD occurs during power_off

During power off we disable 5v, power down core, by turning off the
TX channels one by one. When a HPD is triggered the driver has a
software debouncing timer during which interrupts are disabled to
be able to read stable HPD status from the register. When HPD is
detected while the core is being turned off/powered down the driver's
software disables the interrupt and this was making the core to go
into off state. So the fix was to keep the interrupt bit enabled through
the register even during the debounce timeout (this doesn't trigger
unnecessary interrupts due to appropriate clearing and masking of HPD
interrupt bits).

Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm_fb: display: change mdp clock while mdp is idle

Mdp clock need to be adjusted at run time base on the
performance level. However mdp clock can only be changed
when mdp blending/dma engine is idle.

Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm_fb: display: add ioctl for mixer info

Add new ioctl to allow user to query mdp mixer detail configuration.

Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
msm_fb: display: Use __va instead of ioremap for framebuffer memory map

Signed-off-by: Ravishangar Kalyanam <rkalya@codeaurora.org>
msm: display: HDMI: VG2 pipe solid fill color causes MDP to hang

During 3D video playback both VG pipes are used, solid color
fill into VG2 pipe for HDCP compliance purpose causes MDP to hang
instead, we enable Encryption on HDMI TMDS Output
By setting BIT[2] of HDMI_CTRL register to enable encryption on
HDMI TMDS Output.

Signed-off-by: Manoj Rao <manojraj@codeaurora.org>
msm_fb: display: Modify panel init commands for HVGA on 7x25A

Modify panel init commands to send the video timing values for
HVGA resolution on 7x25A.

CRs-Fixed: 297154
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
msm_fb: display: clear interrupt flag to properly wait for vsync

need to properly clear vsync interrupt flag so that subsequent waits
for vsync are handled properly, otherwise wait will return before next
vsync happens

CRs-Fixed: 299043
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>
msm_fb: display: disable fill screen with blank on early suspend

Disable logic to fill framebuffer with black screen before early
suspend, this is causing slugish wipe off from top to bottom
animation on screen.
This logic is still needed for MDP3 because of hardware limitation.

CRs-Fixed: 298050
Signed-off-by: Adrian Salido-Moreno <adrianm@codeaurora.org>