exynos-cpufreq: Ensure that scaling_available_frequencies is populated

Based on patches by netarchy

Signed-off-by: Andrew Dodd <atd7@cornell.edu>
mach-exynos: stand-hotplug: Improve CPU0 turnoff protection logic

After reading the code further, it turns out the previous fix
may have prevented onlining CPU1 in some or all circumstances.

This changes the CPU0 turnoff protection logic such that it
ONLY skips the hotplugging if CPU0 is chosen for hotplugging out.

Signed-off-by: Andrew Dodd <atd7@cornell.edu>
cm3663: Set initial state of proximity sensor to "far"
mach-exynos: Enable old s5pv310 pm-hotplug module

As the new stand-hotplug routine does not offer any advantages
(and possible some disadvantages) and other integrated hotplug
modules are targeted towards more recent SoCs, let's try our
luck with the tried and true old one.
usb: gadget: Make google gadget code use 2 luns [codeworkx]
exynos4: Disable SW downclock in cpuidle

The Samsung 3.0.x source includes a new exynos4 feature:
reducing CPU clock when in idle.  However, this seems
pointless as the CPU clock gets gated in this state anyway.

Also, the logic for doing this seems to sometimes hang,
as there are occasional cases of the RCU stall detector
going off due to CPU1 getting stuck in exynos4_enter_idle()

This issue seems to go away when disabling the SW downclock
feature with not much negative effect on battery, so disable
it for now until it can be revisited.

Signed-off-by: Andrew Dodd <atd7@cornell.edu>
net: wireless: bcmdhd: Add FW reloading in case of FW hang

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Decrease event wake_lock timeout to 1500 ms

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Fix proper scan command even if request is NULL

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Fix crash on dhdsdio_probe_attach() failure

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Increase pm_notify callback priority

Make pm_notify callback to be called the first on suspend/resume path to
ensure it will always be called.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Always turn Off wlan power on interface down

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
exynos4: Fix warnings introduced by enter_cpuidle commit
net: wireless: bcmdhd: Add 'wlan_ctrl_wake' wakelock

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Fix FW hang recovery

- Reduce IOCTL responce timeout to 2 sec (from 20)
- Fix pending status in case of timeout
- Pass error code from dhd_is_associated() call
- Call cfg80211_disconnected() if no timeout detected

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Move FW hang processign to work queue

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Fix driver hang when resetting

bus->tx_max was not being initialized when we do a reset and
the driver is statically linked.  this led to about a 50%
chance that it would be considered an illegal value when
we send the mac address to the FW.  add code to initialize
it to a safe value until we receive the right value from the fw.

Bug: 5974574

Change-Id: I28ab25d97203ef075e5354c25f85a25daaff5594
Signed-off-by: Mike J. Chen <mjchen@google.com>
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net: wireless: bcmdhd: Fix frame sequence lag issue

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
xt_IDLETIMER: Add new netlink msg type for IDLETIMER.

Send notifications when the label becomes active after an idle period.
Send netlink message notifications in addition to sysfs notifications.

Change-Id: I31677ef00c94b5f82c8457e5bf9e5e584c23c523
Signed-off-by: Ashish Sharma <ashishsharma@google.com>