ASoC: ABE: Correct monitoring filter for Vx-UL and BT-UL

Current Low pass filter for Vx-UL and BT-UL filters monitoring
is done on alternative solution. In case saturation is detected
these filters are not detected. Move back to correct filters
inside the filter list.

Change-Id: I12ecc6b98d5fd2452e106cee67b536ab68d017fa
Signed-off-by: Sebastien Guiriec <s-guiriec@ti.com>
ARM: omap4: tuna: enable compaction in defconfig

Set CONFIG_COMPACTION=y to allow mm to satisfy larger physically
contiguous allocations by moving pages around.

Change-Id: Ibc96cf7e4389d47a30eac7ab94fbfbaa1c7255a7
Signed-off-by: Colin Cross <ccross@android.com>
HACK: omap_hsi: Rx mode configuration update in suspend and resume part

AP tx path ACK timeout issue was observed in resume from off mode part.
	- issue resolved with below configuration
	: setting rx mode to sleep in suspend part
	: setting rx mode back to frame in resume part

Change-Id: I46ff6b652655e63eb8d8cb39c699fa3fda663190
Signed-off-by: wonhee <wonhee48.seo@samsung.com>
Fix for ProcessFlip

The logic to parse the dsscomp overlay structures
is fixed.

Change-Id: I9a6214384cdfe30904c171222c31f783eb5b781b
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
OMAP4: PM: Add Static dependency MPU->L3_2

Keep MPU->L3_2 staticdep.

Random L3 lockups seen.
Usecase: exporting movie using movie-studio app.

There is no noticeable power impact with this staticdep.

Change-Id: I679bcd9ae987e6fac71bb2aa89a4ef9fc211baa5
Signed-off-by: Girish S G <girishsg@ti.com>
OMAP3+: Smartreflex: fix err interrupt disable sequence

sr_modify_mask takes mask, value as parameters, the usage
currently is value, mask which is wrong, as a result
vpboundint_st which was supposed to have been disabled,
does not get disabled.

Change-Id: Id59aea06bc7e980345ae2d522592b2abc1feeede
Signed-off-by: Nishanth Menon <nm@ti.com>
OMAP3+: PM: SR/Class3: disable errorgen before disable VP

SmartReflex AVS Errorgen module supplies signals to Voltage
Processor. It is suggested that by disabling Errorgen module
before we disable VP, we might be able to ensure lesser
chances of race condition to occur in the system.

Change-Id: Id0145adacfa63d7652a29859ad6c95cc2ac61cc8
Signed-off-by: Nishanth Menon <nm@ti.com>
usb: host: omap: add tput constrain on bus_resume

OPP50 for CORE is not supported when EHCI is active. Add a constrain to
force OPP100 when EHCI bus is resumed.

Change-Id: I1b4227993962cc26d4d72b56aba2c396d4d3e6f5
Signed-off-by: Benoit Goby <benoit@android.com>
usb: core: add NO_GET_STATUS quirk

Sometimes, we got sudden disconnect from port resume.
This is because there was no response from GET_STATUS request.
Actually, our modem driver need not check modem status through ep0.
So, we added this quirk.

Change-Id: I76dd02d7606f121266b29a34fc6ccd5483918b42
Signed-off-by: Chulhee Park <chul2.park@samsung.com>
OMAP4: HWMOD: remove tuna specific quirk from hwmod

Keep the USBHOST in original configuration of:
Active Mode : No-Idle, No-Standby
Suspend Mode: Force-Idle, Force-Standby

SmartIdle mode was tried for fixing the ABE L3 Error issue,
which has been Workarounded now by two fixes:
a) disable ABE L3 error interrupt after first hit
b) disable usbauto-suspend when in XCAL mode

Change-Id: I85caee8ddf27657ccd8dbfad56cd747f23537cf4
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Revert "clockevents: Provide interface to reconfigure an active clock event device"

This reverts commit 0da4892a9f99efd4c97079dcda30a79313b0eb20.

This was an old version of the patch, an improved version is
already in v3.0.

Change-Id: Ib88e3d0b1b1f439de8480e1990fba232352d2510
ARM: smp_twd: use clockevents_update_freq to update frequency

