[PATCH] [RFC] security: smack: Add support automatic Smack labeling

2015-08-26 Thread Jonghwa Lee
the label is applied, it'll also be deactivated. The label turns to be enabled again only when the file is removed. This is a candidate of solution for the specific problem, and might be buggy or hamful for system-wide security. So I gently request your opinion for more clear and wise s

[PATCH] security: smack: Add support automatic Smack labeling

2015-08-26 Thread Jonghwa Lee
d it can add new entry to autolabel table via 'autolabel' in smackfs. echo ' ' > /sys/fs/smackfs/autolabel To view entries of autolabel table, $cat /sys/fs/smackfs/autolabel /dev/device00 Label:A /run/userfile0 Label:B Signed-off-by: Jonghwa Lee --- securi

[PATCH V3 04/11] power: charger-manager: Remove deprecated function, cm_notify_event().

2014-12-19 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee

[PATCH V3 01/11] power: charger-manager: Use alarmtimer for battery monitoring in suspend.

2014-12-19 Thread Jonghwa Lee
all deprecated codes related with using rtc interface. Signed-off-by: Jonghwa Lee --- drivers/power/Kconfig |2 +- drivers/power/charger-manager.c | 288 ++--- include/linux/power/charger-manager.h | 32 +--- 3 files changed, 84 insertions

[PATCH V3 09/11] power: charger-manager: Not to start charging directly in cable nofitication.

2014-12-19 Thread Jonghwa Lee
more important that charging is enabled always in safe context. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 44cc19a..4f

[PATCH V3 05/11] power: charger-manager: Fix to use CHARGE_NOW/FULL property correctly.

2014-12-19 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c |

[PATCH V3 06/11] power: charger-manager: Concentrate scattered power_supply_changed() calls.

2014-12-19 Thread Jonghwa Lee
Current charger-manager calls power_suuply_changed() whenever charging status is changed. This patch removes seperated power_supply_changed() use and let it be called at end of try_charger_enable() function which is called to set charging/discharging. Signed-off-by: Jonghwa Lee --- drivers

[PATCH V3 0/11] Improve charger manager driver for optimized operation.

2014-12-19 Thread Jonghwa Lee
n its purpose. - Add 2 patches related with polling mode. Jonghwa Lee (11): power: charger-manager: Use alarmtimer for battery monitoring in suspend. power: charger-manager: Use thermal subsystem interface only to get temperature. power: charger-manager: Use power_supply_changed() n

[PATCH V3 02/11] power: charger-manager: Use thermal subsystem interface only to get temperature.

2014-12-19 Thread Jonghwa Lee
It drops the way of using power_supply interface to reference battery's temperature. Then it tries to use thermal subsystem's only. This makes driver more simple and also can remove ifdeferies. Signed-off-by: Jonghwa Lee --- drivers/power/Kconfig |1 + drivers/pow

[PATCH V3 03/11] power: charger-manager: Use power_supply_changed() not private uevent.

2014-12-19 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 91

[PATCH V3 08/11] power: charger-manager: Make chraging decision focusing on battery status.

2014-12-19 Thread Jonghwa Lee
() moves battery state diagram and does optimal operation for current state. As a result, it reduces whole monitoring time almost in half. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 177 +++-- include/linux/power/charger-manager.h |3 + 2

[PATCH V3 07/11] power: charger-manager: Get external power souce information only from EXTCON.

2014-12-19 Thread Jonghwa Lee
system, so it can re-use it. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index d29155d..dc15436 10

[PATCH V3 10/11] power: charger-manager: Support different polling mode for sleep state.

2014-12-19 Thread Jonghwa Lee
it just follows the normal state's. In addition to, polling rate is still same in sleep. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 20 +--- include/linux/power/charger-manager.h |9 ++--- 2 files changed, 23 insertions(+), 6 dele

[PATCH V3 11/11] power: charger-manager: Support to change polling rate in runtime.

2014-12-19 Thread Jonghwa Lee
if next polling time is far enough. Otherwise, it just waits expiration of timer and new polling rate will affects the next scheduling. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 62 +++ 1 file changed, 62 insertions(+) diff --git a/d

[PATCH] arm64: psci: Support generic pm suspend withtout CPUIDLE subsystem's help.

2014-12-18 Thread Jonghwa Lee
Current psci's cpu_suspend callback can be used only when common cpu idle configuration is enabled. However, it's also needed for system which only uses generic pm suspend not cpu idle. This patch modifies psci driver to support both of cases. Signed-off-by: Jonghwa Lee --- arch/ar

