- 29 8月, 2013 6 次提交
-
-
由 Sachin Kamat 提交于
Commit 1cd1ecb6 ("thermal: exynos: Remove non DT based support") cleaned up some non-DT code. However, there were few more things needed for complete cleanup to make this driver DT only. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Sachin Kamat 提交于
NULL pointer was being dereferenced in its own error message. Changed it to the correct device pointer. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Sachin Kamat 提交于
Fixes some trivial typos. Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Ranganath Krishnan 提交于
Workaround to compute thermal trend even when update interval is not set. This patch will ensure to compute the thermal trend when bandgap counter delay is not set. Signed-off-by: NRanganath Krishnan <ranganath@ti.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Ranganath Krishnan 提交于
Set the bandgap mask counter_delay with the polling_delay value on registering the thermal zone. This patch will ensure to get the correct update interval for computing the thermal trend. Signed-off-by: NRanganath Krishnan <ranganath@ti.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Ranganath Krishnan 提交于
Initialize MPU, GPU, CORE, DSPEVE and IVA thermal sensors of DRA752 bandgap with the counter delay mask. Signed-off-by: NRanganath Krishnan <ranganath@ti.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
- 15 8月, 2013 6 次提交
-
-
由 Eduardo Valentin 提交于
In case the trend is not changing or when there is no request for throttling, it is expected that the instance would not change its requested target. This patch improves the code implementation to cover for this expected behavior. With current implementation, the instance will always reset to cdev.cur_state, even in not expected cases, like those mentioned above. This patch changes the step_wise governor implementation of get_target so that we accomplish: (a) - default value will be current instance->target, so we do not change the thermal instance target unnecessarily. (b) - the code now it is clear about what is the intention. There is a clear statement of what are the expected outcomes (c) - removal of hardcoded constants, now it is put in use the THERMAL_NO_TARGET macro. (d) - variable names are also improved so that reader can clearly understand the difference between instance cur target, next target and cdev cur_state. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Durgadoss R <durgadoss.r@intel.com> Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Reported-by: NRuslan Ruslichenko <ruslan.ruslichenko@ti.com> Signed-of-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NZhang Rui <rui.zhang@intel.com>
-
由 Shawn Guo 提交于
The cooling device only needs update on a new target state. Since we already check old target in thermal_zone_trip_update(), we can do one more check to see if it's a new target state. If not, we can reasonably save some uncecesary code execution. Signed-off-by: NShawn Guo <shawn.guo@linaro.org> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NZhang Rui <rui.zhang@intel.com>
-
由 Lan Tianyu 提交于
Thermal/cpu_cooling: Return directly for the cpu out of allowed_cpus in the cpufreq_thermal_notifier() cpufreq_thermal_notifier() is to change the cpu's cpufreq in the allowed_cpus mask when associated thermal-cpufreq cdev's cooling state is changed. It's a cpufreq policy notifier handler and it will be triggered even if those cpus out of allowed_cpus has changed freq policy. cpufreq_thermal_notifier() checks the policy->cpu. If it belongs to allowed_cpus, change max_freq(default to 0) to the desire cpufreq value and pass 0 and max_freq to cpufreq_verify_within_limits() as cpufreq scope. But if not, do nothing and max_freq will remain 0. This will cause the cpufreq scope to become 0~0. This is not right. This patch is to return directly after finding cpu not belonging to allowed_cpus. Signed-off-by: NLan Tianyu <tianyu.lan@intel.com> Signed-off-by: NZhang Rui <rui.zhang@intel.com>
-
由 Naveen Krishna Chatradhi 提交于
The error check is checking for a "base" mapped memory base instead of "base_common". Fixing the same. Signed-off-by: NNaveen Krishna Chatradhi <ch.naveen@samsung.com> Signed-off-by: NZhang Rui <rui.zhang@intel.com>
-
由 Philipp Zabel 提交于
Enable automatic measurements at 10 Hz and use the alarm interrupt to react more quickly to sudden temperature changes above the passive or critical temperature trip points. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de> Acked-by: NShawn Guo <shawn.guo@linaro.org> Signed-off-by: NZhang Rui <rui.zhang@intel.com>
-
由 Philipp Zabel 提交于
Set passive and critical trip point values depending on the maximum die temperature stored in the OCOTP fuses. This allows higher trip points for industrial and automotive rated i.MX6 SoCs. Also allow to configure the passive trip point from userspace. Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de> Acked-by: NShawn Guo <shawn.guo@linaro.org> Signed-off-by: NZhang Rui <rui.zhang@intel.com>
-
- 13 8月, 2013 27 次提交
-
-
由 Amit Daniel Kachhap 提交于
TMU probe function now checks for a device tree defined regulator. For compatibility reasons it is allowed to probe driver even without this regulator defined. Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NLukasz Majewski <l.majewski@samsung.com> Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch adds support for h/w mode calibration in the TMU controller. Soc's like 5440 support this features. The h/w bits needed for calibration setting are same as that of enum calibration_type. Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NKukjin Kim <kgene.kim@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch sets the second point trimming value according to the platform data if the register value is 0. Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch adds configuration data for exynos5440 soc. Also register definations for the controller are added. Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NKukjin Kim <kgene.kim@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch modifies TMU controller to add changes needed to work with exynos5440 platform. This sensor registers 3 instance of the tmu controller with the thermal zone and hence reports 3 temperature output. This controller supports upto five trip points. For critical threshold the driver uses the core driver thermal framework for shutdown. Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NKukjin Kim <kgene.kim@samsung.com> Signed-off-by: NJungseok Lee <jays.lee@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch adds support to parse one more common set of TMU register. First set of register belongs to each instance of TMU and second set belongs to common TMU registers. Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch uses the device pointer stored in the configuration structure and converts to dev_* prints and devm API's. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch adds several features supported by TMU as bitfields. This features varies across different SOC type and comparing the features present in the TMU is more logical than comparing the soc itself. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch adds support to handle multiple instances of the TMU controllers. This is done by removing the static structure to register with the core thermal and creating it dynamically for each instance of the TMU controller. The interrupt is made shared type to handle shared interrupts. Now since the ISR needs the core thermal framework to be registered so request_irq is moved after the core registration is done. Also the identifier of the TMU controller is extracted from device tree alias. This will be used for TMU specific initialisation. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
Recently non DT support from Exynos platform is removed and hence removing non DT support from the driver also. This will help in easy maintainence. Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This code simplifies the zone handling to use the trip information passed by the TMU driver and not the hardcoded macros. This also helps in adding more zone support. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch removes the error return in the bind/unbind routine as the platform may not register any cpufreq cooling data. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch renames member private_data to driver_data of the thermal zone registration structure as this item stores the driver related data and uses it to call the driver related callbacks. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This code modifies the thermal driver to have multiple thermal zone support by replacing the global thermal zone variable with device data member of thermal_zone_device. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch uses the TMU status register to know the generated interrupts and only clear them in the interrupt handler. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
TMU urgently sends active-high signal (thermal trip) to PMU, and thermal tripping by hardware logic. Thermal tripping means that PMU cuts off the whole power of SoC by controlling external voltage regulator. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NJonghwan Choi <jhbird.choi@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch migrates the TMU register definition/bitfields to data file. This is needed to support SoC's which use the same TMU controller but register validity, offsets or bitfield may slightly vary across SOC's. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch adds entries min_efuse_value, max_efuse_value, default_temp_offset, trigger_type, cal_type, trim_first_point, trim_second_point, max_trigger_level trigger_enable in the TMU platform data structure. Also the driver is modified to use the data passed by these new platform memebers instead of the constant macros. All these changes helps in separating the SOC specific data part from the TMU driver. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch adds some extra register bitfield definations and cleans up the code to prepare for moving register macros and definations inside the TMU data section. In this code cleanup the TMU enable bit is correctly used as bit0 and bit1 is taken care which is reserve bit. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This code splits the exynos tmu driver code into SOC specific data parts. This will simplify adding new SOC specific data to the same TMU controller. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch renames and moves include/linux/platform_data/exynos_thermal.h to drivers/thermal/samsung/exynos_tmu.h. This file movement is needed as exynos SOC's are not supporting non-DT based platforms and this file now just contains exynos tmu driver related definations. Also struct freq_clip_table is now moved to exynos_thermal_common.c as it fixes the compilation issue occuring because now this new tmu header file is included in tmu driver c file and not in the common thermal header file. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch renames exynos_thermal.c to exynos_tmu.c. This change is needed as this file now just contains exynos tmu driver related codes and thermal zone or cpufreq cooling registration related changes are not there anymore. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This code bifurcates exynos thermal implementation into common and sensor specific parts. The common thermal code interacts with core thermal layer and core cpufreq cooling parts and is independent of SOC specific driver. This change is needed to cleanly add support for new TMU sensors. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch removes the dependency on CPU_THERMAL for compiling TMU driver. This is useful for cases when only TMU controller needs to be initialised without cpu cooling action. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This patch uses the recently added config sybmol ARCH_HAS_BANDGAP to enable the TMU driver. This will allow adding support for new soc easily as now it is the platform responsibility to enable this config symbol for a particular soc. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Amit Daniel Kachhap 提交于
This movement of files is done for easy maintenance and adding more new sensor's support for exynos platform easily . This will also help in bifurcating exynos common, sensor driver and sensor data related parts. Acked-by: NKukjin Kim <kgene.kim@samsung.com> Acked-by: NJonghwa Lee <jonghwa3.lee@samsung.com> Acked-by: NEduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: NAmit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
由 Shawn Guo 提交于
This is based on the initial imx thermal work done by Rob Lee <rob.lee@linaro.org> (Not sure if the email address is still valid). Since he is no longer interested in the work and I have rewritten a significant amount of the code, I just took the authorship over from him. It adds the imx thermal support using Temperature Monitor (TEMPMON) block found on some Freescale i.MX SoCs. The driver uses syscon regmap interface to access TEMPMON control registers and calibration data, and supports cpufreq as the cooling device. Signed-off-by: NShawn Guo <shawn.guo@linaro.org> Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
-
- 09 8月, 2013 1 次提交
-
-
由 Jiri Kosina 提交于
This reverts commit 407a2c2a. Explanation provided by Benjamin Tissoires: Commit "HID: hid-logitech-dj, querying_devices was never set" activate a flag which guarantees that we do not ask the receiver for too many enumeration. When the flag is set, each following enumeration call is discarded (the usb request is not forwarded to the receiver). The flag is then released when the driver receive a pairing information event, which normally follows the enumeration request. However, the USB3 bug makes the driver think the enumeration request has been forwarded to the receiver. However, it is actually not the case because the USB stack returns -EPIPE. So, when a new unknown device appears, the workaround consisting in asking for a new enumeration is not working anymore: this new enumeration is discarded because of the flag, which is never reset. A solution could be to trigger a timeout before releasing it, but for now, let's just revert the patch. Reported-by: NBenjamin Tissoires <benjamin.tissoires@gmail.com> Tested-by: NSune Mølgaard <sune@molgaard.org> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
-