defconfig: default governor: revert to ktoonservative

Ktoonservative has the best balanced setting for battery life and performance
omap: cpu: cpuidle: correct idle states for exit latency and tresholds

------------------------------------------------------------------------------------
Cstatesexit_latencythresholds
OMAP4430CPUsMPUCoreususSystemClock
------------------------------------------------------------------------------------
C1WFIONON44ON
------------------------------------------------------------------------------------
C2OFFINAINA300300ON
------------------------------------------------------------------------------------
C3OFFCSWROSWR500010000OFF
------------------------------------------------------------------------------------
C4OFFOSWROSWR520035000OFF
------------------------------------------------------------------------------------

------------------------------------------------------------------------------------
Cstatesexit_latencythresholds
OMAP4460CPUsMPUCoreususSystemClock
------------------------------------------------------------------------------------
C1WFIONON44ON
------------------------------------------------------------------------------------
C2OFFINAINA3001800ON
------------------------------------------------------------------------------------
C3OFFCSWROSWR40004000OFF
------------------------------------------------------------------------------------
C4OFFOSWROSWR42004200OFF
------------------------------------------------------------------------------------

------------------------------------------------------------------------------------
Cstatesexit_latencythresholds
OMAP4470CPUsMPUCoreususSystemClock
------------------------------------------------------------------------------------
C1WFIONON44ON
------------------------------------------------------------------------------------
C2OFFINAINA5001200ON
------------------------------------------------------------------------------------
C3OFFCSWROSWR53005300OFF
------------------------------------------------------------------------------------
C4OFFOSWROSWR550015000OFF
------------------------------------------------------------------------------------
Backport ipv6 addrconf.c and dependencies from 3.0.101
Fixes kernel nonstop spamming on ipv6 networks, preventing the device from entering in standby and generating ipv6 traffic affecting phone performance

The dmesg was like this:

<7>[11432.377075,1] p2p0: GOT RA with prefix : rlft 0, vlft 921600,plft 230400, period 0
<7>[11432.377288,1] p2p0: GOT RA with prefix : rlft 0, vlft 921600,plft 230400, period 0
<7>[11432.377441,1] wlan0: GOT RA with prefix : rlft 0, vlft 921600,plft 230400, period 0
<7>[11432.377624,1] wlan0: GOT RA with prefix : rlft 0, vlft 921600,plft 230400, period 0
<7>[11432.379455,1] p2p0: GOT RA with prefix : rlft 0, vlft 921600,plft 230400, period 0
<7>[11432.379577,1] p2p0: GOT RA with prefix : rlft 0, vlft 921600,plft 230400, period 0
<7>[11432.379821,1] wlan0: GOT RA with prefix : rlft 0, vlft 921600,plft 230400, period 0
<7>[11432.380004,1] wlan0: GOT RA with prefix : rlft 0, vlft 921600,plft 230400, period 0
<7>[11432.381622,1] p2p0: RS timer expired.
<7>[11432.381927,1] p2p0: RS timer expired.
<7>[11432.382080,1] wlan0: RS timer expired.
<7>[11432.382202,1] wlan0: RS timer expired.

Change-Id: I03f76a03528e7b12da742c57fa18d0d49f8b08ee
OMAP4430: USB Host: Implement workaround for Errata i719

OMAP4430: USB Host: Implement workaround for Errata i719

The OMAP4 EHCI controller has the following defect (errata ID i719):

Title:
	HS USB: Multiple OFF Mode Transitions Introduce Corruption

Description:
	When the system enters off mode, the save-and-restore (SAR)
        process comes into play. When the save of the USB context
	occurs, an extra pulse of UTMI_root clock coming from USB
	DPLL is entering the IP, and generates a minor corruption.
	This corrupted context is saved and restored later.
	This corruption will impact the next use of the USB module:
	it could be while resuming a suspended device, or it could
	be upon the enumeration of a new device. The exact failure
	is not predictable: disconnection or stalls have been observed.
	TLL and external PHY modes are impacted.