[PATCH RESEND v2 02/10] power: charger-manager: Use power_supply_changed() not private uevent.

2014-12-18 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 91

[PATCH RESEND v2 07/10] power: charger-manager: Make chraging decision focusing on battery status.

2014-12-18 Thread Jonghwa Lee
() moves battery state diagram and does optimal operation for current state. As a result, it reduces whole monitoring time almost in half. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 177 +++-- include/linux/power/charger-manager.h |3 + 2

[PATCH RESEND v2 01/10] power: charger-manager: Use thermal subsystem interface only to get temperature.

2014-12-18 Thread Jonghwa Lee
It drops the way of using power_supply interface to reference battery's temperature. Then it tries to use thermal subsystem's only. This makes driver more simple and also can remove ifdeferies. Signed-off-by: Jonghwa Lee --- drivers/power/Kconfig |1 + drivers/pow

[PATCH RESEND v2 06/10] power: charger-manager: Get external power souce information only from EXTCON.

2014-12-18 Thread Jonghwa Lee
system, so it can re-use it. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index bb44588..172dfe5 10

[PATCH RESEND V2 0/10] Improve charger manager driver for optimized operation.

2014-12-18 Thread Jonghwa Lee
some fixes. [Changes in V2] - Rebase patch series on latest of battery-2.6.git. - Seperate 'power: charger-manager: Rearrange data and monitor ~' patch into several patches depends on its purpose. - Add 2 patches related with polling mode. Jonghwa Lee (10): power: charger-manager: U

[PATCH RESEND v2 04/10] power: charger-manager: Fix to use CHARGE_NOW/FULL property correctly.

2014-12-18 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c |

[PATCH RESEND v2 08/10] power: charger-manager: Not to start charging directly in cable nofitication.

2014-12-18 Thread Jonghwa Lee
more important that charging is enabled always in safe context. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 065b92a..1c

[PATCH RESEND v2 05/10] power: charger-manager: Concentrate scattered power_supply_changed() calls.

2014-12-18 Thread Jonghwa Lee
Current charger-manager calls power_suuply_changed() whenever charging status is changed. This patch removes seperated power_supply_changed() use and let it be called at end of try_charger_enable() function which is called to set charging/discharging. Signed-off-by: Jonghwa Lee --- drivers

[PATCH RESEND v2 10/10] power: charger-manager: Support to change polling rate in runtime.

2014-12-18 Thread Jonghwa Lee
if next polling time is far enough. Otherwise, it just waits expiration of timer and new polling rate will affects the next scheduling. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 62 +++ 1 file changed, 62 insertions(+) diff --git a/d

[PATCH RESEND v2 03/10] power: charger-manager: Remove deprecated function, cm_notify_event().

2014-12-18 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee

[PATCH RESEND v2 09/10] power: charger-manager: Support different polling mode for sleep state.

2014-12-18 Thread Jonghwa Lee
it just follows the normal state's. In addition to, polling rate is still same in sleep. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 20 +--- include/linux/power/charger-manager.h |9 ++--- 2 files changed, 23 insertions(+), 6 dele

[PATCH 04/10] power: charger-manager: Fix to use CHARGE_NOW/FULL property correctly.

2014-10-30 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c |

[PATCH 05/10] power: charger-manager: Concentrate scattered power_supply_changed() calls.

2014-10-30 Thread Jonghwa Lee
Current charger-manager calls power_suuply_changed() whenever charging status is changed. This patch removes seperated power_supply_changed() use and let it be called at end of try_charger_enable() function which is called to set charging/discharging. Signed-off-by: Jonghwa Lee --- drivers

[PATCH 02/10] power: charger-manager: Use power_supply_changed() not private uevent.

2014-10-30 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 91

[PATCH 01/10] power: charger-manager: Use thermal subsystem interface only to get temperature.

2014-10-30 Thread Jonghwa Lee
It drops the way of using power_supply interface to reference battery's temperature. Then it tries to use thermal subsystem's only. This makes driver more simple and also can remove ifdeferies. Signed-off-by: Jonghwa Lee --- drivers/power/Kconfig |1 + drivers/pow

[PATCH 03/10] power: charger-manager: Remove deprecated function, cm_notify_event().

2014-10-30 Thread Jonghwa Lee
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. Signed-off-by: Jonghwa Lee

[PATCH 08/10] power: charger-manager: Not to start charging directly in cable nofitication.