clockevents_reconfigure was an older api that doesn't handle
updating the max time between ticks when the frequency changes.
Under some conditions, the boot value of max_delta_ns scaled
by the mult/shift values for the current frequency can result
in a value of 0x200000004 selected as the number of cycles to
program for a long tick, which gets wrapped to 0x4.

Also switch to the matching clockevents_config_and_register
function to register the clockevent, which handles converting
the min/max ticks to ns during init.

Change-Id: I6ca659c309e7bb031cdb1954767b5aa7a022ff44
Signed-off-by: Colin Cross <ccross@android.com>
ARM: omap: counter: add locking to read_persistent_clock

read_persistent_clock uses a global variable, use a spinlock to
ensure non-atomic updates to the variable don't overlap and cause
time to move backwards.

Change-Id: If8e2a0d550170c4235f8e9e5c6b496f61237ea90
Signed-off-by: Colin Cross <ccross@android.com>
ARM: omap4: tuna: enable OMAP_PIN_OFF_WAKEUPENABLE on nfc irq gpio

We definately want to wake-up on this pin.

Change-Id: Iada11e62416b1ef8b30bd0dcaeaf7587b1070c46
Signed-off-by: Nick Pelly <npelly@google.com>
Revert "ARM: OMAP4: tuna: turn off IO wakeup on touch screen IRQ pin"

This reverts commit e8d1ee623cb40e468741ef2bdb7e2ad6303f2847.

For now, WAKEUPENABLE needs to be set on the touchscreen irq pad
to allow it to wake the device from OSWR during idle.

Change-Id: If7fb7ce8c6492694893fa68872bf1fdf149bc476
Signed-off-by: Colin Cross <ccross@android.com>
modem_if: usb: Retry requesting autosuspend if it returns 1

If a device is the RPM_SUSPENDED state rpm_check_suspend_allowed
returns 1. We need to retry requesting an autosuspend later in that
case or the modem driver will not be autosuspended and keep its wakelock
locked.

Change-Id: I104b7420fc3750b7ffe22f5a6f9371db7198f17f
Signed-off-by: Benoit Goby <benoit@android.com>
modem_if: usb: Fix memory leak

Need to drop 2 refcount, 1 that we got in usb_get_from_anchor and 1 last
to free the urb.

Change-Id: I131f3183d0d75bdaafefda071788c0bf6926cb20
Signed-off-by: Benoit Goby <benoit@android.com>
misc: fsa9480: fix race condition when connecting OTG dongle

Add a delay to fix the cases where the external ID IRQ is not stable before
the interrupt handler gets registered, which causes a stream of
connect/disconnect events.

Change-Id: Ib1610308401b818150ea4b943a239340e9ba59dd
Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
omap: dispc: force L3_1 CD to NOSLEEP when dispc module is active.

With the DSS FIFO optimizations, ramdom lockups and reboots are seen. It has
been identified that L3_1 CD is idling and not responding to the traffic
initiated by DSS.  The Workaround suggested by Hardware team is to keep the
L3_1 CD in NO_SLEEP mode, when DSS is active.  Once DSS module is switched to
idle mode, put L3_1 CD to HW_AUTO.

This patch was reverted by 169c5f071800863a44b69f8a9f66d36343c65093, but
a test case was found that reproduces the original problem.

Change-Id: I7acfcaa407bc7a2423fcc7a82f3503a6fbcee331
Signed-off-by: Akash Choudhari <akashc@ti.com>
Signed-off-by: Avinash.H.M. <avinashhm@ti.com>
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
CC: Todd Poynor <toddpoynor@google.com>
CC: Colin Cross <ccross@android.com>
CC: Nishanth Menon <nm@ti.com>
CC: Girish S G <girishsg@ti.com>
CC: Mahesh <mahesh@ti.com>
CC: Dandawate Saket <dsaket@ti.com>
CC: Lajos Molnar <molnar@ti.com>
misc: modem_if: io_device: Drop rx Q when device release

1. Drop all remain rx Q when device release.
	- remain rx data could affect next io device rx
	: this remain data makes ril error when cp reset

Change-Id: I3e4fd127527449afab1e76e68ea45553be524b66
Signed-off-by: wonhee <wonhee48.seo@samsung.com>