summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-10-15clocksource: exynos_mct: Don't reset the counter during boot and resumesubmit/tizen_common/20141016.103111accepted/tizen/common/20141020.075855Chirantan Ekbote1-6/+3
Unfortunately on some exynos systems, resetting the mct counter also resets the architected timer counter. This can cause problems if the architected timer driver has already been initialized because the kernel will think that the counter has wrapped around, causing a big jump in printk timestamps and delaying any scheduled clock events until the counter reaches the value it had before it was reset. The kernel code makes no assumptions about the initial value of the mct counter so there is no reason from a software perspective to clear the counter before starting it. This also fixes the problems described in the previous paragraph. Change-Id: I35f6bcd1e0ef46d5c19183dc526078a6b8b4ca64 Cc: Olof Johansson <olof@lixom.net> Cc: Tomasz Figa <tomasz.figa@gmail.com> Signed-off-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Doug Anderson <dianders@chromium.org> Tested-by: Doug Anderson <dianders@chromium.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
2014-10-15power: max14577_charger: Fix to represent cable type properly.Jonghwa Lee1-1/+0
It shows '1' even for none-typed cable that might mislead user or charging managment to understand that there is a charge-able cable which is truly not. It should return 0 for none-typed cable to prevent wrong attempt for charging. Change-Id: I851ac424b6895867e611f6786bdb18e540d7f2d4 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-15arm: configs: tizen_rinato: Enable PM_AUTOSLEEP and PM_WAKEUPLOCKS.Jonghwa Lee1-2/+4
This patch enables CONFIG_PM_AUTOSLEEP and CONFIG_PM_WAKEUPLOCKS to support device driver and user processor to hold wakeup on demand. Change-Id: I2b5504c5a92be0a9923fc03d60c438edceb9f1a7 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-15power: charger-manager: Hold wakeup event until userspace notice.Jonghwa Lee1-1/+7
This is workaround to let userspace notice about battery's status chaiging during suspend and resume. It holds wakeup event to prevent system goes into sleep. Holding wakeup event time is heuristic value and it could be varied. To make this works, it needs CONFIG_PM_AUTOSLEEP kernel option. Change-Id: I22a818e69632574a2d684cd957f62b3329d57c8f Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-15drm/exynos: correct connector->dpms field before resumingInki Dae1-2/+6
During system suspend after connector switch off its dpms field is set to connector previous dpms state. To properly resume dpms field should be set to its actual state (off) before resuming to previous dpms state. Change-Id: I80acefcd408279c3c1cf3b0e89133dc6899a6914 Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-10-15rtc: s5m: Adjust kernel message level to debug.Jonghwa Lee1-6/+6
This patch adjusts all infomative message from s5m rtc driver to debug level. Change-Id: I52f6903fce2bd6d61b8e5f81aa521a3bf7dad9bc Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-15drm/exynos: remove pm runtime interfacesInki Dae1-29/+0
These interfaces aren't used anymore. Change-Id: Ia02fbd60b329a3193bb2fe009f55e410031365ac Signed-off-by: Inki Dae <inki.dae@samsung.com>
2014-10-15ARM: configs: tizen_rinato_defconfig: Disable s3c-rtc featureChanwoo Choi1-3/+6
This patch disables s3c-rtc feature becuase Rinato board don't use it. Change-Id: I3648618731b9d2554419fe04cd28c3c0c16943f9 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2014-10-15ARM: dts: exynos3250-rinato: Remove s3c-rtc dt nodeChanwoo Choi1-6/+0
This patch removes s3c-rtc dt node to disable Exynos3250 RTC because SoC RTC cannot guarantee system time after poweroff and reboot. So, Rinato board will only used PMIC RTC for system time and rtc alarm. Change-Id: Ia8426907baff5554c8a6215d5eeb43a0908c5b98 Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2014-10-15ARM: dts: exynos3250-rinato: Fix power-off issue during resume sequenceChanwoo Choi1-1/+0
This patch fix critical power-off issue during resume sequence. DRM should control the ldo6 (VAP_VMIPI_1.0V). Change-Id: I6262863af2fb89c280693fd68e809e23f7251a7b Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2014-10-15mfd: sec-core: Postpone handling of IRQ until I2C bus is enabled.Jonghwa Lee1-0/+5
Like most of other external chips, it needs to defer handling of IRQ arised during suspend until i2c bus is re-enabled. Change-Id: I6052fed2c89b349374a1cad510f7a9fed757699f Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-15ASoC: samsung: dma: reduce period_bytes value for playback stabilityInha Song1-2/+3
This patch reduce period_bytes_min to 128 bytes and period_bytes_max to 1K bytes. If period_bytes values is too large, underrun error occures in PULSEAUDIO. I/PULSEAUDIO( 1619): alsa-sink.c: Underrun! Change-Id: I33fd95d4748b2016740dd673108377181726df66 Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-10-15ASoC: samsung: dma: reduce period_bytes_max from 64K to 20KKwang-Hui Cho1-0/+4
reduce period_bytes_max from 64K to 20K bytes if period_bytes configured more than that it causes dma pl330 error. Change-Id: Ia5012b0a9452b2c0db43cb469317d1904b4d299b Signed-off-by: Kwang-Hui Cho <kwanghui.cho@samsung.com>
2014-10-14odroid, rinato: adjust configs to systemd requirements & recommendationsMaciej Wereski2-7/+29
Change-Id: I8defc8536ffe6669f953085ed8c3838bab00cfc3 Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
2014-10-14packaging: support multiple boardssubmit/tizen/20141014.081817Chanho Park3-64/+163
We support three boards, trats2(RD-PQ)/odroid-u3 and rinato(Galaxy Gear2). To avoid overwrite headers package, only provide the package in Mobile profile. Change-Id: I03b423da193bb2f654a40e959b01458401b49437 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
2014-10-14arm: dts: exynos3250-rinato: Add revision propertyBeomho Seo1-0/+1
This patch add revison information of exynos3250-rinato board. Revision property use hardware information. Change-Id: I5896dfff2ef074dfe4bf33cae820f11546a1d037 Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-10-13power: charger-manager: Prevent ktimer's nsecs value exceeds its size.Jonghwa Lee1-1/+2
When charger-manager sets alarmtimer, it has used nanoseconds converted from polling period which is in milliseconds. However ktimer's nanoseconds is limited to represent as size of unsinged long type, and the previous use often exceeds its limitation. It fixes to divide target timer period into seconds part and remains in nanoseconds to prevent abnormal timer period is set. Change-Id: I7a5cad5569505c901a4822bbd7a4ad0fa149570b Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-13input: keyboard: mcs_touchkey:Convert to devm_* managed functionsBeomho Seo1-16/+11
Tis patch use the devm_* managed functions to allocate resources. Change-Id: I9351869922b481a6791ca98f6dd3328d84424906 Signed-off-by: Beomho Seo <beomho.seo@samsung.com>
2014-10-13misc: ice4_irda: Move firmware download function to workqueueJaewon Kim1-11/+20
This patch moves firmware download function to workqueue to reduce booting time. Change-Id: Idfa934b67494988a7de1f95f461dac41546cb2e5 Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
2014-10-13arm: dts: exynos3250-rinato: workaround: change ldo3 mode to "Normal mode" ↵Inha Song1-1/+8
from "Standby Mode" When trying to play sound after setting the "Music Input Volume" grater than 85, board power is turned off suddenly. Change-Id: Id11cf9ff4620595037dba3c8e515c63b8adcfc98 Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-10-13sensorhub: Move MCU firmware check to workqueueJaewon Kim2-28/+40
MCU firmware check process in ssp_probe() moves to workqueue to reduce booting time. And when driver try to check MCU revision, MCU is not ready to communicate. So, this patch uses delayed workqueue to wait MCU. Change-Id: I2a64d195fc4a7910884a6da03e9a0f8846c17ac3 Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
2014-10-10Merge "firmware: Add sensorhub MCU firmware" into tizenInki Dae3-0/+16686
2014-10-10firmware: Add sensorhub MCU firmwareJaewon Kim3-0/+16686
This patch adds sensohub MCU firmware for rinato board. Version : 14052300 Change-Id: I903f77ca90e8d898115726782da2a4a7e23fcda6 Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
2014-10-10power: charger-manager: Add num_chargers variable to desc structure.Jonghwa Lee2-11/+12
To confirm NULL point exception and also follow the common convention of 'for loop' control, fix the driver to use scalar variable, 'num_chargers' when it retrieves the power_supply pointer array. Change-Id: Iab834cf93822b1a03419ca9933e82d6396cc0474 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10arm : dts: exynos3250-rinato: Add thermal information to charger-manager.Jonghwa Lee1-0/+3
To make charger-manager to aware the battery thermal, it adds thermal zone name and temperature limitation to the charger-manager's device tree. Change-Id: Idd804d7ecd1ca5084786d164f2f53f2ad3fa0dd0 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10arm: exynos3250: rtc: Enable internal RTC's alarm wakeup irq.Jonghwa Lee2-1/+8
This patch adds correspond irq number for EXYNOS3250's rtc alarm irq to make the irq to work as a wakeup source. Change-Id: I8970496a597729b8ad70d0e0bb893052e56e24c9 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10power: charger-manager: Fix to use CHARGE_NOW/FULL property correctly.Jonghwa Lee1-52/+34
The POWER_SUPPLY_CHARGE_NOW/FULL property reflects battery's charges in uAh unit, but charger-manager has been used it wrongly. This patch makes it to use those propeties correctly and change to be optional. Change-Id: I68b3940a9388a095f47205207f1bc6bc863bd407 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10power: charger-manager: Use power_supply_changed() not private uevent.Jonghwa Lee1-75/+6
Whenever battery status is changed, charger manager tries to trigger uevent through private interface. This patch modifies it to use power_supply_changed() since it belongs to power supply subsystem. Change-Id: I9f25664a2196745f3a303d57ded073f5eb604180 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10power: charger-manager: Remove deprecated function, cm_notify_event().Jonghwa Lee3-208/+8
cm_notify_event() is introduced to get event associated with battery status externally, but no one had been used. Moreover it makes charger manager driver more complicated. This patch tries to drop the function and all data related to simplify the driver. Change-Id: I89d802f57a3005c9102e8d342318f2bf77ccce48 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10power: charger-manager: Monitoring temperature becomes mandatory option.Jonghwa Lee3-61/+18
Monitoring battery temperature becomes mandatory for charger manager working. If there is no way to measure temperature, it stops probing and won't work. And also it will use thermal susbsystem inteface only to make driver simple. Change-Id: Idef5f8f29a104f5f51532c3321f6bebe887deb24 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10power: charger-manager: Use alarmtimer for battery monitoring in suspend.Jonghwa Lee3-238/+83
To guerantee proper charing and managing batteries even in suspend, charger-manager has used rtc device with rtc framework interface. However, it is better to use alarmtimer for cleaner and more appropriate operation. This patch makes driver to use alamtimer for polling work in suspend and removes all deprecated codes related with using rtc interface. Change-Id: I0c84ccd62653b50fc9c9b687fddcaba7ea58e8ca Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10power: charger-manager: Rebase charger-manager up-to-date.Jonghwa Lee3-264/+295
Drop all local commits and adjust it to up-to-date version of mainline to make it easy to maintain. Change-Id: Id5dc3314afd6498e704bcc1bdebe2c226b8fa07c Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-10alarmtimer: Export symbols of alarmtimer_get_rtcdevPramod Gurav1-1/+1
Export symbol of alarmtimer_get_rtcdev so that it is used by any driver when built as module like, drivers/staging/android/alarm-dev.c. Change-Id: I296f98f0139e20082a5dc8c58e6f57f6815b337c CC: John Stultz <john.stultz@linaro.org> CC: Marcus Gelderie <redmnic@gmail.com> Signed-off-by: Pramod Gurav <pramod.gurav.etc@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-10alarmtimer: Export symbols of functions declared in linux/alarmtimer.hMarcus Gelderie1-1/+9
Export symbols so they can be used by drivers/staging/android/alarm-dev.c if it is built as a module. So far alarm-dev is built-in but module support is planned (see drivers/staging/android/TODO). Change-Id: I405ba0bc9846bf379ff0cfbdcf00597d35d36d21 Signed-off-by: Marcus Gelderie <redmnic@gmail.com> [jstultz: tweaked commit message, also export newly added functions] Signed-off-by: John Stultz <john.stultz@linaro.org>
2014-10-10alarmtimer: Add functions for timerfd supportTodd Poynor2-1/+42
Add functions needed for hooking up alarmtimer to timerfd: * alarm_restart: Similar to hrtimer_restart, restart an alarmtimer after the expires time has already been updated (as with alarm_forward). * alarm_forward_now: Similar to hrtimer_forward_now, move the expires time forward to an interval from the current time of the associated clock. * alarm_start_relative: Start an alarmtimer with an expires time relative to the current time of the associated clock. * alarm_expires_remaining: Similar to hrtimer_expires_remaining, return the amount of time remaining until alarm expiry. Change-Id: I609e268d53725b2c2b62b618ccc388f4329997f5 Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
2014-10-09arm: configs: tizen_rinato: Enable sound machine driverInha Song1-0/+3
This patch enables rinato sound machine driver. Change-Id: Iced29c98fed8904acae4095c12b15191c3402c8a Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-10-09ARM: dts: Fix i2s2 node to support sound in Exynos3250 SoCInha Song1-1/+1
This patch Fix i2s2 node to support sound in Exynos3250 SoC. Change-Id: I96791f9c13935c4b87e1fc632e59f11dfb498fd7 Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-10-09ASoC: samsung: Add ASoC machine driver for Rinato board with YMU831 codecInha Song3-0/+292
This patch add ASoC machine driver for Rinato board with YMU831 codec. Change-Id: Ifaf3417aac668f5a6236f9c74f22a1b92208a79d Signed-off-by: Inha Song <ideal.song@samsung.com> Signed-off-by: Hyunhee Kim <hyunhee.kim@samsung.com>
2014-10-08arm: configs: tizen_rinato: Update rinato kernel configuration.Jonghwa Lee1-1/+2
Enable CONFIG_THERMAL_OF to expose thermistor sensor to thermal framework. It also disables CONFIG_THERMAL_HWMON not to make duplicated sysfs node of the thermistor sensor. Change-Id: I318cc27979b891bc7fcdd9cd2a2892e73ce65675 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-08arm: dts: exynos3250: Add battery thermal zone.Jonghwa Lee1-1/+10
Add battery thermal zone using the thermistor close to battery to monitor exterior battery temperature. Change-Id: Ie755506b40a2b060b7b0cd028e1fc5463f9f42b1 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-08hwmon: ntc_thermistor: Add ntc thermistor to thermal subsystem as a sensor.Jonghwa Lee3-0/+29
To get more comprehensive and integrated thermal management, it adds ntc thermistor to thermal framework as a thermal sensor. It's governed thermal susbsystem only if it is described in DT node. Otherwise, it just notifies temperature to userspace via sysfs as it used to be. Change-Id: Ie5b8948ca0cb567854905e0e9ea903ff7cdc1f4c Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-08thermal: Bind cooling devices with the correct argumentsPunit Agrawal1-2/+2
When binding cooling devices to thermal zones created from the device tree the minimum and maximum cooling states are in the wrong order leading to failure to bind. Fix the order of cooling states in the call to thermal_zone_bind_cooling_device to fix this. Change-Id: I63c72736ca26ff5dd1cd9e051721c4c7f3d63af5 Cc:Zhang Rui <rui.zhang@intel.com> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2014-10-08thermal: Add braces around suspect codeStephen Boyd1-1/+2
It looks like this code is missing braces, otherwise the if statement shouldn't have been indented. Fix it. Change-Id: Ia5f7b1e784e79d58e0a68851f4ccc1a42565a247 Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2014-10-08thermal:samsung: fix compilation warningNaveen Krishna Chatradhi1-1/+1
This patch fixes a compilation warning. warning: passing argument 5 of 'thermal_zone_device_register' discards 'const' qualifier from pointer target type [enabled by default] include/linux/thermal.h:270:29: note: expected 'struct thermal_zone_device_ops *' but argument is of type 'const struct thermal_zone_device_ops *' Change-Id: Ide96bc2bb6a2c0c843e84811d9adaae97d8a191d Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
2014-10-08thermal: introduce device tree parserEduardo Valentin8-3/+1518
This patch introduces a device tree bindings for describing the hardware thermal behavior and limits. Also a parser to read and interpret the data and feed it in the thermal framework is presented. This patch introduces a thermal data parser for device tree. The parsed data is used to build thermal zones and thermal binding parameters. The output data can then be used to deploy thermal policies. This patch adds also documentation regarding this API and how to define tree nodes to use this infrastructure. Note that, in order to be able to have control on the sensor registration on the DT thermal zone, it was required to allow changing the thermal zone .get_temp callback. For this reason, this patch also removes the 'const' modifier from the .ops field of thermal zone devices. Change-Id: Iaecd480e8a5e21f0d3154cc9bf782bbfd051d40a Cc: Zhang Rui <rui.zhang@intel.com> Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
2014-10-08thermal: allow registering without .get_tempEduardo Valentin1-2/+8
This patch changes the thermal core driver to allow registration of thermal zones without the .get_temp callback. The idea behind this change is to allow lazy registration of sensor callbacks. The thermal zone will be disabled whenever the ops does not contain a .get_temp callback. The sysfs interface will be returning -EINVAL on any temperature read operation. Change-Id: Id58d2b558bc5a946dc7d712e28c2ed7cb90cc64b Cc: Zhang Rui <rui.zhang@intel.com> Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
2014-10-07mfd: max77686: Add registration of max77686-clk for control 32khz clock outputsInha Song1-0/+1
This patch add registration of max77686-clk for control 32khz clock outputs. Through this patch, the MAX77686 clock driver enabled and 32khz clocks can be controlled. Change-Id: I6e5edc081ba45c2ac45257084f12a5335a6a4cb2 Signed-off-by: Inha Song <ideal.song@samsung.com>
2014-10-08arm: configs: tizen_rinato: Enable MAX14577/77836 regulatorJonghwa Lee1-1/+1
Change-Id: I619e3016eab20eb18ffdaaca38753b7f9b682bd4 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-08mfd: max14577: Add compatible string to max77836 charger's mfd cell.Jonghwa Lee1-1/+3
This patch add compatible string to max77836 charger's mfd cell to be acquired its device tree node. Change-Id: Ibf7e6cb855e4cc9c2735572c6bde939ab853da93 Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
2014-10-07arm: dts: exynos3250: Add phandle to power supply devices.Jonghwa Lee1-2/+2
To get power supply device by power_supply_get_by_phandle(), it adds phandle to power supply devices in rinato device tree. Change-Id: I865c714775a8bd5520f309a0be97f4a78cf2152e Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>