2014-10-30 Thread Jonghwa Lee
more important that charging is enabled always in safe context. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 065b92a..1c

[PATCH 07/10] power: charger-manager: Make chraging decision focusing on battery status.

2014-10-30 Thread Jonghwa Lee
() moves battery state diagram and does optimal operation for current state. As a result, it reduces whole monitoring time almost in half. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 177 +++-- include/linux/power/charger-manager.h |3 + 2

[PATCH V2 0/10] Improve charger manager driver for optimized operation.

2014-10-30 Thread Jonghwa Lee
some fixes. [Changes in V2] - Rebase patch series on latest of battery-2.6.git. - Seperate 'power: charger-manager: Rearrange data and monitor ~' patch into several patches depends on its purpose. - Add 2 patches related with polling mode. Jonghwa Lee (10): power: charger-manager: U

[PATCH 09/10] power: charger-manager: Support different polling mode for sleep state.

2014-10-30 Thread Jonghwa Lee
it just follows the normal state's. In addition to, polling rate is still same in sleep. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 20 +--- include/linux/power/charger-manager.h |9 ++--- 2 files changed, 23 insertions(+), 6 dele

[PATCH 06/10] power: charger-manager: Get external power souce information only from EXTCON.

2014-10-30 Thread Jonghwa Lee
system, so it can re-use it. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index bb44588..172dfe5 10

[PATCH 10/10] power: charger-manager: Support to change polling rate in runtime.

2014-10-30 Thread Jonghwa Lee
if next polling time is far enough. Otherwise, it just waits expiration of timer and new polling rate will affects the next scheduling. Signed-off-by: Jonghwa Lee --- drivers/power/charger-manager.c | 62 +++ 1 file changed, 62 insertions(+) diff --git a/d

[PATCH 1/3] power: core: Add generic interface to get battery specification.

2014-10-07 Thread Jonghwa Lee
dds helper functions to manager the battery specification. Signed-off-by: Jonghwa Lee --- drivers/power/power_supply_core.c | 91 + include/linux/power_supply.h |7 +++ 2 files changed, 98 insertions(+) diff --git a/drivers/power/power_supply

[PATCH 3/3] power: of_battery: Initial support for of-based battery specification driver.

2014-10-07 Thread Jonghwa Lee
This driver supports battery specification through the generic interface of power_supply subsystem. All data are parsed from device tree and it exactly matches with power_supply_info's content. Signed-off-by: Jonghwa Lee --- .../bindings/power_supply/of_battery.txt |

[RFC PATCH 0/3] power: Generic interface to get battery specification.

2014-10-07 Thread Jonghwa Lee
erface for management of the battery specification. In addition to, for the smart battery, this'll help to abstract battery interface which can be varied with different batteries. (SDQ, MIPI BIF..) Jonghwa Lee (3): power: core: Add generic interface to get battery specification. power: core

[PATCH 2/3] power: core: Add variables related temperature to power_supply_info.

2014-10-07 Thread Jonghwa Lee
To represent thermal limitation of power_supply, it adds 'temperature_max, temperature_min' to power_supply_info structure. Signed-off-by: Jonghwa Lee --- include/linux/power_supply.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/power_supply.h b/inc

[PATCH 0/2] ARM: EXYNOS3250: Add support EXYNOS3250 suspend/resume.

2014-09-26 Thread Jonghwa Lee
This patches adds and modifies exynos suspend driver to support exynos3250's suspend/resume. To work suspend/resume, it also needs a work at pmu driver. It'll be supported after refactoring job on pmu driver is done. Jonghwa Lee (2): ARM: EXYNOS: suspend: Make restoring regi

[PATCH 1/2] ARM: EXYNOS: suspend: Make restoring registers into selectable option.

2014-09-26 Thread Jonghwa Lee
Some EXYNOS series may not requried to save ROM registers as it's default for now. This patch makes restoring registers into machine-specific option. Signed-off-by: Jonghwa Lee --- arch/arm/mach-exynos/suspend.c | 39 +-- 1 file changed, 21 inser

[PATCH 2/2] ARM: EXYNOS3250: Add initial support EXYNOS3250 suspend/resume.

2014-09-26 Thread Jonghwa Lee
It adds data and callback needed for exynos3250's suspend/resume. Signed-off-by: Jonghwa Lee --- arch/arm/mach-exynos/regs-pmu.h |4 arch/arm/mach-exynos/suspend.c | 31 +++ 2 files changed, 35 insertions(+) diff --git a/arch/arm/mach-exynos/regs-pm

