power: Avoids bogus error messages for the suspend aborts.

Avoids printing bogus error message "tasks refusing to freeze", in cases
where pending wakeup source caused the suspend abort.

Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Change-Id: I913ad290f501b31cd536d039834c8d24c6f16928
Signed-off-by: engstk <eng.stk@sapo.pt>
dt2w: add doubletap2wake (disabled by default)
* Squashed, based from showp1984 and flar2 work
* Modes: 0:disabled, 1:enabled, 2:enabled fullscreen

Signed-off-by: engstk <eng.stk@sapo.pt>
dt2w: Prevent touches during phone calls
based on flar2 work

Signed-off-by: engstk <eng.stk@sapo.pt>
defconfig: enable dt2w

Signed-off-by: engstk <eng.stk@sapo.pt>
dt2w: Option to disable with power button

Signed-off-by: engstk <eng.stk@sapo.pt>
dt2w: Power button also disable irq_wake in touch driver, fix unbalanced irq_wake
based on flar2 work

Signed-off-by: engstk <eng.stk@sapo.pt>
defconfig: enable pwrkey_suspend

Signed-off-by: engstk <eng.stk@sapo.pt>
dt2w: add wake_timeout to disable wake functions after a determined period
based on flar2 work

Signed-off-by: engstk <eng.stk@sapo.pt>
defconfig: enable wake_timeout

Signed-off-by: engstk <eng.stk@sapo.pt>
dt2w: prevent end call when wake_timeout and end call with power button are enabled

Signed-off-by: engstk <eng.stk@sapo.pt>
dt2w: merge lates wake timeout and wake gestures fixes

* adjust sweep length and doubletap timeout
* allow longer timeout duration
* increase delay to ensure panel is shut down properly
* fully disable wake functions if s2w and dt2w are disabble while screen is off
* do not start wake timeout if s2w and dt2w are disabled

thanks to flar2

Signed-off-by: engstk <eng.stk@sapo.pt>
USB Fast Charge for Nexus 5

Increases input current limit to 900mA when charging via USB.
This patch does not force AC mode because this device is capable
of a charging at a much higher current limit than some USB ports
are able to deliver.

Signed-off-by: flar2 <asegaert@gmail.com>

Removed info to get less spam in log

Signed-off-by: engstk <eng.stk@sapo.pt>

Conflicts:
	drivers/power/bq24192_charger.c
Enable proprietary charger detection (e.g. iPhone/iPad charger) and treat it as AC power source.

Signed-off-by: engstk <eng.stk@sapo.pt>
fastcharge: increase battery charging current to use higher input current

Signed-off-by: Paul Reioux <reioux@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
USB: Set power supply online status to false after cable disconnect

During bootup, power supply online status is set to true in
qpnp_charger_probe() as soon as usb cable insert is detected by
PMIC without waiting for notification from USB driver.
Later when usb cable is disconnected before charger detection
mechanism starts, online status is not set to false by USB.
As part of cable disconnect, USB checks in msm_otg_notify_charger()
whether the cur_power is same as requested mA, if both are same
then USB does not call power_supply_set_online() to set it to false.

Fix the issue by setting power supply online status to false for
the scenario when usb cable is disconected during bootup before
charger detection mechanism is completed.

CRs-fixed: 634183
Change-Id: Ibd57a40c7364e13bb10870e9e6343224e01171d7
Signed-off-by: Saket Saurabh <ssaurabh@codeaurora.org>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
defconfig: USB Fast Charge

Signed-off-by: engstk <eng.stk@sapo.pt>
lower GPU volt constraints a bit

Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
gpiomux-8974: Modify direction of suspended GPIO

changed the direction and strength for some below mentioned GPIOs
as per 8974 suggested GPIO settings in Rockbottom.
With new config 0.400-0.500mA been saved on floor in Audio
use case.
Settings are applicable when there is no user to GPIOs
Following are the changes made:
	GPIO# Changed       What Changed
	24                  IN->OUT 8mA->2mA
	46                  IN->OUT 8mA->2mA
	80                  8mA->2mA
	82                  IN->OUT 8mA->2mA
	104                 IN->OUT 8mA->2mA PD->NO PULL
	105                 IN->OUT 8mA->2mA
	106                 IN->OUT 8mA->2mA

Change-Id: Iaedc91b3d696a588e0723ffb495be179c7e0ae6c
Signed-off-by: Tirtha Kanti Ghosh <tirtha@codeaurora.org>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
net: loopback: set default mtu to 64K

loopback current mtu of 16436 bytes allows no more than 3 MSS TCP
segments per frame, or 48 Kbytes. Changing mtu to 64K allows TCP
stack to build large frames and significantly reduces stack overhead.

Performance boost on bulk TCP transferts can be up to 30 %, partly
because we now have one ACK message for two 64KB segments, and a lower
probability of hitting /proc/sys/net/ipv4/tcp_reordering default limit.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>
arm/dt: msm8974: Increase "ib" values for VIDC DDR bandwidth request

As per the recommendation by performance team, update the
"ib" values for DDR BW requests. This change fixes the
display under-runs seen during video playback.

Change-Id: I137814c82b257b8c751dab9df4f705e43fd5643e
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
Signed-off-by: flar2 <asegaert@gmail.com>
Signed-off-by: engstk <eng.stk@sapo.pt>