blaze_tablet: panel: disable LED only when 0 is set

During animated disabling of LED, brighness decrease step by step up
to zero. In this way panel will be disabled twice that leads to
disabling of LCD pannel too, that is incorrect bahavior.

Such problem present on Tablet2 boards and caused by schematic
connection between reset pin GPIO 102 of LVDS chip (TC358765XBG-BGA64)
and the LCD backlight control signal "LED_BKLT_EN".

Signed-off-by: Andrii Beregovenko <a.beregovenko@ti.com>
Change-Id: I46fcb4cc18439a0f70b2e649f1eba677630fe3e7
omap: increase default carveout size for DSP to 6MB

The default memory carveout size for DSP has been increased from
4MB to 6MB to accomodate adding new libraries to the DSP product
base-images.

Change-Id: I55b9e0550b93c1d41ecd2452f45b74bfc14bd9b1
Signed-off-by: Suman Anna <s-anna@ti.com>
OMAPDSS: DSSCOMP:remove compilation warnings

SR requires there should be no compilation warnings

Change-Id: I47b38f7ed134bd0e8f063d2276c31d1946dfcda2
Signed-off-by: Eugen Mandrenko <ievgen.mandrenko@ti.com>
rpmsg: omx: return correct handle count in 'OMX_IOCPVRREGISTER'

omap_ion_share_fd_to_buffers is always returning 2 in num_handles
even for fd's pointing to 1D memory. In order to return the correct
number of handles to rpmsg client in this ioctl call, 'break' out
of for loop instead of continuing.

Change-Id: Ic7fecc682895a63ad7b7f74b8824f0dc0eb57481
Signed-off-by: Emilian Peev <epeev@mm-sol.com>
Signed-off-by: Tyler Luu <tluu@ti.com>
OMAP4: Enable wake-up feature for sys_nirq2

sys_nirq2 pin is used for twl6040 interrupt line which handles
events (like headset plug detection) that may need to wake-up the
device.

Change-Id: I5480a533116096be7678f516e31952a887b22e38
Signed-off-by: Krishnan Vaidyanathan <krishnanvv@ti.com>
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
SMC: Update UUID to match generic, common secure playback driver

Remove WVDRM prepends as this UUID is now generic.

Change-Id: I8b890d3f8227523635a394c9b02d409d597def8c
Signed-off-by: Bryan Buckley <bryan.buckley@ti.com>
BV: Update headers to 2.2

Add bvbltparams.src2auxdstrect,
bvbltparams.maskauxdstrect,
BVFLAG_SRC2_AUXDSTRECT and BVFLAG_MASK_AUXDSTRECT;
Add BVAT_reserved2 bvauxtype;

Change-Id: I40c51f48642693fc8359fcfa15f37664a52f5823
Signed-off-by: Jack Yen <jyen@ti.com>
gcbv: improve check for fill condition

When a usecase generates a fill with a 1x1 destination
we were hitting the blt rather than fill path. This change
improves the check for fill to validate whether there is
a virtual address which the fill code needs anyway as it
directly accessing the memory provided by the src1 buffer
descriptor.

Change-Id: Iafae2dcb8a9b7020d07c6ac7f46a950efb6e4996
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
OMAPLFB: Dont foward compositions to DSSCOMP if overlay is Zero

Do not foward compositions to DSSCOMP in case overlay number
passed by HWC is zero. The dsscomp->num_overlay = 0 means
that there is no primary display and no rendering is required.

Change-Id: If7b582efeb55ce84878d0bfbd19eabd2ebd3afaa
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
Signed-off-by: Dandawate Saket <dsaket@ti.com>
OMAPDSS: connection to HDMI during suspend

This change adds capability to activate HDMI connection if
cable was plugged in during suspend mode.

Change-Id: I3f17489f16a3157fe20ae4ab86b4964a672f595f
Signed-off-by: Mykhailo Denysiuk <x0172934@ti.com>
usb: musb: gadget: use pm autosuspend in musb_gadget_pullup

If musb_gadget_pullup doesn't use pm autosuspend, next may happen:

time |   pseudocode
------------------------------------------------------------
t1   | pm_runtime_put_autosuspend() scedules suspend at 't4'
     |     /* some code running */
t2   | musb_gadget_pullup: pm_runtime_get_sync() <-- cancels requested autosuspend
     |     /* some code running */
t3   | musb_gadget_pullup: pm_runtime_put() <-- suspends device (may happen before t4!)
     |
t4   | <- suspend is expected here, but device may be already suspended between t3 and t4

So use pm autosuspend in musb_gadget_pullup and prevent such situation

Change-Id: I8b9618c6d24bea3810c736f8fc0195802ce79c55
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
USB: musb: do not proceed with interrupt completions if qh is not ready

It's not safe to modify hw_ep if qh is not ready.
This may corrupt data in musb_qh. In RX/TX completions this
may happen on SMP system with current musb host implementation
The main issue is with musb_giveback function. It unlocks and
and after that locks musb->lock so during this time
musb_qh data may be corrupted. This results in null-pointers
dereferences / programming of busy DMA channel / etc in
different places.

This often happens during unlinking URB for ISO and looks like:
CPU0                                  CPU1
...                                   musb_urb_dequeue
...                                      spin_lock_irqsave(&musb->lock)
...                                      (work with musb_qh)
...                                      musb_giveback
...                                         spin_unlock(&musb->lock)
generic_interrupt()                         ...
   spin_lock_irqsave(&musb->lock)           ...
   (work with musb_qh)                      ...
   spin_unlock_irqrestore(&musb->lock)      ...
...                                         spin_lock(&musb->lock)
...                                      (continues work with musb_qh)
...                                      spin_lock_irqrestore(&musb->lock)

Go out from completion if qh is not ready.

Change-Id: I9c9280a7ab7f8e89b2e8bf745800217f903108fc
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
OMAPDSS: DISPC: Use FIR filters other than M19

Pass correct arguments to FIR filter selection.  Previously we
always ended up selecting M19 5-tap filter.

This should improve image quality of scaled layers.

Change-Id: Iabe3219df7dcfd62c713fd92ee9c3d12221bc382
Signed-off-by: Lajos Molnar <lajos@ti.com>
Merge remote-tracking branch 'omapzoom/p-android-omap-3.0'