[PATCH v3] hwmon: ntc_thermistor: Add ntc thermistor to thermal subsystem as a sensor.

2014-09-16 Thread Jonghwa Lee
ff-by: Jonghwa Lee --- Changes: v3: - Add dependencies of thermal subsystem for proper building. v2: - Remove NULL pointer checking already done by thermal_zone_of_sensor_unregister(). .../devicetree/bindings/hwmon/ntc_thermistor.txt |3 +++ drivers/hwmon/Kconfig |

[PATCH v3] extcon: max77693: Fix a bug occured at changing ADC debounce time.

2014-09-16 Thread Jonghwa Lee
-by: Jonghwa Lee --- Changes: v3: - Fix typo (regmap_write_bits -> regmap_write) v2: - Fix comments. drivers/extcon/extcon-max77693.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c in

[RESEND PATCH] arm: exynos: Allow rtc alarm and tick wakeup irq for exynos3250.

2014-09-16 Thread Jonghwa Lee
Add rtc alarm and tick irq to wakeup sources in exynos3250. Signed-off-by: Jonghwa Lee Acked-by : Chanwoo choi --- arch/arm/mach-exynos/pm.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index fa7218a

[PATCH 2/2] power: smb347-charger: Support Summit SMB358 charger IC.

2014-09-16 Thread Jonghwa Lee
Summit microelectronics' SMB358 charger chip has almost same register map and functionality with SMB347. The voltage and current table are only differed. Thus, SMB347 driver can support SMB358 chip fully with few modifications. Signed-off-by: Jonghwa Lee Acked-by : Chanwoo Choi Ack

[PATCH 1/2] power: smb347-charger: Support devicetree binding for smb347 driver.

2014-09-16 Thread Jonghwa Lee
ually in dt-way. Signed-off-by: Jonghwa Lee Acked-by : Chanwoo Choi Acked-by : Myungjoo Ham --- .../bindings/power_supply/smb347_charger.txt | 57 .../devicetree/bindings/vendor-prefixes.txt|1 + drivers/power/smb347-charger.c |

[PATCH RESEND 0/2] Update smb347 charger driver.

2014-09-16 Thread Jonghwa Lee
This patch set updates smb347 driver to support dt-binding and smb358 chip. Jonghwa Lee (2): power: smb347-charger: Support devicetree binding for smb347 driver. power: smb347-charger: Support Summit SMB358 charger IC. .../bindings/power_supply/smb347_charger.txt | 58

[PATCH RESEND v2] hwmon: ntc_thermistor: Add ntc thermistor to thermal subsystem as a sensor.

2014-09-16 Thread Jonghwa Lee
ff-by: Jonghwa Lee --- Updates in v2 - Remove NULL pointer checking already done by thermal_zone_of_sensor_unregister(). .../devicetree/bindings/hwmon/ntc_thermistor.txt |3 +++ drivers/hwmon/ntc_thermistor.c | 25 2 files changed, 28 insertions(+)

[PATCH v2] extcon: max77693: Fix a bug occured at changing ADC debounce time.

2014-09-02 Thread Jonghwa Lee
-by: Jonghwa Lee --- Changes in v2 - Fix comments. drivers/extcon/extcon-max77693.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index 77460f2..171f35a 100644 --- a/drivers/extcon/extcon

[PATCH] extcon: max77693: Fix a bug occured at changing ADC debounce time.

2014-09-02 Thread Jonghwa Lee
-by: Jonghwa Lee --- drivers/extcon/extcon-max77693.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index 77460f2..661a3bb 100644 --- a/drivers/extcon/extcon-max77693.c +++ b/drivers/extcon/extcon

[PATCH v2] hwmon: ntc_thermistor: Add ntc thermistor to thermal subsystem as a sensor.

2014-09-02 Thread Jonghwa Lee
ff-by: Jonghwa Lee --- Updates in v2 - Remove NULL pointer checking already done by thermal_zone_of_sensor_unregister(). .../devicetree/bindings/hwmon/ntc_thermistor.txt |3 +++ drivers/hwmon/ntc_thermistor.c | 25 2 files changed, 28 insertions(+)

[PATCH] hwmon: ntc_thermistor: Add ntc thermistor to thermal subsystem as a sensor.

2014-08-25 Thread Jonghwa Lee
ff-by: Jonghwa Lee --- .../devicetree/bindings/hwmon/ntc_thermistor.txt |3 +++ drivers/hwmon/ntc_thermistor.c | 26 2 files changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/ntc_thermistor.txt b/Documentation/devicetree/bin

