msm: Adding mechanism to Stop CAMIF Immediately

Currently we have the mechanism to stop CAMIF immeidately from
Kernel Space. This change provides access to this mechanism.

Improving the procedure for CAMIF Stop:
Implemented the recommended mechanism for CAMIF Stop.

This changes improves latency to meet 100ms requirement for
flush() call.

Bug: 9758581
Change-Id: If015241598ff9134d1ce49def35f6083eff2d9c3
Signed-off-by: Abhishek Kondaveeti <akondave@codeaurora.org>
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>
android: configs: Grab the android/configs from kernel/common

This is a squash of all changes from kernel/common android-3.4 up to
  5e35d66 android: configs: add IPV6 ROUTE INFO

Change-Id: I848f1865ec7da1dfc3338a3e9d7f944a6f00f2a6
Signed-off-by: JP Abgrall <jpa@google.com>
(cherry picked from commit 558d4347146662de794143e677443a3236a64904)
android: configs: Add CONFIG_NETFILTER_XT_TARGET_IDLETIMER

Signed-off-by: Ashish Sharma <ashishsharma@google.com>
hammerhead_defconfig: enable extra netfilter configs

Adds netfilter targets
  TARGET_IDLETIMER  b/12479206
  TARGET_REJECT_SKERR -> without this, if an app is blocked by the
  data usage policies, it will not notice that its connection is not
  receiving any packets. With this config, the socket immediately goes
  into error.

Merged the base config from android/configs.
Ignored:
 CONFIG_NETFILTER_XT_TARGET_{NFLOG,TPROXY,TRACE}=y
  -> No harm done if not set.
    TPROXY code already pulled in by XT_MATCH_SOCKET.
    Others are for diagnostics.
 CONFIG_USB_OTG_WAKELOCK=y
  -> not required.
 CONFIG_ANDROID_INTF_ALARM_DEV=y
  -> hammerhead already has a /dev/alarm.

Change-Id: I4448be62e62cbb2ec2f4f2a917f6c09c96651aa4
Signed-off-by: JP Abgrall <jpa@google.com>

Conflicts:

	arch/arm/configs/hammerhead_defconfig
net: wireless: bcmdhd: support Hotspot 2.0 release 1.0

Signed-off-by: Ecco Park <eccopark@broadcom.com>
Power: add an API to log wakeup reasons

Add API log_wakeup_reason() and expose it to userspace via sysfs path
/sys/kernel/wakeup_reasons/last_resume_reason

Change-Id: I81addaf420f1338255c5d0638b0d244a99d777d1
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
POWER: fix compile warnings in log_wakeup_reason

Change I81addaf420f1338255c5d0638b0d244a99d777d1 introduced compile
warnings, fix these.

Change-Id: I05482a5335599ab96c0a088a7d175c8d4cf1cf69
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
POWER: Add an API call to log wake wakeup reason

Change-Id: I8bf670b07dcd52e29214ebb4e6e42dddd8c3d35e
Signed-off-by: Ruchi kandoi <kandoiruchi@google.com>
power: max17048: power down if the battery voltage is too low

The battery could be not charged depends on system load even
if the charger is plugged. Since application doesn't power
down the device when the charger is plugged even if battery
level reach to 0%. As a result, the battery could be severely
drained under this condition.
To avoid sudden power loss by UVLO, monitor the battery voltage
and power down the device if the battery voltage drop below the
threshold.

Change-Id: I88dd068bdfb5aa39c8c35511432bf5a10bc70db5
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>

Conflicts:

	drivers/power/max17048_battery.c
arm/dt: hammerhead: set power down vbatt level to 3.05V

To prevent sudden power loss by UVLO, fuel gauge driver
monitors the battery voltage and power down the device
if battery voltage falls below 3.05V.

Change-Id: Id45acc12edcffe8cc534ebdde083c46ed6573f95
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
msm: camera: return -EIO if daemon hasn't fully launched

Media server depends on camera daemon to be fully launched
to be able to get camera info. Return -EIO if daemon hasn't
subscribed to v4l2 device node. This gives HAL opportunity
to try again.

Bug: 10577806
Signed-off-by: Shuzhen Wang <shuzhenw@codeaurora.org>

Conflicts:

	drivers/media/platform/msm/camera_v2/msm.c