power: bq27541 driver - serialize get_property

 * Currently, get_property() and its callees are not thread-safe, since
   they share some global state, which they access without serialization
   or guaranteed atomicity.

 * get_property() can be called in a reentrant fashion from either
   several concurrent sysfs accesses, or a sysfs access concurrently with
   an access from power_supply_core.c, which in turn are triggered from
   a work queue in the driver itself.

 * This fixes bogus readings affecting the capacity and the charge_now
   values - possibly others as well.

Signed-off-by: Alex Hornung <alex@alexhornung.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
power: bq27541_battery - Provide charge & energy measurements

 * Since the fuel gauge chip also provides current energy and
   current charge measurements, expose these as well.

Change-Id: Ibd03e3dfff79e61ffa89c86550eb381e70dc2a32
Signed-off-by: Alex Hornung <alex@alexhornung.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Workaround for crash when unplugging OTG devices.

Just always disable the IRQs instead of checking with dev which causes a crash upon device retrieval.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Add support for kexec-hardboot

"Allows hard booting (i.e., with a full hardware reboot) to a kernel
previously loaded in memory by kexec.  This works around the problem of
soft-booted kernel hangs due to improper device shutdown and/or
reinitialization."
More info in /arch/arm/Kconfig.

Original author: Mike Kasick <mike@kasick.org>
These patches are ported from Asus TF201, to which it
was ported by Jens Andersen <jens.andersen@gmail.com>.

Change-Id: Ibee734f61ffa97577bfbcdd9a8cd567bd2d89f32

Signed-off-by: morfic <morfic@gmail.com>
Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
auto_hotplug: squash commits from Mako.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
mach-tegra: clocks: reduce frequency table, nothing in having it that big if the governor doesn't like it.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>