[PATCH] arm: exynos: Allow rtc alarm and tick wakeup irq for exynos3250.

2014-08-25 Thread Jonghwa Lee
Add rtc alarm and tick irq to wakeup sources in exynos3250. Signed-off-by: Jonghwa Lee Acked-by : Chanwoo choi --- arch/arm/mach-exynos/pm.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index fa7218a

[RFC PATCH] PM: Domain: Add flag to assure that device's runtime pm callback is called at once.

2014-06-10 Thread Jonghwa Lee
d-off-by: Jonghwa Lee --- drivers/base/power/domain.c | 17 ++--- include/linux/pm_domain.h | 19 --- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index ae098a2..6c7a786 100644 --- a/dr

[RESEND PATCH v2] clk: exynos4: Add PPMU IP block source clocks.

2014-06-10 Thread Jonghwa Lee
IMAGE, CLK_PPMULCD0, CLK_PPMULCD1, CLK_PPMUFILE, CLK_PPMUGPS, CLK_PPMUDMC0, CLK_PPMUDMC1, CLK_PPMUCPU, CLK_PPMUACP, Signed-off-by: Jonghwa Lee Acked-by: Chanwoo Choi --- V2 : - Change clock definition order. drivers/clk/samsung/clk-exynos4.c | 19 +++ include/dt-bindings/

[PATCH v2] clk: exynos4: Add PPMU IP block source clocks.

2014-05-27 Thread Jonghwa Lee
IMAGE, CLK_PPMULCD0, CLK_PPMULCD1, CLK_PPMUFILE, CLK_PPMUGPS, CLK_PPMUDMC0, CLK_PPMUDMC1, CLK_PPMUCPU, CLK_PPMUACP, Signed-off-by: Jonghwa Lee Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- V2 : - Change clock definition order. drivers/clk/samsung/clk-exynos4.c |

[PATCH] clk: exynos4: Add PPMU IP block source clocks.

2014-05-27 Thread Jonghwa Lee
IMAGE, CLK_PPMULCD0, CLK_PPMULCD1, CLK_PPMUFILE, CLK_PPMUGPS, CLK_PPMUCPU, CLK_PPMUACP, CLK_PPMUDMC0, CLK_PPMUDMC1 Signed-off-by: Jonghwa Lee Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham --- drivers/clk/samsung/clk-exynos4.c | 20 include/dt-bindings/clock/exyn

[PATCH] clocksource: exynos4: Fix wrong bit operation in exynos4_mct_write()

2014-02-04 Thread Jonghwa Lee
There was a faulty bit operation during checking offset in exynos4_mct_write(). This patch fixes it correctly. Signed-off-by: Jonghwa Lee Signed-off-by: MyungJoo Ham --- drivers/clocksource/exynos_mct.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH] fuelguage: max17042: Support regmap to access device's registers.

2013-10-16 Thread Jonghwa Lee
This patch makes max17042 fuelguage driver uses regmap API to access its device's registers. It's based on linux-next. Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- drivers/power/max17042_battery.c | 357 +++--- 1 file changed, 174

[PATCH v2] power: charger-manager: regulator_get() never returns NULL.

2013-06-24 Thread Jonghwa Lee
This patch fixes return value checking of regulator_get() in charger-manager driver. The API, regulator_get(), returns ERR_PTR() when it fails to get regulator with given name, not NULL. Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- v2: - Fix return value to use API's dir

[PATCH 2/2] power: charger-manager: Fix a bug when it unregisters notifier block of extcon.

2013-06-24 Thread Jonghwa Lee
c. To make it work right, it checks extcon_specific_cable_nb's extcon_dev node. If extcon cable notifier block was registered successfully, it has proper extcon_dev pointer if not so it has NULL pointer. Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- drivers/power/charger-manage

[PATCH 1/2] power: charger-manager: regulator_get() never returns NULL.

2013-06-24 Thread Jonghwa Lee
This patch fixes return value checking of regulator_get() in charger-manager driver. The API, regulator_get(), returns ERR_PTR() when it fails to get regulator with given name, not NULL. Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- drivers/power/charger-manager.c |2 +- 1

[PATCH v2] regulator: max77693: Add max77693 regualtor driver.

2013-06-24 Thread Jonghwa Lee
This patch adds new regulator driver to support max77693 chip's regulators. max77693 has two linear voltage regulators and one current regulator which can be controlled through I2C bus. This driver also supports device tree. Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- chagn

[PATCH] regulator: max77693: Add max77693 regualtor driver.

