[PATCH] mm/mmap: fix the adjusted length error

2019-05-18 Thread jianhong chen
memory gap, but we can't get it from kernel. Signed-off-by: jianhong chen Cc: sta...@vger.kernel.org --- mm/mmap.c | 43 +-- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index bd7b9f2..c5a5782 100644 --- a/mm/mmap.

[PATCH] mm/mmap: fix the adjusted length error

2019-05-17 Thread jianhong chen
memory gap, but we can't get it from kernel. Signed-off-by: jianhong chen Cc: sta...@vger.kernel.org --- mm/mmap.c | 43 +-- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c index bd7b9f2..c5a5782 100644 --- a/mm/mmap.

Re: [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC

2017-07-20 Thread Jianhong Chen
在 2017/6/29 18:29, Heiko Stübner 写道: Hi, Am Mittwoch, 14. Juni 2017, 20:11:06 CEST schrieb Jianhong Chen: 在 2017/6/9 20:17, Heiko Stuebner 写道: Am Freitag, 9. Juni 2017, 13:37:26 CEST schrieb Linus Walleij: Heiko, can you please look at this patch. On Thu, Jun 8, 2017 at 9:30 AM, Jianhong

Re: [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC

2017-07-20 Thread Jianhong Chen
在 2017/6/29 18:29, Heiko Stübner 写道: Hi, Am Mittwoch, 14. Juni 2017, 20:11:06 CEST schrieb Jianhong Chen: 在 2017/6/9 20:17, Heiko Stuebner 写道: Am Freitag, 9. Juni 2017, 13:37:26 CEST schrieb Linus Walleij: Heiko, can you please look at this patch. On Thu, Jun 8, 2017 at 9:30 AM, Jianhong

Re: [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC

2017-06-14 Thread Jianhong Chen
在 2017/6/9 20:17, Heiko Stuebner 写道: Hi, Am Freitag, 9. Juni 2017, 13:37:26 CEST schrieb Linus Walleij: Heiko, can you please look at this patch. On Thu, Jun 8, 2017 at 9:30 AM, Jianhong Chen <che...@rock-chips.com> wrote: From: chenjh <che...@rock-chips.com> Full name

Re: [PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC

2017-06-14 Thread Jianhong Chen
在 2017/6/9 20:17, Heiko Stuebner 写道: Hi, Am Freitag, 9. Juni 2017, 13:37:26 CEST schrieb Linus Walleij: Heiko, can you please look at this patch. On Thu, Jun 8, 2017 at 9:30 AM, Jianhong Chen wrote: From: chenjh Full name please. git config --global user.name "John Doe"

[PATCH v6 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-06-08 Thread Jianhong Chen
From: chenjh This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: chenjh --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c |

[PATCH v6 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-06-08 Thread Jianhong Chen
From: chenjh This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: chenjh --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3

[PATCH v6 12/12] gpio: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-06-08 Thread Jianhong Chen
From: chenjh Add device tree bindings documentation for Rockchip's RK805 PMIC Signed-off-by: chenjh --- .../devicetree/bindings/gpio/gpio-rk805.txt| 37 ++ 1 file changed, 37 insertions(+) create mode 100644

[PATCH v6 12/12] gpio: dt-bindings: add bindings for Rockchip RK805 PMIC

2017-06-08 Thread Jianhong Chen
From: chenjh Add device tree bindings documentation for Rockchip's RK805 PMIC Signed-off-by: chenjh --- .../devicetree/bindings/gpio/gpio-rk805.txt| 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-rk805.txt

[PATCH v6 11/12] mfd: rk808: Add RK805 power key support

2017-06-08 Thread Jianhong Chen
From: chenjh Signed-off-by: chenjh --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index f7cdcf5..d1e8d35 100644 --- a/drivers/mfd/rk808.c +++

[PATCH v6 11/12] mfd: rk808: Add RK805 power key support

2017-06-08 Thread Jianhong Chen
From: chenjh Signed-off-by: chenjh --- drivers/mfd/rk808.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index f7cdcf5..d1e8d35 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -94,6 +94,19 @@ static bool

[PATCH v6 10/12] mfd: rk808: Add RK805 gpio support

2017-06-08 Thread Jianhong Chen
From: chenjh Signed-off-by: chenjh --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 7276555..f7cdcf5 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6

[PATCH v6 10/12] mfd: rk808: Add RK805 gpio support

2017-06-08 Thread Jianhong Chen
From: chenjh Signed-off-by: chenjh --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 7276555..f7cdcf5 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6 +97,7 @@ static bool rk808_is_volatile_reg(struct

[PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC

2017-06-08 Thread Jianhong Chen
From: chenjh RK805 has two configurable GPIOs that can be used for several purposes. These are output only. This driver is generic for other Rockchip PMICs to be added. Signed-off-by: chenjh --- drivers/gpio/Kconfig | 6 ++

[PATCH v6 08/12] gpio: Add GPIO driver for the RK805 PMIC

2017-06-08 Thread Jianhong Chen
From: chenjh RK805 has two configurable GPIOs that can be used for several purposes. These are output only. This driver is generic for other Rockchip PMICs to be added. Signed-off-by: chenjh --- drivers/gpio/Kconfig | 6 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-rk805.c

[PATCH v6 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-)

[PATCH v6 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git

[PATCH v6 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang --- drivers/rtc/Kconfig | 4 ++-- 1

[PATCH v6 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v6 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang --- drivers/clk/Kconfig | 4 ++-- 1

[PATCH v6 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH v6 03/12] regulator: rk808: Add regulator driver for RK805

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang

[PATCH v6 03/12] regulator: rk808: Add regulator driver for RK805

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang --- drivers/regulator/Kconfig | 4

[PATCH v6 02/12] mfd: rk808: add rk805 regs addr and ID

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index

[PATCH v6 04/12] mfd: rk808: Add RK805 support

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC

[PATCH v6 02/12] mfd: rk808: add rk805 regs addr and ID

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index 54feb14..d315659 100644 --- a/include/linux/mfd/rk808.h

[PATCH v6 04/12] mfd: rk808: Add RK805 support

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC and Clocking

[PATCH v6 01/12] mfd: rk808: fix up the chip id get failed

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-)

[PATCH v6 01/12] mfd: rk808: fix up the chip id get failed

2017-06-08 Thread Jianhong Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/rk808.c

[PATCH v6 00/12] rk808: Add RK805 support

2017-06-08 Thread Jianhong Chen
From: chenjh change in v6: patch1~7 no changed in V6. add patch 8~12 for gpio and powerkey func for rk805. change in v5: PATCH V5 1/7: NO change in V5 PATCH V5 2/7: fix the rk805 reg addr in numerical order PATCH V5 3/7: NO change in V5 PATCH V5 4/7: fix up the

[PATCH v6 00/12] rk808: Add RK805 support

2017-06-08 Thread Jianhong Chen
From: chenjh change in v6: patch1~7 no changed in V6. add patch 8~12 for gpio and powerkey func for rk805. change in v5: PATCH V5 1/7: NO change in V5 PATCH V5 2/7: fix the rk805 reg addr in numerical order PATCH V5 3/7: NO change in V5 PATCH V5 4/7: fix up the rk805_device_shutdown func PATCH

[PATCH] mfd: rk808: RK818 uses DEV_OFF to power off supplies

2016-10-17 Thread Jianhong Chen
DEV_OFF and DEV_OFF_RST functions for RK808 are designed error that only DEV_OFF_RST can power off supplies. RK818 has been fixed this issue, so that DEV_OFF is used to power off supplies. Signed-off-by: Jianhong Chen <che...@rock-chips.com> --- drivers/mfd/rk808.c

[PATCH] mfd: rk808: RK818 uses DEV_OFF to power off supplies

2016-10-17 Thread Jianhong Chen
DEV_OFF and DEV_OFF_RST functions for RK808 are designed error that only DEV_OFF_RST can power off supplies. RK818 has been fixed this issue, so that DEV_OFF is used to power off supplies. Signed-off-by: Jianhong Chen --- drivers/mfd/rk808.c | 23 ++- include/linux/mfd