[RFC PATCH 1/4] zbud: use page ref counter for zbud pages

2013-08-06 Thread Krzysztof Kozlowski
and passed to zswap (in zbud_alloc()), - user-supplied eviction callback is called (in zbud_reclaim_page()). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com --- mm/zbud.c | 150

[RFC PATCH 2/4] mm: split code for unusing swap entries from try_to_unuse

2013-08-06 Thread Krzysztof Kozlowski
Move out the code for unusing swap entries from loop in try_to_unuse() to separate function: try_to_unuse_swp_entry(). Export this new function in swapfile.h just like try_to_unuse() is exported. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- include/linux/swapfile.h |2 + mm

[RFC PATCH 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-06 Thread Krzysztof Kozlowski
with other solution. Best regards, Krzysztof Kozlowski Krzysztof Kozlowski (4): zbud: use page ref counter for zbud pages mm: split code for unusing swap entries from try_to_unuse mm: add zbud flag to page flags mm: reclaim zbud pages on migration and compaction include/linux/page

[RFC PATCH 3/4] mm: add zbud flag to page flags

2013-08-06 Thread Krzysztof Kozlowski
Add PageZbud flag to page flags to distinguish pages allocated in zbud. Currently these pages do not have any flags set. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- include/linux/page-flags.h | 12 mm/page_alloc.c|3 +++ mm/zbud.c

[RFC PATCH 4/4] mm: reclaim zbud pages on migration and compaction

2013-08-06 Thread Krzysztof Kozlowski
tries to write them back. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- include/linux/zbud.h | 11 +++- mm/compaction.c | 20 ++- mm/internal.h|1 + mm/page_alloc.c |6 ++ mm/zbud.c| 163

Re: [RFC PATCH 1/4] zbud: use page ref counter for zbud pages

2013-08-06 Thread Krzysztof Kozlowski
Hi Bob, Thank you for review. On wto, 2013-08-06 at 17:00 +0800, Bob Liu wrote: Nit picker, how about change the name to adjust_lists() or something like this because we don't do any rebalancing. OK, I'll change it. Best regards, Krzysztof -- To unsubscribe from this list: send the line

Re: [RFC PATCH 0/4] mm: reclaim zbud pages on migration and compaction

2013-08-06 Thread Krzysztof Kozlowski
On wto, 2013-08-06 at 17:16 +0800, Bob Liu wrote: On 08/06/2013 02:42 PM, Krzysztof Kozlowski wrote: This reclaim process is different than zbud_reclaim_page(). It acts more like swapoff() by trying to unuse pages stored in zbud page and bring them back to memory. The standard

[PATCH] [TRIVIAL] ARM: msm: fix compilation error in gpiomux

2013-08-07 Thread Krzysztof Kozlowski
-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- arch/arm/mach-msm/gpiomux.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/gpiomux.c b/arch/arm/mach-msm/gpiomux.c index 2b8e2d2..4110b82 100644 --- a/arch/arm/mach-msm/gpiomux.c +++ b/arch/arm/mach-msm

Re: [RFC PATCH 3/4] mm: add zbud flag to page flags

2013-08-07 Thread Krzysztof Kozlowski
On wto, 2013-08-06 at 09:58 -0700, Dave Hansen wrote: On 08/05/2013 11:42 PM, Krzysztof Kozlowski wrote: +#ifdef CONFIG_ZBUD + /* Allocated by zbud. Flag is necessary to find zbud pages to unuse +* during migration/compaction. +*/ + PG_zbud, +#endif Do you _really_ need

Re: [RFC PATCH 1/4] zbud: use page ref counter for zbud pages

2013-08-07 Thread Krzysztof Kozlowski
Hi Seth, On wto, 2013-08-06 at 13:51 -0500, Seth Jennings wrote: I like the idea. I few things below. Also agree with Bob the s/rebalance/adjust/ for rebalance_lists(). OK. s/else if/if/ since the if above returns if true. Sure. + /* zbud_free() or zbud_alloc() */ +

Re: [RFC 0/3] Pin page control subsystem

2013-08-13 Thread Krzysztof Kozlowski
Hi Minchan, On wto, 2013-08-13 at 16:04 +0900, Minchan Kim wrote: patch 2 introduce pinpage control subsystem. So, subsystems want to control pinpage should implement own pinpage_xxx functions because each subsystem would have other character so what kinds of data structure for managing

Re: [RFC PATCH 1/4] zbud: use page ref counter for zbud pages

2013-09-10 Thread Krzysztof Kozlowski
Hi, On pon, 2013-09-09 at 14:47 -0500, Seth Jennings wrote: On Fri, Aug 30, 2013 at 10:42:53AM +0200, Krzysztof Kozlowski wrote: Use page reference counter for zbud pages. The ref counter replaces zbud_header.under_reclaim flag and ensures that zbud page won't be freed when zbud_free

[PATCH v2 3/5] mm: use mapcount for identifying zbud pages

2013-09-11 Thread Krzysztof Kozlowski
Currently zbud pages do not have any flags set so it is not possible to identify them during migration or compaction. Implement PageZbud() by comparing page-_mapcount to -127 to distinguish pages allocated by zbud. Just like PageBuddy() is implemented. Signed-off-by: Krzysztof Kozlowski k.kozlow

[PATCH v2 2/5] zbud: make freechunks a block local variable

2013-09-11 Thread Krzysztof Kozlowski
Move freechunks variable in zbud_free() and zbud_alloc() to block-level scope (from function scope). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- mm/zbud.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mm/zbud.c b/mm/zbud.c index 3f4be72..1d5b26b

[PATCH v2 0/5] mm: migrate zbud pages

2013-09-11 Thread Krzysztof Kozlowski
(). Best regards, Krzysztof Kozlowski Krzysztof Kozlowski (5): zbud: use page ref counter for zbud pages zbud: make freechunks a block local variable mm: use mapcount for identifying zbud pages mm: use indirect zbud handle and radix tree mm: migrate zbud pages include/linux/mm.h | 23

[PATCH v2 4/5] mm: use indirect zbud handle and radix tree

2013-09-11 Thread Krzysztof Kozlowski
to address this problem by protecting handles from freeing. Also the call to zbud_unmap() in zswap_writeback_entry() was moved further - when the tree's lock could be obtained. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- include/linux/zbud.h |2 +- mm/zbud.c| 313

[PATCH v2 1/5] zbud: use page ref counter for zbud pages

2013-09-11 Thread Krzysztof Kozlowski
and passed to zswap (in zbud_alloc()), - user-supplied eviction callback is called (in zbud_reclaim_page()). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Reviewed-by: Bob Liu bob@oracle.com --- mm/zbud.c | 117

[PATCH v2 5/5] mm: migrate zbud pages

2013-09-11 Thread Krzysztof Kozlowski
be replaced for example with pin page control subsystem: http://article.gmane.org/gmane.linux.kernel.mm/105308 In such case the zbud migration code (zbud_migrate_page()) can be safely re-used. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- include/linux/zbud.h |1 + mm/compaction.c

[PATCH 2/2] mfd: max77693: reorder params in API for regmap consistency

2013-11-08 Thread Krzysztof Kozlowski
, - max77693_update_reg() reorder val and mask. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/extcon/extcon-max77693.c | 14 +++--- drivers/mfd/max77693-irq.c |2 +- drivers/mfd/max77693.c

[PATCH 1/2] mfd: sec: reorder params in API for regmap consistency

2013-11-08 Thread Krzysztof Kozlowski
, - sec_reg_update() reorder val and mask. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/mfd/sec-core.c |6 +++--- drivers/regulator/s5m8767.c | 26 +- include/linux/mfd/samsung/core.h

Re: [PATCH 06/14] vrange: Add basic functions to purge volatile pages

2013-10-03 Thread Krzysztof Kozlowski
On śro, 2013-10-02 at 17:51 -0700, John Stultz wrote: +static void try_to_discard_one(struct vrange_root *vroot, struct page *page, + struct vm_area_struct *vma, unsigned long addr) +{ + struct mm_struct *mm = vma-vm_mm; + pte_t *pte; + pte_t pteval;

Re: [PATCH v2 0/5] mm: migrate zbud pages

2013-10-03 Thread Krzysztof Kozlowski
On wto, 2013-10-01 at 16:04 -0500, Seth Jennings wrote: Yes, it is very similar. I'm beginning to like aspects of this patch more as I explore this issue more. At first, I balked at the idea of yet another abstraction layer, but it is very hard to avoid unless you want to completely

[PATCH] spi: spi-s3c64xx: Add missing pm_runtime_put on setup fail

2013-10-17 Thread Krzysztof Kozlowski
pm_runtime_put() wasn't called if clock rate could not be set up in s3c64xx_spi_setup() leading to invalid count of device pm_runtime usage. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/spi/spi-s3c64xx.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi

[PATCH] spi/s3c64xx: Add missing pm_runtime_set_active() call in probe()

2013-10-17 Thread Krzysztof Kozlowski
Mark device as PM runtime active during initialization to reflect actual device power/clocks state. This reduces the enable count for SPI bus controller gate clock so it can be disabled when the bus controller is not used. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off

[PATCH] spi/s3c64xx: Fix doubled clock disable on suspend

2013-10-21 Thread Krzysztof Kozlowski
sleep for the time of s3c64xx_spi_hwinit(). Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/spi/spi-s3c64xx.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c

Re: [PATCH] spi/s3c64xx: Fix doubled clock disable on suspend

2013-10-21 Thread Krzysztof Kozlowski
On Mon, 2013-10-21 at 11:42 +0200, Sylwester Nawrocki wrote: pm_runtime_{get,put}* must not be called from drivers's system suspend/resume callbacks. Please use pm_runtime_suspended() to check device runtime PM status in s3c64xx_spi_{suspend,resume} callbacks and handle the clocks

[PATCH 1/2] spi/s3c64xx: Do not ignore return value of spi_master_resume/suspend

2013-10-21 Thread Krzysztof Kozlowski
During PM resume and suspend do not ignore the return value of spi_master_suspend() or spi_master_resume(). Instead pass it further. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/spi/spi-s3c64xx.c |8 1

[PATCH 2/2] spi/s3c64xx: Fix doubled clock disable on suspend

2013-10-21 Thread Krzysztof Kozlowski
is not suspended. During resume do not enable the clocks if device is runtime suspended. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/spi/spi-s3c64xx.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions

[PATCH v3 0/5] mfd: max14577: Add max14577 MFD drivers

2013-11-22 Thread Krzysztof Kozlowski
, Krzysztof Kozlowski Chanwoo Choi (2): mfd: max14577: Add max14577 MFD driver core extcon: max14577: Add extcon-max14577 driver to support MUIC device Krzysztof Kozlowski (3): charger: max14577: Add charger support for Maxim 14577 regulator: max14577: Add regulator driver for Maxim 14577 mfd

[PATCH v3 4/5] regulator: max14577: Add regulator driver for Maxim 14577

2013-11-22 Thread Krzysztof Kozlowski
enabled or disabled. 2. Current regulator for the charger. It provides current from 90mA up to 950mA. Driver supports Device Tree. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/regulator/Kconfig|7 ++ drivers

[PATCH v3 5/5] mfd: max14577: Add device tree bindings document

2013-11-22 Thread Krzysztof Kozlowski
Add document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/devicetree/bindings/mfd/max14577.txt | 48 1 file changed, 48

[PATCH v3 1/5] mfd: max14577: Add max14577 MFD driver core

2013-11-22 Thread Krzysztof Kozlowski
1.1. It has also SFOUT LDO output for powering USB devices. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/mfd/Kconfig | 13 ++ drivers/mfd/Makefile

[PATCH v3 3/5] charger: max14577: Add charger support for Maxim 14577

2013-11-22 Thread Krzysztof Kozlowski
MAX14577 chip is a multi-function device which includes MUIC, charger and voltage regulator. The driver is located in drivers/mfd. This patch supports battery charging control of MAX14577 chip and provides power supply class information to userspace. Signed-off-by: Krzysztof Kozlowski k.kozlow

[PATCH v3 2/5] extcon: max14577: Add extcon-max14577 driver to support MUIC device

2013-11-22 Thread Krzysztof Kozlowski
Choi cw00.c...@samsung.com Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/extcon/Kconfig | 10 + drivers/extcon/Makefile |1 + drivers/extcon/extcon-max14577.c | 749

Re: [PATCH v3 4/5] regulator: max14577: Add regulator driver for Maxim 14577

2013-11-22 Thread Krzysztof Kozlowski
On Fri, 2013-11-22 at 09:16 +, Lee Jones wrote: (...) On Fri, 22 Nov 2013, Krzysztof Kozlowski wrote: --- a/include/linux/mfd/max14577.h +++ b/include/linux/mfd/max14577.h @@ -63,7 +63,6 @@ struct max14577_platform_data { int (*set_gpio_pogo_cb) (int new_dev); - int

Re: [PATCH v3 3/5] charger: max14577: Add charger support for Maxim 14577

2013-11-22 Thread Krzysztof Kozlowski
information to userspace. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com ... diff --git a/drivers/power/max14577_charger.c b/drivers/power/max14577_charger.c ... +static struct platform_driver max14577_charger_driver

Re: [PATCH v3 1/5] mfd: max14577: Add max14577 MFD driver core

2013-11-22 Thread Krzysztof Kozlowski
On Fri, 2013-11-22 at 09:31 +, Lee Jones wrote: (...) +static struct mfd_cell max14577_devs[] = { + { .name = max14577-muic, }, + { .name = max14577-regulator, }, + { .name = max14577-charger, }, +}; If these all support device tree, shouldn't you be populating

Re: [PATCH v3 2/5] extcon: max14577: Add extcon-max14577 driver to support MUIC device

2013-11-22 Thread Krzysztof Kozlowski
On Fri, 2013-11-22 at 10:35 +, Mark Brown wrote: On Fri, Nov 22, 2013 at 09:46:09AM +0100, Krzysztof Kozlowski wrote: +#defineDELAY_MS_DEFAULT17000 /* unit: millisecond */ This delay is sufficiently large that the delayed work using it probably ought

[PATCH v4 5/5] mfd: max14577: Add device tree bindings document

2013-11-22 Thread Krzysztof Kozlowski
Add document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/devicetree/bindings/mfd/max14577.txt | 48 1 file changed, 48

[PATCH v4 0/5] mfd: max14577: Add max14577 MFD drivers

2013-11-22 Thread Krzysztof Kozlowski
of_get_child_by_name() for accessing regulators bindings. 7. Added documentation of bindings (fifth patch). Best regards, Krzysztof Kozlowski Chanwoo Choi (2): mfd: max14577: Add max14577 MFD driver core extcon: max14577: Add extcon-max14577 driver to support MUIC device Krzysztof Kozlowski

[PATCH v4 3/5] charger: max14577: Add charger support for Maxim 14577

2013-11-22 Thread Krzysztof Kozlowski
MAX14577 chip is a multi-function device which includes MUIC, charger and voltage regulator. The driver is located in drivers/mfd. This patch supports battery charging control of MAX14577 chip and provides power supply class information to userspace. Signed-off-by: Krzysztof Kozlowski k.kozlow

[PATCH v4 2/5] extcon: max14577: Add extcon-max14577 driver to support MUIC device

2013-11-22 Thread Krzysztof Kozlowski
Choi cw00.c...@samsung.com Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/extcon/Kconfig | 10 + drivers/extcon/Makefile |1 + drivers/extcon/extcon-max14577.c | 752

[PATCH v4 4/5] regulator: max14577: Add regulator driver for Maxim 14577

2013-11-22 Thread Krzysztof Kozlowski
enabled or disabled. 2. Current regulator for the charger. It provides current from 90mA up to 950mA. Driver supports Device Tree. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/mfd/max14577.c |3 +- drivers

[PATCH v4 1/5] mfd: max14577: Add max14577 MFD driver core

2013-11-22 Thread Krzysztof Kozlowski
1.1. It has also SFOUT LDO output for powering USB devices. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com Reviewed-by: Mark Brown broo...@linaro.org --- drivers/mfd/Kconfig

Re: [PATCH v3 4/5] regulator: max14577: Add regulator driver for Maxim 14577

2013-11-22 Thread Krzysztof Kozlowski
On Fri, 2013-11-22 at 10:15 +, Lee Jones wrote: +#ifdef CONFIG_OF +static int max14577_regulator_dt_parse_pdata(struct platform_device *pdev, + struct max14577_platform_data *pdata) +{ + struct max14577 *max14577 = dev_get_drvdata(pdev-dev.parent);

Re: [PATCH] rtc: s5m-rtc: Fix info-rtc assignment

2013-11-26 Thread Krzysztof Kozlowski
... Please test. Thanks! drivers/rtc/rtc-s5m.c | 54 - 1 file changed, 27 insertions(+), 27 deletions(-) Seems good, tested on device with S5M8767. Tested-by: Krzysztof Kozlowski k.kozlow...@samsung.com Best regards, Krzysztof -- To unsubscribe

Re: [PATCH] rtc: s5m-rtc: Fix info-rtc assignment

2013-11-26 Thread Krzysztof Kozlowski
On 11/26/2013 10:17 AM, Krzysztof Kozlowski wrote: On 11/15/2013 12:54 PM, Geert Uytterhoeven wrote: drivers/rtc/rtc-s5m.c: In function ‘s5m_rtc_probe’: drivers/rtc/rtc-s5m.c:545: warning: assignment from incompatible pointer type struct s5m_rtc_info.rtc has type struct regmap *, while struct

[PATCH 0/5] rtc: s5m: Bug fixes of the driver after tests

2013-11-26 Thread Krzysztof Kozlowski
/gmane.linux.kernel/1595905 Best regards, Krzysztof Krzysztof Kozlowski (5): rtc: s5m: Fix register updating by adding regmap for RTC rtc: s5m: Fix unsuccesful IRQ request during probe rtc: s5m: Limit endless loop waiting for register update mfd: sec: Add PM ops and make it a wake up source

[PATCH 2/5] rtc: s5m: Fix unsuccesful IRQ request during probe

2013-11-26 Thread Krzysztof Kozlowski
Probe failed for rtc-s5m: s5m-rtc s5m-rtc: Failed to request alarm IRQ: 12: -22 s5m-rtc: probe of s5m-rtc failed with error -22 Fix rtc-s5m interrupt request by using regmap_irq_get_virq() for mapping the IRQ. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off

[PATCH 5/5] rtc: s5m: Enable IRQ wake during suspend

2013-11-26 Thread Krzysztof Kozlowski
Add PM suspend/resume ops to rtc-s5m driver and enable IRQ wake during suspend so the RTC would act like a wake up source. This allows waking up from suspend to RAM on RTC alarm interrupt. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p

[PATCH 4/5] mfd: sec: Add PM ops and make it a wake up source

2013-11-26 Thread Krzysztof Kozlowski
is still suspended) and RTC Alarm interrupt is disabled. Disable the S5M8767 interrupts during suspend (disable_irq()) and enable them during resume so the device will be still woken up but the interrupt won't happen before resuming I2C bus. Signed-off-by: Krzysztof Kozlowski k.kozlow

[PATCH 1/5] rtc: s5m: Fix register updating by adding regmap for RTC

2013-11-26 Thread Krzysztof Kozlowski
. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/mfd/sec-core.c | 14 ++ drivers/rtc/rtc-s5m.c|2 +- include/linux/mfd/samsung/core.h |1 + 3 files changed, 16 insertions(+), 1

[PATCH 3/5] rtc: s5m: Limit endless loop waiting for register update

2013-11-26 Thread Krzysztof Kozlowski
After setting alarm or time the driver is waiting for UDR register to be cleared indicating that registers data have been transferred. Limit the endless loop to only 5 retries. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

Re: [PATCH 1/5] rtc: s5m: Fix register updating by adding regmap for RTC

2013-11-26 Thread Krzysztof Kozlowski
On Tue, 2013-11-26 at 15:07 +0100, Geert Uytterhoeven wrote: On Tue, Nov 26, 2013 at 2:50 PM, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: On S5M8767A registers were not properly updated and read due to usage of the same regmap as the PMIC. This could be observed in various hangs

[PATCH v5 2/2] mfd: max14577: Add device tree bindings document

2013-11-27 Thread Krzysztof Kozlowski
Add document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/devicetree/bindings/mfd/max14577.txt | 48 1 file changed, 48

[PATCH v5 1/2] regulator: max14577: Add regulator driver for Maxim 14577

2013-11-27 Thread Krzysztof Kozlowski
enabled or disabled. 2. Current regulator for the charger. It provides current from 90mA up to 950mA. Driver supports Device Tree. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/mfd/max14577.c | 13 +- drivers

[PATCH] mfd: max14577: Match regulator by of_compatible string

2013-11-27 Thread Krzysztof Kozlowski
Match max14577 regulator driver by of_compatible specified in mfd_cell. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/mfd/max14577.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index 94b766d

[PATCH v2 0/5] rtc: s5m: Bug fixes of the driver after tests

2013-11-28 Thread Krzysztof Kozlowski
patchset as this was applied by Lee Jones. Best regards, Krzysztof Kozlowski Krzysztof Kozlowski (5): mfd/rtc: s5m: Fix register updating by adding regmap for RTC rtc: s5m: Fix unsuccesful IRQ request during probe rtc: s5m: Limit endless loop waiting for register update rtc: s5m: Enable

[PATCH v2 5/5] mfd: sec: Constify regmap configs and regmap irqs

2013-11-28 Thread Krzysztof Kozlowski
Add const to static struct regmap_irq and static struct regmap_config. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/mfd/sec-core.c |8 drivers/mfd/sec-irq.c | 12 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/mfd

[PATCH v2 2/5] rtc: s5m: Fix unsuccesful IRQ request during probe

2013-11-28 Thread Krzysztof Kozlowski
Probe failed for rtc-s5m: s5m-rtc s5m-rtc: Failed to request alarm IRQ: 12: -22 s5m-rtc: probe of s5m-rtc failed with error -22 Fix rtc-s5m interrupt request by using regmap_irq_get_virq() for mapping the IRQ. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off

[PATCH v2 4/5] rtc: s5m: Enable IRQ wake during suspend

2013-11-28 Thread Krzysztof Kozlowski
Add PM suspend/resume ops to rtc-s5m driver and enable IRQ wake during suspend so the RTC would act like a wake up source. This allows waking up from suspend to RAM on RTC alarm interrupt. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p

[PATCH v2 1/5] mfd/rtc: s5m: Fix register updating by adding regmap for RTC

2013-11-28 Thread Krzysztof Kozlowski
. On this chip family the RTC has different I2C address than PMIC so additional regmap is needed. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/mfd/sec-core.c | 30 ++ drivers/mfd/sec

[PATCH v2 3/5] rtc: s5m: Limit endless loop waiting for register update

2013-11-28 Thread Krzysztof Kozlowski
After setting alarm or time the driver is waiting for UDR register to be cleared indicating that registers data have been transferred. Limit the endless loop to only 5 retries. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com

Re: [PATCH v5 1/2] regulator: max14577: Add regulator driver for Maxim 14577

2013-12-02 Thread Krzysztof Kozlowski
Hi Mark, On Wed, 2013-11-27 at 16:28 +, Mark Brown wrote: On Wed, Nov 27, 2013 at 04:13:23PM +, Lee Jones wrote: On Wed, 27 Nov 2013, Mark Brown wrote: The usual thing to do is of_get_child_by_name() on the parent to get the container to search in. What do you mean when you

Re: [PATCH] swap: fix set_blocksize race during swapon/swapoff

2013-10-14 Thread Krzysztof Kozlowski
On Fri, 2013-10-11 at 12:02 -0700, Andrew Morton wrote: (cc Hugh) On Fri, 11 Oct 2013 11:54:22 +0200 Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Swapoff used old_block_size from swap_info which could be overwritten by concurrent swapon. Reported-by: Weijie Yang weijie.yang

Re: [PATCH] swap: fix set_blocksize race during swapon/swapoff

2013-10-14 Thread Krzysztof Kozlowski
On Fri, 2013-10-11 at 11:55 -0700, Andrew Morton wrote: On Fri, 11 Oct 2013 11:54:22 +0200 Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Swapoff used old_block_size from swap_info which could be overwritten by concurrent swapon. Better changelogs, please. What were the user

[PATCH] swap: fix setting PAGE_SIZE blocksize during swapoff/swapon race

2013-10-14 Thread Krzysztof Kozlowski
. It reduces the possibility of races as the swapon must overwrite p-old_block_size before acquiring swapon_mutex in swapoff. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- mm/swapfile.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/mm

Re: [PATCH] swap: fix setting PAGE_SIZE blocksize during swapoff/swapon race

2013-10-15 Thread Krzysztof Kozlowski
On Tue, 2013-10-15 at 02:59 -0700, Hugh Dickins wrote: On Mon, 14 Oct 2013, Krzysztof Kozlowski wrote: Fix race between swapoff and swapon resulting in setting blocksize of PAGE_SIZE for block devices during swapoff. The swapon modifies swap_info-old_block_size before acquiring

[PATCH] regulator: s5m8767: Disable OVCB in probe

2013-11-12 Thread Krzysztof Kozlowski
with reordered buf and count parameters so it depends on: mfd: sec: reorder params in API for regmap consistency http://www.spinics.net/lists/kernel/msg1632519.html Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers

[PATCH 0/4] mfd: max14577: Add max14577 MFD drivers

2013-11-12 Thread Krzysztof Kozlowski
driver for SFOUT and charger. The patchset is rebased on latest Linus' tree (v3.12-4849-g10d0c97) however testing was mostly done on 3.10. Except minor change in extcon_dev_register() function the patchset cleanly applies to 3.10 and 3.12. Best regards, Krzysztof Kozlowski Chanwoo Choi (2

[PATCH 1/4] mfd: max14577: Add max14577 MFD driver core

2013-11-12 Thread Krzysztof Kozlowski
1.1. It has also SFOUT LDO output for powering USB devices. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/mfd/Kconfig | 13 ++ drivers/mfd/Makefile

[PATCH 2/4] extcon: max77693: Add extcon-max14577 driver to support MUIC device

2013-11-12 Thread Krzysztof Kozlowski
Choi cw00.c...@samsung.com Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/extcon/Kconfig | 10 + drivers/extcon/Makefile |1 + drivers/extcon/extcon-max14577.c | 806

[PATCH 3/4] charger: max14577: Add charger support for Maxim 14577

2013-11-12 Thread Krzysztof Kozlowski
MAX14577 chip is a multi-function device which includes MUIC, charger and voltage regulator. The driver is located in drivers/mfd. This patch supports battery charging control of MAX14577 chip and provides power supply class information to userspace. Signed-off-by: Krzysztof Kozlowski k.kozlow

[PATCH 4/4] regulator: max14577: Add regulator driver for Maxim 14577

2013-11-12 Thread Krzysztof Kozlowski
enabled or disabled. 2. Current regulator for the charger. It provides current from 90mA up to 950mA. Driver supports Device Tree. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/regulator/Kconfig|7 + drivers

Re: [PATCH 1/4] mfd: max14577: Add max14577 MFD driver core

2013-11-14 Thread Krzysztof Kozlowski
Hi, On Wed, 2013-11-13 at 13:13 +, Mark Brown wrote: On Wed, Nov 13, 2013 at 08:40:54AM +0100, Krzysztof Kozlowski wrote: +/** + * After resuming from suspend it may happen that IRQ is signalled but + * IRQ GPIO is not high. Also the interrupt registers won't have any data + * (all

Re: [PATCH 1/4] mfd: max14577: Add max14577 MFD driver core

2013-11-14 Thread Krzysztof Kozlowski
Hi, On Wed, 2013-11-13 at 11:50 +, Mark Rutland wrote: I see some of_* calls in the code, but no documentation of the binding. As this has more than just a compatible, interrupts, and reg, it needs its own binding document. [...] +static struct mfd_cell max14577_devs[] = { +

Re: [PATCH 4/4] regulator: max14577: Add regulator driver for Maxim 14577

2013-11-14 Thread Krzysztof Kozlowski
On Wed, 2013-11-13 at 13:23 +, Mark Brown wrote: On Wed, Nov 13, 2013 at 08:40:57AM +0100, Krzysztof Kozlowski wrote: +static inline int max14577_reg_set_safeout(struct regmap *rmap, int on) +{ + u8 reg_data = (on ? 0x1 CTRL2_SFOUTORD_SHIFT : 0x0); The ternery operator is rarely

[PATCH v2 0/5] mfd: max14577: Add max14577 MFD drivers

2013-11-20 Thread Krzysztof Kozlowski
() for accessing regulators bindings. 7. Added documentation of bindings (fifth patch). Best regards, Krzysztof Kozlowski Chanwoo Choi (2): mfd: max14577: Add max14577 MFD driver core extcon: max14577: Add extcon-max14577 driver to support MUIC device Krzysztof Kozlowski (3): charger: max14577

[PATCH v2 2/5] extcon: max14577: Add extcon-max14577 driver to support MUIC device

2013-11-20 Thread Krzysztof Kozlowski
Choi cw00.c...@samsung.com Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/extcon/Kconfig | 10 + drivers/extcon/Makefile |1 + drivers/extcon/extcon-max14577.c | 806

[PATCH v2 4/5] regulator: max14577: Add regulator driver for Maxim 14577

2013-11-20 Thread Krzysztof Kozlowski
enabled or disabled. 2. Current regulator for the charger. It provides current from 90mA up to 950mA. Driver supports Device Tree. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/regulator/Kconfig|7 ++ drivers

[PATCH v2 3/5] charger: max14577: Add charger support for Maxim 14577

2013-11-20 Thread Krzysztof Kozlowski
MAX14577 chip is a multi-function device which includes MUIC, charger and voltage regulator. The driver is located in drivers/mfd. This patch supports battery charging control of MAX14577 chip and provides power supply class information to userspace. Signed-off-by: Krzysztof Kozlowski k.kozlow

Re: [PATCH v2 1/5] mfd: max14577: Add max14577 MFD driver core

2013-11-21 Thread Krzysztof Kozlowski
On Wed, 2013-11-20 at 15:31 +, Mark Brown wrote: On Wed, Nov 20, 2013 at 03:12:08PM +0100, Krzysztof Kozlowski wrote: +static irqreturn_t max14577_irq_thread(int irq, void *data) +{ + struct max14577 *max14577 = data; + u8 irq_reg[MAX14577_IRQ_REGS_NUM] = {0}; + u8

Re: [PATCH v2 0/5] rtc: s5m: Bug fixes of the driver after tests

2013-12-03 Thread Krzysztof Kozlowski
On Mon, 2013-12-02 at 15:10 -0800, Andrew Morton wrote: On Thu, 28 Nov 2013 09:09:38 +0100 Krzysztof Kozlowski k.kozlow...@samsung.com wrote: This is a second version of patchset of small but important fixes for rtc-s5m driver. Last patches also add waking up on RTC alarm interrupts

[PATCH v6 0/3] mfd: max14577: Add max14577 MFD drivers

2013-12-04 Thread Krzysztof Kozlowski
authors. 6. Use of_get_child_by_name() for accessing regulators bindings. 7. Added documentation of bindings (fifth patch). Best regards, Krzysztof Kozlowski Krzysztof Kozlowski (3): charger: max14577: Add charger support for Maxim 14577 regulator: max14577: Add regulator driver for Maxim 14577

[PATCH v6 1/3] charger: max14577: Add charger support for Maxim 14577

2013-12-04 Thread Krzysztof Kozlowski
MAX14577 chip is a multi-function device which includes MUIC, charger and voltage regulator. The driver is located in drivers/mfd. This patch supports battery charging control of MAX14577 chip and provides power supply class information to userspace. Signed-off-by: Krzysztof Kozlowski k.kozlow

[PATCH v6 3/3] mfd: max14577: Add device tree bindings document

2013-12-04 Thread Krzysztof Kozlowski
Add document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/devicetree/bindings/mfd/max14577.txt | 48 1 file changed, 48

[PATCH v6 2/3] regulator: max14577: Add regulator driver for Maxim 14577

2013-12-04 Thread Krzysztof Kozlowski
enabled or disabled. 2. Current regulator for the charger. It provides current from 90mA up to 950mA. Driver supports Device Tree. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/regulator/Kconfig|7 ++ drivers

Re: [PATCH v6 3/3] mfd: max14577: Add device tree bindings document

2013-12-04 Thread Krzysztof Kozlowski
On Wed, 2013-12-04 at 19:50 +0900, Chanwoo Choi wrote: Hi Krzysztof, On 12/04/2013 07:40 PM, Krzysztof Kozlowski wrote: Add document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park

Re: [PATCH v6 3/3] mfd: max14577: Add device tree bindings document

2013-12-04 Thread Krzysztof Kozlowski
On Wed, 2013-12-04 at 20:01 +0900, Chanwoo Choi wrote: On 12/04/2013 07:56 PM, Krzysztof Kozlowski wrote: On Wed, 2013-12-04 at 19:50 +0900, Chanwoo Choi wrote: (...) I prefer to add dt data about max14577-muic on following: If extcon consumer driver need to use muic device, dts should

Re: [PATCH v6 3/3] mfd: max14577: Add device tree bindings document

2013-12-04 Thread Krzysztof Kozlowski
On Wed, 2013-12-04 at 11:20 +, Lee Jones wrote: Add document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/devicetree/bindings/mfd

[PATCH v7 1/3] charger: max14577: Add charger support for Maxim 14577

2013-12-06 Thread Krzysztof Kozlowski
MAX14577 chip is a multi-function device which includes MUIC, charger and voltage regulator. The driver is located in drivers/mfd. This patch supports battery charging control of MAX14577 chip and provides power supply class information to userspace. Signed-off-by: Krzysztof Kozlowski k.kozlow

[PATCH v7 2/3] regulator: max14577: Add regulator driver for Maxim 14577

2013-12-06 Thread Krzysztof Kozlowski
enabled or disabled. 2. Current regulator for the charger. It provides current from 90mA up to 950mA. Driver supports Device Tree. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/regulator/Kconfig|7 ++ drivers

[PATCH v7 0/3] mfd: max14577: Add max14577 MFD drivers

2013-12-06 Thread Krzysztof Kozlowski
resume. This lead to removal of the weird IRQ/GPIO code discussed during review. 5. Minor fixes pointed by checkpatch, added authors. 6. Use of_get_child_by_name() for accessing regulators bindings. 7. Added documentation of bindings (fifth patch). Best regards, Krzysztof Kozlowski Krzysztof

[PATCH v7 3/3] mfd: max14577: Add device tree bindings document

2013-12-06 Thread Krzysztof Kozlowski
Add document describing device tree bindings for MAX14577 MFD driver. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/devicetree/bindings/mfd/max14577.txt | 65 1 file changed, 65

Re: [PATCH v2 3/3] mfd: max8997: move regmap handling to function drivers

2014-03-12 Thread Krzysztof Kozlowski
On Wed, 2014-03-12 at 14:37 +0100, Robert Baldyga wrote: This patch moves code creating new i2c clients and regmaps to function drivers which use them. It allows to avoid creating this instances when individual function drivers are not enabled. Signed-off-by: Robert Baldyga

[PATCH 1/2] mfd: tps65910: Fix possible invalid pointer dereference on regmap_add_irq_chip fail

2014-03-12 Thread Krzysztof Kozlowski
memory (because regmap_add_irq_chip() will free it on error); This results in invalid memory access during driver remove because the tps65910_irq_exit() tests whether 'tps65910-chip_irq' is not null. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Cc: sta...@vger.kernel.org Fixes

[PATCH 2/2] mfd: tps65910: Fix regmap_irq_chip_data leak on mfd_add_devices fail

2014-03-12 Thread Krzysztof Kozlowski
The tps65910_i2c_probe() allocates regmap_irq_chip in tps65910_irq_init() but it does not clean this up in case of mfd_add_devices() failure. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/mfd/tps65910.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd

[PATCH] regmap: irq: Set data pointer only on regmap_add_irq_chip success

2014-03-13 Thread Krzysztof Kozlowski
but the 'data' variable was not changed. This could lead to errors if the caller passed such 'data' to regmap_del_irq_chip(). The 'data' pointer should be changed atomically from the caller perspective - set it only on regmap_add_irq_chip() success. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com

[PATCH v2 0/3] clk: s2mps11: Add support for S2MPS14 clocks

2014-03-13 Thread Krzysztof Kozlowski
Krzysztof Kozlowski (3): clk: s2mps11: Add support for S2MPS14 clocks mfd: sec-core: Add of_compatible strings for MFD cells Documentation: mfd: s2mps11: Describe S5M8767 and S2MPS14 clocks Documentation/devicetree/bindings/mfd/s2mps11.txt | 24 +--- drivers/clk/Kconfig

[PATCH v2 3/3] Documentation: mfd: s2mps11: Describe S5M8767 and S2MPS14 clocks

2014-03-13 Thread Krzysztof Kozlowski
Add bindings documentation for clocks on S5M8767 and S2MPS14 devices. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com Cc: Tomasz Figa t.f...@samsung.com Cc: devicet...@vger.kernel.org Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark Rutland mark.rutl

  1   2   3   4   5   6   7   8   9   10   >