2013-06-20 Thread Jonghwa Lee
This patch adds new regulator driver to support max77693 chip's regulators. max77693 has two linear voltage regulators and one current regulator which can be controlled through I2C bus. This driver also supports device tree. Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- dr

[PATCH] extcon: class: Add NULL pointer checking for removing notifier block.

2013-06-13 Thread Jonghwa Lee
This patch adds NULL pointer checking of extcon device to 'extcon_unregister _interest' which unregisters extcon notifier block. Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- drivers/extcon/extcon-class.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] extcon: max77693: Bug fix for irq handler, call handler depends on ADC.

2013-06-13 Thread Jonghwa Lee
ler might be needed. Otherwise different handler would be called such as JIG's or DOCK's and so on. Signed-off-by: Jonghwa Lee Signed-off-by: Myungjoo Ham --- drivers/extcon/extcon-max77693.c | 44 +++--- 1 file changed, 8 insertions(+), 36 deletions(-) diff

[PATCH 3/3] Thermal:core: Handle trips focused on current trip point only.

2013-05-18 Thread Jonghwa Lee
correspond trip point handling. Signed-off-by: Jonghwa Lee Signed-off-by: MyungJoo Ham --- drivers/thermal/thermal_core.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index c

[PATCH 2/3] Thermal: core: Modify temp_crit_show() to use proper callback function.

2013-05-18 Thread Jonghwa Lee
This patch modifies temp_crit_show() which is used to create hwmon's sysfs node to use .get_crit_temp callback function of thermal zone device rather than .get_trip_temp. Signed-off-by: Jonghwa Lee Signed-off-by: MyungJoo Ham --- drivers/thermal/thermal_core.c |2 +- 1 file chang

[PATCH 1/3] Thermal: core: Ask .get_trip_temp() to register thermal zone device.

2013-05-18 Thread Jonghwa Lee
This patch adds a requirement needing .get_trip_temp() callback function for registering thermal zone device. This function is used when thermal zone is updated and essential where thermal core handles thermal trip based only polling way not hw interrupt. Signed-off-by: Jonghwa Lee Signed-off-by

[RFC v2 2/3] cpufreq:LAB: Introduce new cpufreq LAB(Legacy Application Boost) governor

2013-05-03 Thread Jonghwa Lee
elp with putting to idle as much CPUs as possible. Tested at 3.8 linux kernel, Exynos4412 Device Signed-off-by: Jonghwa Lee Signed-off-by: Lukasz Majewski Signed-off-by: Myungjoo Ham --- drivers/cpufreq/Kconfig | 26 +++ drivers/cpufreq/Makefile |1

[RFC v2 3/3] cpufreq:LAB: Modify cpufreq_governor to support LAB Governor

2013-05-03 Thread Jonghwa Lee
From: Lukasz Majewski Store idle_time information at newly created, per CPU struct lb_cpu_dbs_info_s Moreover new governor #define - GOV_LAB has been added Signed-off-by: Lukasz Majewski --- drivers/cpufreq/cpufreq_governor.c |7 +++ drivers/cpufreq/cpufreq_governor.h | 15 ++

[RFC v2 0/3] LAB: Support for Legacy Application Booster governor

2013-05-03 Thread Jonghwa Lee
From: Lukasz Majewski The purpose of this series is to discuss assumptions and idea of implementing LAB governor support. It shall be treated as a proof-of-concept code for new (fresh) view on power consumption reduction. It is divided to three big parts: 1. Low-level code for supporting frequen

[RFC v2 1/3] cpufreq:overclocking: Overclocking support at Exynos4 SoC

2013-05-03 Thread Jonghwa Lee
From: Lukasz Majewski Exynos4 SoCs (e.g. 4x12) allow setting of frequency above its normal condition limits. This can be done for some short time. This commit comprises of: - low-level code for overclocking support at Exynos4x12 SoC - exynos-cpufreq.c modifications to support generic cpufreq_ove

[RFC PATCH 0/2] cpufreq: Introduce LAB cpufreq governor.

2013-04-01 Thread Jonghwa Lee
it can't be accessed from cpufreq side. I tested this patch on pegasus qaud board. Any comments are welcomed. Jonghwa Lee (2): cpuidle: Add idle enter/exit time stamp for notifying current idle state. cpufreq: Introduce new cpufreq governor, LAB(Legacy Application Boost). drive

[RFC PATCH 2/2] cpufreq: Introduce new cpufreq governor, LAB(Legacy Application Boost).

