REQ_META set during meta data write

Today, storage devices like eMMC has special features like data tagging
(introduced in MMC-4.5 version) in order to improve performance of some
specific writes. On MMC stack, data tagging is used for all writes which has
REQ_META flag set. On EXT4, however, currently REQ_META is set only for read.
This patch adds the capability to add REQ_META flag during meta data write.
This patch adds new function set_buffer_meta, which is used to set a bit
BH_Meta in the b_state field when meta data and super block is made dirty.

Signed-off-by: Saugata Das <saugata.das@linaro.org>
Acked-by: Arnd Bergmann <arnd.bergmann@linaro.org>

Changelog v2:
	- Removed check for WRITE when setting REQ_META in submit_bh
Changelog v1:
	- Introduction of REQ_META during write
mmc: MMC-4.5 Data Tag Support

MMC-4.5 data tag feature will be used to store the file system meta-data
in the tagged region of eMMC. This will improve the write and subsequent
read transfer time for the meta data.

Signed-off-by: Saugata Das <saugata.das@linaro.org>
Tested-by: Venkatraman S <svenkatr@ti.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
thermal: Add a new trip type to use cooling device instance number

This patch adds a new trip type THERMAL_TRIP_STATE_INSTANCE. This
trip behaves same as THERMAL_TRIP_ACTIVE but also passes the cooling
device instance number. This helps the cooling device registered as
different instances to perform appropriate cooling action decision in
the set_cur_state call back function.

Also since the trip temperature's are in ascending order so some logic
is put in place to skip the un-necessary checks during thermal zone
update and return error when failing the ascending order trip point check
during thermal zone registration.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
scsi/ufs: reverse the ufshcd_is_device_present logic

 Otherwise it counter intuitively returns 0 if device is present.

Signed-off-by: Venkatraman S <svenkatr@ti.com>
CC: Santosh Y <santoshsy@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
scsi/ufs: Fix evaluation of task_failed status

Else FAILED would be set even if task_result was
originally equal to UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED.

Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
CC: Santosh Y <santoshsy@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
scsi/ufs: use module_pci_driver

Use macro module_pci_driver and get rid of boilerplate code.
No functional changes.

Signed-off-by: Venkatraman S <svenkatr@ti.com>
thermal: Add generic cpufreq cooling implementation

This patch adds support for generic cpu thermal cooling low level
implementations using frequency scaling up/down based on the registration
parameters. Different cpu related cooling devices can be registered by the
user and the binding of these cooling devices to the corresponding
trip points can be easily done as the registration APIs return the
cooling device pointer. The user of these APIs are responsible for
passing clipping frequency . The drivers can also register to recieve
notification about any cooling action called. Even the driver can effect
the cooling action by modifying the default data such as freq_clip_max if
needed.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
thermal: Add generic cpuhotplug cooling implementation

This patch adds support for generic cpu thermal cooling low level
implementations using cpuhotplug based on the thermal level requested
from user. Different cpu related cooling devices can be registered by the
user and the binding of these cooling devices to the corresponding
trip points can be easily done as the registration APIs return the
cooling device pointer. The user of these APIs are responsible for
passing the cpumask.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
thermal: Add Passive type cooling for cpufreq cooling devices.

This patch adds passive type cooling in registered cpufreq cooling
devices. To select this type of cooling device the user of the
API should pass THERMAL_TRIP_PASSIVE as the trip type.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
hwmon: exynos4: Move thermal sensor driver to driver/thermal directory

This movement is needed because the hwmon entries and corresponding
sysfs interface is a duplicate of utilities already provided by
driver/thermal/thermal_sys.c. The goal is to place it in thermal folder
and add necessary functions to use the in-kernel thermal interfaces.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
thermal: exynos4: Register the tmu sensor with the kernel thermal layer

This code added creates a link between temperature sensors, linux thermal
framework and cooling devices for samsung exynos platform. This layer
monitors the temperature from the sensor and informs the generic thermal
layer to take the necessary cooling action.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
ARM: exynos4: Add thermal sensor driver platform device support

This patch adds necessary source definations needed for TMU driver and
the platform device support.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
configs: Add initial framgnets

Add config framgents for linaro-base, android and common boards

Signed-off-by: John Stultz <john.stultz@linaro.org>
Config updates from Tixy

Include config updates from Tixy and some additional cleanups
where obvious.

Signed-off-by: John Stultz <john.stultz@linaro.org>
config: Origen config fixes from Tushar Behera

Add portions of Tushar Behera's config changes for origen.
Other changes from his original patch have been added to
either the linaro-base.conf or ubuntu.conf files.

Signed-off-by: John Stultz <john.stultz@linaro.org>
config: Fixups from Tixy and Tushar

Small fixes noted by Tixy and Tushar

Signed-off-by: John Stultz <john.stultz@linaro.org>
configs: Add vexpress config fragment from Tixy

Add slightly tweaked version of vexpress config from Tixy

Signed-off-by: John Stultz <john.stultz@linaro.org>
configs: origen: Enable minimal config that boots linux-linaro-tracking kernel

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
config: Fixes for bug 97769869 suggested by Tixy

Add changes requested by Tixy to handle bug 97769869. Rebalanced
common items out of android.conf and ubuntu.conf into linaro-base.conf

Signed-off-by: John Stultz <john.stultz@linaro.org>
config: More android fixes from Tixy

Here's a few more items that Tixy requested

Signed-off-by: John Stultz <john.stultz@linaro.org>