Revert "Fixes for GCC error on panel"

This reverts commit 80087f349ad98d2ba24a5b479309f1f2dc031433.

Change-Id: I76a1fb252b629c6659e6c0d7e5916536f780d6ff
Revert "drivers: usb: Use Android device as USB keyboard/mouse"

This reverts commit 3eb8c3a879074d8d78e77e94e35eaf41d8911cb5.

Change-Id: Ib44550d32016e0a5d35a3f44494e295e38a6cb57
Revert "usb: ehci-msm: enable HCD_OLD_ENUM"

This reverts commit aafd57b7ff2f3a6117a41a083dbce4d435be042a.

Change-Id: I4108e7121073c574a1889a5038516594d396f26e
Revert "cpufreq: interactive: Optimize sync_freq implementation"

This reverts commit 19d3024b69ab94986de0a1c59ff3a83f0b13d629.

Change-Id: I7f68fa3b96061c33f19d910c087f3b1ffd3b2999
Revert "Touchscreen optimizations"

This reverts commit 37343420c2b5855f4c5dfaecde08080031deb7ad.

See: http://review.cyanogenmod.org/#/c/65727/

Conflicts:
	arch/arm/mach-msm/board-m2_spr.c
	drivers/i2c/busses/i2c-qup.c

Change-Id: If33ad8628be035e4d8518cbd88979955b72f05f3
Signed-off-by: Luis Cruz <ljc2491@gmail.com>
d2: enable usb host notify

Change-Id: I90cb14bfa100ede1bcac0f82922bceda6c7a8656
Revert "usb: otg:  Retry putting the OTG PHY in low power mode."

This reverts commit 39225093680e6a923a646cab9b384b6bbc064548.

Change-Id: I6354c7b439cb3bc938287e89fb8ab18e47cb182b
cpufreq: Persist cpufreq time in state data across hotplug

Cpufreq time_in_state data for all CPUs is made persistent across
hotplug and exposed to userspace via sysfs file
/sys/devices/system/cpu/cpufreq/all_time_in_state

Change-Id: I97cb5de24b6de16189bf8b5df9592d0a6e6ddf32
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
usb: gadget: Ignore the second set_config from the host

Some USB hosts may send SET_CONFIGURATION with same value twice.
The current code implementation of android_work() issues disconnect
event to userspace if SetConfiguration with non-zero value is sent
twice. The Userspace application may disconnect USB and it causes
fail to connect to the USB host.

Fix this by ignoring the second time SET_CONFIGURATION request
from the host only for the same configuration value twice.

CRs-Fixed: 661220
Change-Id: Iec8dd7824fa9f371ea147784cf9137aa88a7128e
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
USB: android: release spinlock before queuing work in android_setup

In android_setup we release spinlock after scheduling the work but there
is no need for holding the spinlock during the schedule_work call
is executed this can lead to spinlock timeouts in case where schedule
work takes more time.

So before scheduling work in android_setup we release spinlock to avoid
potential spinlock lockup or timeout.

CRs-Fixed: 661220
Change-Id: Ibf8ff7f07caf20edf9e646fdcef540fbc6441aec
Signed-off-by: Tarun Gupta <tarung@codeaurora.org>
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
usb: android: Skip the work when set_config arrives with same value twice

Some USB hosts may send SET_CONFIGURATION with same value twice.
The current code implementation processing the 2nd set_config and
schedules the work. The android_work() issues disconnect event to
userspace if SetConfiguration with non-zero value is sent twice.
The userspace applications may disconnect the USB and the device
doesn't connect to the host.

Fix this by avoiding the android_work for the second time SET_CONFIGURATION
request when it receives SetConfiguration request with same configuration
value twice from the host.

CRs-Fixed: 661220
Change-Id: Ic450315a9067b9b679b4936480d125e4e4b7cdf7
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
usb: ci13xxx_udc: Do not clear ENDPTSETUPSTAT during USB BUS RESET

When the host sends a setup packet immediately after the bus RESET,
it is possible that due to interrupt latency the USB software observe
both USB BUS Reset Interrupt and USB interrupt for SETUP packet(UI) bits
getting set at the same time. The USB Interrupt SW routine handles the
reset interrupt as it has more priority than UI interrupt and clear the
ENDPTSETUPSTAT register. If the software clears this register, it will
not know that a SETUP packet arrived.

Fix the issue by not clearing the ENDPTSETUPSTAT during usb bus reset
processing. When USB HOST sends SETUP Packet, device controller sends ACK
and sets ENDPTSETUPSTAT bit and asserts USB Interrupt so that SETUP packet
can be correctly read by the software.

CRs-Fixed: 669902
Change-Id: I86656cfcd70d7bc8e1e84604fdbdccc6437c85b6
Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
nl80211: Correct the usage of command NL80211_CMD_VENDOR

Assign/pass the cur_cmd_info parameter correctly. This fixes a
merge error when open source commit
ad7e718c9b4f717823fd920a0103f7b0fb06183f was pulled into the tree.

CRs-Fixed: 672390
Change-Id: Iaa21a1723709683a6f34b07423b74ef0b6077b68
Signed-off-by: Sunil Dutt <usdutt@codeaurora.org>
drivers: staging: update prima to kk_2.7-stable

Change-Id: I6b362e2a4618ed2742a14060509db41ad96b05be