2013-04-01 Thread Jonghwa Lee
lows. The name of 'Legacy Application Boost' came from the such above aspect which system has the highest performance for single threaded process. This is tested on Pegasus Quad board. Signed-off-by: Jonghwa Lee Signed-off-by: Lukasz Majewski Signed-off-by: Myungjoo Ham --- dri

[RFC PATCH 1/2] cpuidle: Add idle enter/exit time stamp for notifying current idle state.

2013-04-01 Thread Jonghwa Lee
This patch adds idle state time stamp to cpuidle device structure to notify its current idle state. If last enter time is newer than last exit time, then it means that the core is in idle now. Signed-off-by: Jonghwa Lee --- drivers/cpuidle/cpuidle.c |8 include/linux/cpuidle.h

[PATCH v2] rtc: max8997: Add driver for max8997 rtc.

2013-02-07 Thread Jonghwa Lee
(Sudden Momentary Power Loss), WTSR (Watchdog Timeout and Software Reset). Signed-off-by: Jonghwa Lee --- v2 - Add module parameter to enable/disable WTSR, SMPL fuction. - Add unregister_rtc_device() for accidental exit in probing. drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile |1

[PATCH] rtc: max8997: Add driver for max8997 rtc.

2013-02-06 Thread Jonghwa Lee
(Sudden Momentary Power Loss), WTSR (Watchdog Timeout and Software Reset). Signed-off-by: Jonghwa Lee --- drivers/rtc/Kconfig | 30 +++ drivers/rtc/Makefile |1 + drivers/rtc/rtc-max8997.c | 542 + 3 files changed, 573 insertions(+) create

[PATCH] rtc: Modify leap year test for more simpler way

2013-02-06 Thread Jonghwa Lee
Leap year which is multiple of 4, just needed 2 LSB for verifying. A year with zero for all thease two bits means that it is leap year. Signed-off-by: Jonghwa Lee --- include/linux/rtc.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rtc.h b/include/linux

[PATCH] rtc: core: Prevent repeated calling of alarm_irq_enable().

2013-02-06 Thread Jonghwa Lee
This patch removes repeated execution of disabling alarm in rtc_alarm_irq_enable() of rtc core interface. It made useless call even all alarm had been disabled from rtc_timer_remove(). We'd better to skip disabling alarm when timer queue is empty. Signed-off-by: Jonghwa Lee --- driver

[PATCH v3] rtc: max77686: Add driver for max77686 rtc.

2013-02-06 Thread Jonghwa Lee
(Sudden Momentary Power Loss), WTSR (Watchdog Timeout and Software Reset). Signed-off-by: Jonghwa Lee Signed-off-by: Myugnjoo Ham Signed-off-by: Kyungmin Park --- v3 - Change writing delay 16ms to 14ms - Use devm_kzalloc & code clean with Devendra's comments. v2 - http://lkml.org/lkml/2

[PATCH v2] RTC: MAX77686: Add Maxim 77686 driver

2012-12-19 Thread Jonghwa Lee
Add driver for support max77686 rtc. MAX77686 rtc support smpl and wtsr mode. It has two alarm register which can be used for alarming to wake system up. This drvier uses regmap to access its register. Signed-off-by: Chiwoong Byun Signed-off-by: Jonghwa Lee Signed-off-by: Myugnjoo Ham Signed

[RESEND PATCH] RTC: MAX77686: Add Maxim 77686 driver

2012-11-27 Thread Jonghwa Lee
Add driver for support max77686 rtc. MAX77686 rtc support smpl and wtsr mode. It has two alarm register which can be used for alarming to wake system up. This drvier uses regmap to access its register. Signed-off-by: Chiwoong Byun Signed-off-by: Jonghwa Lee Signed-off-by: Myugnjoo Ham Signed

[PATCH] MAINTAINERS: Add maintainers for exynos thermal driver

2012-11-25 Thread Jonghwa Lee
Add Amit and I as maintainers for exynos thermal driver. Signed-off-by: Jonghwa Lee --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 59203e7..e839fb8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2960,6 +2960,13 @@ S

[RESEND PATCH] MAINTAINERS: Add maintainers for exynos thermal driver

2012-11-25 Thread Jonghwa Lee
Add Amit and I as maintainers for exynos thermal driver. Signed-off-by: Jonghwa Lee --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 59203e7..e839fb8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2960,6 +2960,13 @@ S

[PATCH] MAINTAINERS: Add maintainers for exynos thermal driver