WORKAROUND:
	During ON time, anytime before starting the next save sequence:
	• Set the CM_L3INIT_HSUSBHOST_CLKCTRL[1:0] MODULEMODE bit field
	  to 0x2 (enabled).
	• Wait 1 ms.
	• Set the same bit field back to 0x0 (disabled).

All OMAP4430 devices are impacted.

Change-Id: I63c866504ae3899c73755e6f6b00d388205c20bd
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
usb: ehci: fix the host wakeup state machine.

usb: ehci: fix the host wakeup state machine.

Current code enables host clocks and disables immediately
which can have side effects if port status change is not propagated
and clocks are cut, so enable clocks if ports are suspended
in all wakeup paths either from io-pad wakeup or through
bus resume in suspend path.

Change-Id: I5a03fcf46160176289d41cda6574c0c261a13e94
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
Revert "usb: ehci: fix the host wakeup state machine."

This reverts commit 01c86d988a6a4a71074a0fdc22b9181d3cbec087.
ST_Wakelock needs 5s timeout at least
ARM: OMAP4: USB: Update workaround for USB errata i719

ARM: OMAP4: USB: Update workaround for USB errata i719

Due to USB errata i719 the USB host save-and-restore context can be corrupted
if the device enters off mode more than two times without enabling the USB
host controller in between.

The corruption is occuring during the software save of the USB context which
occurs on entry to every off mode attempt. To avoid this problem only save the
USB context if the USB host controller has been enabled since the previous off
mode attempt. We do not need to save the USB context on every entry to off mode
if the USB controller has not been enabled.

Change-Id: I67e07963679af6494ef289eb10db09c0162d6f00
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Volodymyr Riazantsev <v.riazantsev@ti.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
OMAP4430: USB Host: Implement workaround for Errata i687

OMAP4430: USB Host: Implement workaround for Errata i687

The OMAP4 EHCI controller has the following defect (errata ID i687):

Title:
	USB TLL Hold Timing Violation

Description:
	There is a timing hold violation on an internal logic on
	the clock USB TLL path resulting in a systematic connection
	failure on the TLL link

WORKAROUND:
	As part of workaround, next should be done:
	Set the I/O drive strength to 1.
	Depending which USB host subsystem is used,
	• Port B1 used: Set CONTROL.CONTROL_SMART2IO_PADCONF_2[11] USBB1_DR0_DS = 0x1
	• Port B2 used: Set CONTROL.CONTROL_SMART2IO_PADCONF_2[12] USBB2_DR0_DS = 0x1

All OMAP4430 devices are impacted.

Change-Id: Iba45e5a3b04a6180db3398edb8c00563f67f6105
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
usb: ehci: fix the host wakeup state machine.

usb: ehci: fix the host wakeup state machine.

Current code enables host clocks and disables immediately
which can have side effects if port status change is not propagated
and clocks are cut, so enable clocks if ports are suspended
in all wakeup paths either from io-pad wakeup or through
bus resume in suspend path.

Change-Id: I5a03fcf46160176289d41cda6574c0c261a13e94
Signed-off-by: Govindraj.R <govindraj.raja@ti.com>
Signed-off-by: Ruchika Kharwar <ruchika@ti.com>
ARM: OMAP: HS USB Host: fix unbalanced pm calls

ARM: OMAP: HS USB Host: fix unbalanced pm calls

There is an issue with unbalanced pm calls.
Only EHCI or only OHCI works good but not together.
Issue appears when OHCI suspends whereas EHCI is active
or vice versa - anyway all HSUSBHOST goes to suspend.
This patch fixes this issue.

Change-Id: Ie4c4e4d4ff210c8ceeec4415569660f8646e8ed5
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
USB: OHCI: do not poll root hub status if HC is not running

USB: OHCI: do not poll root hub status if HC is not running

If the OHCI root hub is suspended the clocks may be
not provided to HW and we get errors on OHCI registers
access. So do not poll it in such cases (like is done
for EHCI)

Change-Id: Ic81833a87c479822fe3c7f23792ee7ac7154e248
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
hold bt/gps chip in reset for a longer time

Change-Id: Ide023552240d67a6842db4ead53cf2d7a0f78d22