2012-11-25 Thread Jonghwa Lee
Add Amit and I as maintainers for exynos thermal driver. Signed-off-by: Jonghwa Lee --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 59203e7..cceedca 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2960,6 +2960,13 @@ S

[PATCH v5] Thermal: exynos: Add sysfs node supporting exynos's emulation mode.

2012-11-20 Thread Jonghwa Lee
d TMU will read current temperature from user value not from sensor's value. This patch includes also documentary placed under Documentation/thermal/. Signed-off-by: Jonghwa Lee --- v5 - Rebase the patch at -next branch of zhang rui's git. - Fix EXYNOS_EMULATION_MODE Kconfig opti

[PATCH] Devfreq: Add debugfs node for representing frequency transition information

2012-11-02 Thread Jonghwa Lee
e last changed frequency when you inspect the node.) This patch also includes documentation. Signed-off-by: Jonghwa Lee --- Documentation/devfreq/transition_status_table | 265 + drivers/devfreq/devfreq.c | 121 +++ include/linux/devfre

[PATCH] Devfreq: Add debugfs node for representing frequency transition information

2012-11-02 Thread Jonghwa Lee
e last changed frequency when you inspect the node.) This patch also includes documentation. Signed-off-by: Jonghwa Lee --- Documentation/devfreq/transition_status_table | 265 + drivers/devfreq/devfreq.c | 123 include/linux/devfre

[PATCH v4] Thermal: exynos: Add sysfs node supporting exynos's emulation mode.

2012-11-01 Thread Jonghwa Lee
d TMU will read current temperature from user value not from sensor's value. This patch includes also documentary placed under Documentation/thermal/. Signed-off-by: Jonghwa Lee --- v4 - Fix Typo. - Remove unnecessary codes. - Add comments about feature of exynos emulation operation to th

[PATCH] Thermal: exynos: Add support for temperature falling interrupt.

2012-11-01 Thread Jonghwa Lee
exynos4210. Signed-off-by: Jonghwa Lee --- drivers/thermal/exynos_thermal.c | 81 +++--- include/linux/platform_data/exynos_thermal.h |3 + 2 files changed, 49 insertions(+), 35 deletions(-) diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal

[PATCH v3] Thermal: exynos: Add sysfs node supporting exynos's emulation mode.

2012-10-31 Thread Jonghwa Lee
d TMU will read current temperature from user value not from sensor's value. This patch includes also documentary placed under Documentation/thermal/. Signed-off-by: Jonghwa Lee --- v2 exynos_thermal.c - Fix build error occured by wrong emulation control register name. - Remove exynos5410

[PATCH v2] Thermal: exynos: Add sysfs node supporting exynos's emulation mode.

2012-10-30 Thread Jonghwa Lee
d TMU will read current temperature from user value not from sensor's value. This patch includes also documentary placed under Documentation/thermal/. Signed-off-by: Jonghwa Lee --- v2 exynos_thermal.c - Fix build error occured by wrong emulation control register name. - Remove exynos5410

[PATCH] Thermal: exynos: Add sysfs node supporting exynos's emulation mode.

2012-10-30 Thread Jonghwa Lee
d TMU will read current temperature from user value not from sensor's value. This patch includes also documentary placed under Documentation/thermal/. Signed-off-by: Jonghwa Lee --- Documentation/thermal/exynos_thermal_emulation | 49 + drivers/thermal/Kconfig

[PATCH] Thermal: Fix bug on cpu_cooling, cooling device's id conflict problem.

2012-09-25 Thread Jonghwa Lee
This patch fixes small bug on cpu_cooling. CPU cooling device has own id generated with idr mathod. However in the previous version, it swapped to all same id at last stage of probing as 0. This makes id's collision and also occures error when it releases that id. Signed-off-by: Jonghw

[PATCH] Thermal: Fix bug on generic thermal framework.

2012-09-23 Thread Jonghwa Lee
polling work to prevent that unexpected state. Signed-off-by: Jonghwa Lee --- drivers/thermal/thermal_sys.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c index 2ab31e4..744e69d 100644 --- a/drivers/thermal

[PATCH] clock: max77686: Add driver for Maxim 77686 32Khz crystal oscillator.

2012-08-28 Thread Jonghwa Lee
ging clock rate. Driver uses regmap API to communicate with internal register. Signed-off-by: Jonghwa Lee --- v5 - Add registering failure handle for each clocks to prevent memory leak. - Update to use the latest clk_register. (Add clk_init_data). - Rename Kconfig menu's name and replace it

  1   2   >