[PATCH] regulator: core: Fix device link error when registering regulator

2018-10-11 Thread Jeffy Chen
The sysfs device link can only be created after regulator device registered. Fixes: c438b9d017362 ("regulator: core: Move registration of regulator device") Signed-off-by: Jeffy Chen --- drivers/regulator/core.c | 27 +-- 1 file changed, 21 insertions(+), 6

[PATCH] regulator: core: Fix device link error when registering regulator

2018-10-11 Thread Jeffy Chen
The sysfs device link can only be created after regulator device registered. Fixes: c438b9d017362 ("regulator: core: Move registration of regulator device") Signed-off-by: Jeffy Chen --- drivers/regulator/core.c | 27 +-- 1 file changed, 21 insertions(+), 6

[RESEND PATCH] pinctrl: rockchip: Disable interrupt when changing it's capability

2018-05-03 Thread Jeffy Chen
prior to enabling the interrupts on Port A in order to prevent spurious glitches on the interrupt lines to the interrupt controller." Reported-by: Brian Norris <briannor...@google.com> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/pinctrl/pinctrl-rockchip.c | 10

[RESEND PATCH] pinctrl: rockchip: Disable interrupt when changing it's capability

2018-05-03 Thread Jeffy Chen
prior to enabling the interrupts on Port A in order to prevent spurious glitches on the interrupt lines to the interrupt controller." Reported-by: Brian Norris Signed-off-by: Jeffy Chen --- drivers/pinctrl/pinctrl-rockchip.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drive

[PATCH] pinctrl: rockchip: Disable interrupt when changing it's capability

2018-05-03 Thread Jeffy Chen
prior to enabling the interrupts on Port A in order to prevent spurious glitches on the interrupt lines to the interrupt controller." Reported-by: Brian Norris <computersforpe...@gmail.com> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/pinctrl/pinctrl-rockchip.c |

[PATCH] pinctrl: rockchip: Disable interrupt when changing it's capability

2018-05-03 Thread Jeffy Chen
prior to enabling the interrupts on Port A in order to prevent spurious glitches on the interrupt lines to the interrupt controller." Reported-by: Brian Norris Signed-off-by: Jeffy Chen --- drivers/pinctrl/pinctrl-rockchip.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drive

[PATCH v8 00/14] iommu/rockchip: Use OF_IOMMU

2018-03-23 Thread Jeffy Chen
in rk_iommu_irq(). Remove rk_iommudata->domain. Changes in v2: Move irq request to probe(in patch[0]) Move bus_set_iommu() to rk_iommu_probe(). Jeffy Chen (10): iommu/rockchip: Prohibit unbind and remove iommu/rockchip: Fix error handling in probe iommu/rockchip: Request i

[PATCH v8 00/14] iommu/rockchip: Use OF_IOMMU

2018-03-23 Thread Jeffy Chen
in rk_iommu_irq(). Remove rk_iommudata->domain. Changes in v2: Move irq request to probe(in patch[0]) Move bus_set_iommu() to rk_iommu_probe(). Jeffy Chen (10): iommu/rockchip: Prohibit unbind and remove iommu/rockchip: Fix error handling in probe iommu/rockchip: Request i

[PATCH v8 03/14] iommu/rockchip: Request irqs in rk_iommu_probe()

2018-03-23 Thread Jeffy Chen
Move request_irq to the end of rk_iommu_probe(). Suggested-by: Robin Murphy <robin.mur...@arm.com> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Acked-by: Robin Murphy <robin.mur...@arm.com> --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5:

[PATCH v8 11/14] iommu/rockchip: Use OF_IOMMU to attach devices automatically

2018-03-23 Thread Jeffy Chen
Converts the rockchip-iommu driver to use the OF_IOMMU infrastructure, which allows attaching master devices to their IOMMUs automatically according to DT properties. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Robin Murphy <robin.mur...@arm.com> --- Changes

[PATCH v8 03/14] iommu/rockchip: Request irqs in rk_iommu_probe()

2018-03-23 Thread Jeffy Chen
Move request_irq to the end of rk_iommu_probe(). Suggested-by: Robin Murphy Signed-off-by: Jeffy Chen Acked-by: Robin Murphy --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: Loop platform_get_irq() as Robin suggested

[PATCH v8 11/14] iommu/rockchip: Use OF_IOMMU to attach devices automatically

2018-03-23 Thread Jeffy Chen
Converts the rockchip-iommu driver to use the OF_IOMMU infrastructure, which allows attaching master devices to their IOMMUs automatically according to DT properties. Signed-off-by: Jeffy Chen Reviewed-by: Robin Murphy --- Changes in v8: None Changes in v7: None Changes in v6: None Changes

[PATCH v8 13/14] iommu/rockchip: Add runtime PM support

2018-03-23 Thread Jeffy Chen
When the power domain is powered off, the IOMMU cannot be accessed and register programming must be deferred until the power domain becomes enabled. Add runtime PM support, and use runtime PM device link from IOMMU to master to enable and disable IOMMU. Signed-off-by: Jeffy Chen <jeffy.c...@r

[PATCH v8 12/14] iommu/rockchip: Fix error handling in init

2018-03-23 Thread Jeffy Chen
It's hard to undo bus_set_iommu() in the error path, so move it to the end of rk_iommu_probe(). Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Reviewed-by: Robin Murphy <robin.mur...@arm.com> --- Changes in v8: None Changes i

[PATCH v8 12/14] iommu/rockchip: Fix error handling in init

2018-03-23 Thread Jeffy Chen
It's hard to undo bus_set_iommu() in the error path, so move it to the end of rk_iommu_probe(). Signed-off-by: Jeffy Chen Reviewed-by: Tomasz Figa Reviewed-by: Robin Murphy --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3

[PATCH v8 13/14] iommu/rockchip: Add runtime PM support

2018-03-23 Thread Jeffy Chen
When the power domain is powered off, the IOMMU cannot be accessed and register programming must be deferred until the power domain becomes enabled. Add runtime PM support, and use runtime PM device link from IOMMU to master to enable and disable IOMMU. Signed-off-by: Jeffy Chen --- Changes

[PATCH v8 14/14] iommu/rockchip: Support sharing IOMMU between masters

2018-03-23 Thread Jeffy Chen
There would be some masters sharing the same IOMMU device. Put them in the same iommu group and share the same iommu domain. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Robin Murphy <robin.mur...@arm.com> --- Changes in v8: None Changes in v7: Use iommu_g

[PATCH v8 10/14] iommu/rockchip: Use IOMMU device for dma mapping operations

2018-03-23 Thread Jeffy Chen
Use the first registered IOMMU device for dma mapping operations, and drop the domain platform device. This is similar to exynos iommu driver. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Reviewed-by: Robin Murphy <robin

[PATCH v8 14/14] iommu/rockchip: Support sharing IOMMU between masters

2018-03-23 Thread Jeffy Chen
There would be some masters sharing the same IOMMU device. Put them in the same iommu group and share the same iommu domain. Signed-off-by: Jeffy Chen Reviewed-by: Robin Murphy --- Changes in v8: None Changes in v7: Use iommu_group_ref_get to avoid ref leak Changes in v6: None Changes in v5

[PATCH v8 10/14] iommu/rockchip: Use IOMMU device for dma mapping operations

2018-03-23 Thread Jeffy Chen
Use the first registered IOMMU device for dma mapping operations, and drop the domain platform device. This is similar to exynos iommu driver. Signed-off-by: Jeffy Chen Reviewed-by: Tomasz Figa Reviewed-by: Robin Murphy --- Changes in v8: None Changes in v7: None Changes in v6: None Changes

[PATCH v8 09/14] dt-bindings: iommu/rockchip: Add clock property

2018-03-23 Thread Jeffy Chen
Add clock property, since we are going to control clocks in rockchip iommu driver. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Robin Murphy <robin.mur...@arm.com> --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes

[PATCH v8 09/14] dt-bindings: iommu/rockchip: Add clock property

2018-03-23 Thread Jeffy Chen
Add clock property, since we are going to control clocks in rockchip iommu driver. Signed-off-by: Jeffy Chen Reviewed-by: Robin Murphy --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Documentation

[PATCH v8 06/14] iommu/rockchip: Fix TLB flush of secondary IOMMUs

2018-03-23 Thread Jeffy Chen
From: Tomasz Figa <tf...@chromium.org> Due to the bug in current code, only first IOMMU has the TLB lines flushed in rk_iommu_zap_lines. This patch fixes the inner loop to execute for all IOMMUs and properly flush the TLB. Signed-off-by: Tomasz Figa <tf...@chromium.org> Signed-off-by

[PATCH v8 07/14] ARM: dts: rockchip: add clocks in iommu nodes

2018-03-23 Thread Jeffy Chen
Add clocks in iommu nodes, since we are going to control clocks in rockchip iommu driver. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v8: None Changes in v7: None Changes in v6: Add clk names, and modify all iommu nodes in all existing rockchip dts Changes in v5:

[PATCH v8 06/14] iommu/rockchip: Fix TLB flush of secondary IOMMUs

2018-03-23 Thread Jeffy Chen
From: Tomasz Figa Due to the bug in current code, only first IOMMU has the TLB lines flushed in rk_iommu_zap_lines. This patch fixes the inner loop to execute for all IOMMUs and properly flush the TLB. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy Chen --- Changes in v8: None Changes in v7

[PATCH v8 07/14] ARM: dts: rockchip: add clocks in iommu nodes

2018-03-23 Thread Jeffy Chen
Add clocks in iommu nodes, since we are going to control clocks in rockchip iommu driver. Signed-off-by: Jeffy Chen --- Changes in v8: None Changes in v7: None Changes in v6: Add clk names, and modify all iommu nodes in all existing rockchip dts Changes in v5: Remove clk names. Changes in v4

[PATCH v8 08/14] iommu/rockchip: Control clocks needed to access the IOMMU

2018-03-23 Thread Jeffy Chen
omium.org> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Acked-by: Robin Murphy <robin.mur...@arm.com> --- Changes in v8: None Changes in v7: None Changes in v6: Fix dt-binding as Robin suggested. Use aclk and iface clk as Rob and Robin suggested, and split binding patch. Cha

[PATCH v8 05/14] iommu/rockchip: Use iopoll helpers to wait for hardware

2018-03-23 Thread Jeffy Chen
From: Tomasz Figa <tf...@chromium.org> This patch converts the rockchip-iommu driver to use the in-kernel iopoll helpers to wait for certain status bits to change in registers instead of an open-coded custom macro. Signed-off-by: Tomasz Figa <tf...@chromium.org> Signed-off-by

[PATCH v8 08/14] iommu/rockchip: Control clocks needed to access the IOMMU

2018-03-23 Thread Jeffy Chen
mapping API and doesn't engage the master driver at all. This patch fixes the problem by letting clocks needed for IOMMU operation to be listed in Device Tree and making the driver enable them for the time of accessing the hardware. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy Chen Acked

[PATCH v8 05/14] iommu/rockchip: Use iopoll helpers to wait for hardware

2018-03-23 Thread Jeffy Chen
From: Tomasz Figa This patch converts the rockchip-iommu driver to use the in-kernel iopoll helpers to wait for certain status bits to change in registers instead of an open-coded custom macro. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy Chen Reviewed-by: Robin Murphy --- Changes in v8

[PATCH v8 02/14] iommu/rockchip: Fix error handling in probe

2018-03-23 Thread Jeffy Chen
Add missing iommu_device_sysfs_remove in error path. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Acked-by: Robin Murphy <robin.mur...@arm.com> --- Changes in v8: Don't introduce the additional return. Changes in v7:

[PATCH v8 01/14] iommu/rockchip: Prohibit unbind and remove

2018-03-23 Thread Jeffy Chen
Removal of IOMMUs cannot be done reliably. This is similar to exynos iommu driver. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Tomasz Figa <tf...@chromium.org> Acked-by: Robin Murphy <robin.mur...@arm.com> --- Changes in v8: Rebase on newest for-next. C

[PATCH v8 02/14] iommu/rockchip: Fix error handling in probe

2018-03-23 Thread Jeffy Chen
Add missing iommu_device_sysfs_remove in error path. Signed-off-by: Jeffy Chen Reviewed-by: Tomasz Figa Acked-by: Robin Murphy --- Changes in v8: Don't introduce the additional return. Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes

[PATCH v8 01/14] iommu/rockchip: Prohibit unbind and remove

2018-03-23 Thread Jeffy Chen
Removal of IOMMUs cannot be done reliably. This is similar to exynos iommu driver. Signed-off-by: Jeffy Chen Reviewed-by: Tomasz Figa Acked-by: Robin Murphy --- Changes in v8: Rebase on newest for-next. Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: Rewrite

[PATCH v8 04/14] iommu/rockchip: Fix error handling in attach

2018-03-23 Thread Jeffy Chen
z Figa <tf...@chromium.org> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Reviewed-by: Robin Murphy <robin.mur...@arm.com> --- Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: Use out labels to save the duplication between the error and success pat

[PATCH v8 04/14] iommu/rockchip: Fix error handling in attach

2018-03-23 Thread Jeffy Chen
From: Tomasz Figa Currently if the driver encounters an error while attaching device, it will leave the IOMMU in an inconsistent state. Even though it shouldn't really happen in reality, let's just add proper error path to keep things consistent. Signed-off-by: Tomasz Figa Signed-off-by: Jeffy

[PATCH v6] clk: lpc32xx: Set name of regmap_config

2018-03-18 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Acked-by: Vladimir Zapolskiy <v...@mleia.com> --- Changes in v6: Modify name

[PATCH v6] clk: lpc32xx: Set name of regmap_config

2018-03-18 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen Acked-by: Vladimir Zapolskiy --- Changes in v6: Modify name as Vladimir suggested. drivers/clk/nxp/clk-lpc32xx.

[PATCH v5 4/4] ARM: rockchip: Set name of regmap_config

2018-03-12 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/mach-ro

[PATCH v5 4/4] ARM: rockchip: Set name of regmap_config

2018-03-12 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v5: None Changes in v4: None Changes in v3: None arch/arm/mach-rockchip/platsmp.c | 1 + 1 file

[PATCH v5 3/4] clk: lpc32xx: Set name of regmap_config

2018-03-12 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v5: None Changes in v4: None Changes in v3: None drivers/clk/nxp/c

[PATCH v5 3/4] clk: lpc32xx: Set name of regmap_config

2018-03-12 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v5: None Changes in v4: None Changes in v3: None drivers/clk/nxp/clk-lpc32xx.c | 1 + 1 file

[PATCH v5 1/4] mfd: syscon: Set name of regmap_config

2018-03-12 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v5: CC lee.jo...@linaro.org Changes in v4: None Changes in v3: Modif

[PATCH v5 0/4] Set name of regmap_config

2018-03-12 Thread Jeffy Chen
lee.jo...@linaro.org Changes in v4: Not to use rtc dev to init regmap, the gpbr is not directly related to the rtc. Changes in v3: Modify commit message. Jeffy Chen (4): mfd: syscon: Set name of regmap_config rtc: at91sam9: Set name of regmap_config clk: lpc32xx: Set name of regmap_config

[PATCH v5 1/4] mfd: syscon: Set name of regmap_config

2018-03-12 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v5: CC lee.jo...@linaro.org Changes in v4: None Changes in v3: Modify commit message. drivers/mf

[PATCH v5 0/4] Set name of regmap_config

2018-03-12 Thread Jeffy Chen
lee.jo...@linaro.org Changes in v4: Not to use rtc dev to init regmap, the gpbr is not directly related to the rtc. Changes in v3: Modify commit message. Jeffy Chen (4): mfd: syscon: Set name of regmap_config rtc: at91sam9: Set name of regmap_config clk: lpc32xx: Set name of regmap_config

[PATCH v5 2/4] rtc: at91sam9: Set name of regmap_config

2018-03-12 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v5: None Changes in v4: Not to use rtc dev to init regmap, the gpbr

[PATCH v5 2/4] rtc: at91sam9: Set name of regmap_config

2018-03-12 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v5: None Changes in v4: Not to use rtc dev to init regmap, the gpbr is not directly related to the rtc

[RESEND PATCH v4 3/4] clk: lpc32xx: Set name of regmap_config

2018-03-09 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: None Changes in v3: None drivers/clk/nxp/clk-lpc32xx.c | 1 + 1

[RESEND PATCH v4 3/4] clk: lpc32xx: Set name of regmap_config

2018-03-09 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None drivers/clk/nxp/clk-lpc32xx.c | 1 + 1 file changed, 1 insertion(+)

[RESEND PATCH v4 2/4] rtc: at91sam9: Set name of regmap_config

2018-03-09 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: Not to use rtc dev to init regmap, the gpbr is not directly re

[RESEND PATCH v4 2/4] rtc: at91sam9: Set name of regmap_config

2018-03-09 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: Not to use rtc dev to init regmap, the gpbr is not directly related to the rtc. Changes i

[RESEND PATCH v4 1/4] mfd: syscon: Set name of regmap_config

2018-03-09 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: None Changes in v3: Modify commit message. drivers/mfd/syscon

[RESEND PATCH v4 4/4] ARM: rockchip: Set name of regmap_config

2018-03-09 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: None Changes in v3: None arch/arm/mach-rockchip/platsmp.c | 1 +

[RESEND PATCH v4 4/4] ARM: rockchip: Set name of regmap_config

2018-03-09 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None arch/arm/mach-rockchip/platsmp.c | 1 + 1 file changed, 1 insertio

[RESEND PATCH v4 1/4] mfd: syscon: Set name of regmap_config

2018-03-09 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: Modify commit message. drivers/mfd/syscon.c | 1 + 1 file changed, 1

[RESEND PATCH v4 0/4] Set name of regmap_config

2018-03-09 Thread Jeffy Chen
use rtc dev to init regmap, the gpbr is not directly related to the rtc. Changes in v3: Modify commit message. Jeffy Chen (4): mfd: syscon: Set name of regmap_config rtc: at91sam9: Set name of regmap_config clk: lpc32xx: Set name of regmap_config ARM: rockchip: Set name of regmap_co

[RESEND PATCH v4 0/4] Set name of regmap_config

2018-03-09 Thread Jeffy Chen
use rtc dev to init regmap, the gpbr is not directly related to the rtc. Changes in v3: Modify commit message. Jeffy Chen (4): mfd: syscon: Set name of regmap_config rtc: at91sam9: Set name of regmap_config clk: lpc32xx: Set name of regmap_config ARM: rockchip: Set name of regmap_co

[PATCH v4 3/4] clk: lpc32xx: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: None Changes in v3: None drivers/clk/nxp/clk-lpc32xx.c | 1 + 1

[PATCH v4 3/4] clk: lpc32xx: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None drivers/clk/nxp/clk-lpc32xx.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v4 4/4] ARM: rockchip: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: None Changes in v3: None arch/arm/mach-rockchip/platsmp.c | 1 +

[PATCH v4 2/4] rtc: at91sam9: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: Not to use rtc dev to init regmap, the gpbr is not directly re

[PATCH v4 0/4] Set name of regmap_config

2018-03-08 Thread Jeffy Chen
use rtc dev to init regmap, the gpbr is not directly related to the rtc. Changes in v3: Modify commit message. Jeffy Chen (4): mfd: syscon: Set name of regmap_config rtc: at91sam9: Set name of regmap_config clk: lpc32xx: Set name of regmap_config ARM: rockchip: Set name of regmap_co

[PATCH v4 4/4] ARM: rockchip: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None arch/arm/mach-rockchip/platsmp.c | 1 + 1 file changed, 1 insertio

[PATCH v4 2/4] rtc: at91sam9: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: Not to use rtc dev to init regmap, the gpbr is not directly related to the rtc. Changes i

[PATCH v4 0/4] Set name of regmap_config

2018-03-08 Thread Jeffy Chen
use rtc dev to init regmap, the gpbr is not directly related to the rtc. Changes in v3: Modify commit message. Jeffy Chen (4): mfd: syscon: Set name of regmap_config rtc: at91sam9: Set name of regmap_config clk: lpc32xx: Set name of regmap_config ARM: rockchip: Set name of regmap_co

[PATCH v4 1/4] mfd: syscon: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: None Changes in v3: Modify commit message. drivers/mfd/syscon

[PATCH v4 1/4] mfd: syscon: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: Modify commit message. drivers/mfd/syscon.c | 1 + 1 file changed, 1

[PATCH v3 1/4] mfd: syscon: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: Modify commit message. drivers/mfd/syscon.c | 1 + 1 file chan

[PATCH v3 4/4] ARM: rockchip: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None arch/arm/mach-rockchip/platsmp.c | 1 + 1 file chan

[PATCH v3 1/4] mfd: syscon: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v3: Modify commit message. drivers/mfd/syscon.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 4/4] ARM: rockchip: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v3: None arch/arm/mach-rockchip/platsmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arc

[PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio()

2018-03-08 Thread Jeffy Chen
Otherwise it would use "dummy*" to create regmap debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None drivers/rtc/rtc-at91sam9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rt

[PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio()

2018-03-08 Thread Jeffy Chen
Otherwise it would use "dummy*" to create regmap debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v3: None drivers/rtc/rtc-at91sam9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c index 74

[PATCH v3 0/4] Set name of regmap_config

2018-03-08 Thread Jeffy Chen
odify commit message. Jeffy Chen (4): mfd: syscon: Set name of regmap_config rtc: at91sam9: Pass pdev->dev to regmap_init_mmio() clk: lpc32xx: Set name of regmap_config ARM: rockchip: Set name of regmap_config arch/arm/mach-rockchip/platsmp.c | 1 + drivers/clk/nxp/clk-lpc32xx.c| 1

[PATCH v3 0/4] Set name of regmap_config

2018-03-08 Thread Jeffy Chen
odify commit message. Jeffy Chen (4): mfd: syscon: Set name of regmap_config rtc: at91sam9: Pass pdev->dev to regmap_init_mmio() clk: lpc32xx: Set name of regmap_config ARM: rockchip: Set name of regmap_config arch/arm/mach-rockchip/platsmp.c | 1 + drivers/clk/nxp/clk-lpc32xx.c| 1

[PATCH v3 3/4] clk: lpc32xx: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v3: None drivers/clk/nxp/clk-lpc32xx.c | 1 + 1 file changed, 1 in

[PATCH v3 3/4] clk: lpc32xx: Set name of regmap_config

2018-03-08 Thread Jeffy Chen
We are now allowing to register debugfs without a valid device, and not having a valid name will end up using "dummy*" to create debugfs dir. Signed-off-by: Jeffy Chen --- Changes in v3: None drivers/clk/nxp/clk-lpc32xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/c

[PATCH v5 3/3] arm64: dts: rockchip: kevin: Avoid wakeup when inserting the pen

2018-03-07 Thread Jeffy Chen
Add wakeup event action for Pen Insert gpio key, to avoid wakeup when inserting the pen. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Tested-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes in v5: None Changes in v4: Include dt-binding gpio-keys.h C

[PATCH v5 3/3] arm64: dts: rockchip: kevin: Avoid wakeup when inserting the pen

2018-03-07 Thread Jeffy Chen
Add wakeup event action for Pen Insert gpio key, to avoid wakeup when inserting the pen. Signed-off-by: Jeffy Chen Tested-by: Enric Balletbo i Serra --- Changes in v5: None Changes in v4: Include dt-binding gpio-keys.h Changes in v3: None Changes in v2: Specify wakeup event action instead

[PATCH v5 1/3] Input: gpio-keys - add support for wakeup event action

2018-03-07 Thread Jeffy Chen
. Suggested-by: Brian Norris <briannor...@chromium.org> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v5: Remove unneeded irq_wake flag as Andy suggested. Changes in v4: Add dt-binding gpio-keys.h, stop saving irq trigger type, add enable/disable wakeup helpe

[PATCH v5 1/3] Input: gpio-keys - add support for wakeup event action

2018-03-07 Thread Jeffy Chen
. Suggested-by: Brian Norris Signed-off-by: Jeffy Chen --- Changes in v5: Remove unneeded irq_wake flag as Andy suggested. Changes in v4: Add dt-binding gpio-keys.h, stop saving irq trigger type, add enable/disable wakeup helpers as Dmitry suggested. Changes in v3: Adding more comments as Brian

[PATCH v5 0/3] gpio-keys: Add support for specifying wakeup event action

2018-03-07 Thread Jeffy Chen
action instead of irq trigger type as Brian suggested. Specify wakeup event action instead of irq trigger type as Brian suggested. Jeffy Chen (3): Input: gpio-keys - add support for wakeup event action Input: gpio-keys - allow setting wakeup event action in DT arm64: dts: rockchip: kevin

[PATCH v5 2/3] Input: gpio-keys - allow setting wakeup event action in DT

2018-03-07 Thread Jeffy Chen
Allow specifying event actions to trigger wakeup when using the gpio-keys input device as a wakeup source. Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in

[PATCH v5 0/3] gpio-keys: Add support for specifying wakeup event action

2018-03-07 Thread Jeffy Chen
action instead of irq trigger type as Brian suggested. Specify wakeup event action instead of irq trigger type as Brian suggested. Jeffy Chen (3): Input: gpio-keys - add support for wakeup event action Input: gpio-keys - allow setting wakeup event action in DT arm64: dts: rockchip: kevin

[PATCH v5 2/3] Input: gpio-keys - allow setting wakeup event action in DT

2018-03-07 Thread Jeffy Chen
Allow specifying event actions to trigger wakeup when using the gpio-keys input device as a wakeup source. Reviewed-by: Rob Herring Signed-off-by: Jeffy Chen --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: Specify wakeup event action instead of irq trigger type

[PATCH v2 3/3] regmap: debugfs: Free map->debugfs_name when debugfs_create_dir() failed

2018-03-06 Thread Jeffy Chen
Free map->debugfs_name when debugfs_create_dir() failed to avoid memory leak. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/base/regmap/regmap-debugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regm

[PATCH v2 2/3] regmap: debugfs: Fix kmemleak in regmap_debugfs_init

2018-03-06 Thread Jeffy Chen
x378 [<87e6c121>] syscon_node_to_regmap+0x80/0xb0 Fixes: a430ab205d29 ("regmap: debugfs: Disambiguate dummy debugfs file name") Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/base/regmap/regmap-debugfs.c | 10 +- 1 file changed, 5

[PATCH v2 3/3] regmap: debugfs: Free map->debugfs_name when debugfs_create_dir() failed

2018-03-06 Thread Jeffy Chen
Free map->debugfs_name when debugfs_create_dir() failed to avoid memory leak. Signed-off-by: Jeffy Chen --- drivers/base/regmap/regmap-debugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/base/regmap/regmap-debugfs.c b/drivers/base/regmap/regmap-debugfs.c in

[PATCH v2 2/3] regmap: debugfs: Fix kmemleak in regmap_debugfs_init

2018-03-06 Thread Jeffy Chen
x378 [<87e6c121>] syscon_node_to_regmap+0x80/0xb0 Fixes: a430ab205d29 ("regmap: debugfs: Disambiguate dummy debugfs file name") Signed-off-by: Jeffy Chen --- drivers/base/regmap/regmap-debugfs.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) di

[PATCH v2 1/3] mfd: syscon: Set name of regmap_config

2018-03-06 Thread Jeffy Chen
We are now allowing to register debugfs for syscon regmap, and not having a valid name will end up using "dummy" to create debugfs dir. Fixes: 9b947a13e7f6 ("regmap: use debugfs even when no device") Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- drivers/

[PATCH v2 1/3] mfd: syscon: Set name of regmap_config

2018-03-06 Thread Jeffy Chen
We are now allowing to register debugfs for syscon regmap, and not having a valid name will end up using "dummy" to create debugfs dir. Fixes: 9b947a13e7f6 ("regmap: use debugfs even when no device") Signed-off-by: Jeffy Chen --- drivers/mfd/syscon.c | 1 + 1 file changed,

[PATCH v4 3/3] arm64: dts: rockchip: kevin: Avoid wakeup when inserting the pen

2018-03-05 Thread Jeffy Chen
Add wakeup event action for Pen Insert gpio key, to avoid wakeup when inserting the pen. Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> Tested-by: Enric Balletbo i Serra <enric.balle...@collabora.com> --- Changes in v4: Include dt-binding gpio-keys.h Changes in v3: None C

[PATCH v4 2/3] Input: gpio-keys - allow setting wakeup event action in DT

2018-03-05 Thread Jeffy Chen
Allow specifying event actions to trigger wakeup when using the gpio-keys input device as a wakeup source. Reviewed-by: Rob Herring <r...@kernel.org> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: None Changes in v3: None Changes in v2: Specify wakeup

[PATCH v4 2/3] Input: gpio-keys - allow setting wakeup event action in DT

2018-03-05 Thread Jeffy Chen
Allow specifying event actions to trigger wakeup when using the gpio-keys input device as a wakeup source. Reviewed-by: Rob Herring Signed-off-by: Jeffy Chen --- Changes in v4: None Changes in v3: None Changes in v2: Specify wakeup event action instead of irq trigger type as Brian suggested

[PATCH v4 3/3] arm64: dts: rockchip: kevin: Avoid wakeup when inserting the pen

2018-03-05 Thread Jeffy Chen
Add wakeup event action for Pen Insert gpio key, to avoid wakeup when inserting the pen. Signed-off-by: Jeffy Chen Tested-by: Enric Balletbo i Serra --- Changes in v4: Include dt-binding gpio-keys.h Changes in v3: None Changes in v2: Specify wakeup event action instead of irq trigger type

[PATCH v4 1/3] Input: gpio-keys - add support for wakeup event action

2018-03-05 Thread Jeffy Chen
. Suggested-by: Brian Norris <briannor...@chromium.org> Signed-off-by: Jeffy Chen <jeffy.c...@rock-chips.com> --- Changes in v4: Add dt-binding gpio-keys.h, stop saving irq trigger type, add enable/disable wakeup helpers as Dmitry suggested. Changes in v3: Adding more comments as Bri

[PATCH v4 1/3] Input: gpio-keys - add support for wakeup event action

2018-03-05 Thread Jeffy Chen
. Suggested-by: Brian Norris Signed-off-by: Jeffy Chen --- Changes in v4: Add dt-binding gpio-keys.h, stop saving irq trigger type, add enable/disable wakeup helpers as Dmitry suggested. Changes in v3: Adding more comments as Brian suggested. Changes in v2: Specify wakeup event action instead

[PATCH v4 0/3] gpio-keys: Add support for specifying wakeup event action

2018-03-05 Thread Jeffy Chen
wakeup event action instead of irq trigger type as Brian suggested. Jeffy Chen (3): Input: gpio-keys - add support for wakeup event action Input: gpio-keys - allow setting wakeup event action in DT arm64: dts: rockchip: kevin: Avoid wakeup when inserting the pen .../devicetree/bindings/input

[PATCH v4 0/3] gpio-keys: Add support for specifying wakeup event action

2018-03-05 Thread Jeffy Chen
wakeup event action instead of irq trigger type as Brian suggested. Jeffy Chen (3): Input: gpio-keys - add support for wakeup event action Input: gpio-keys - allow setting wakeup event action in DT arm64: dts: rockchip: kevin: Avoid wakeup when inserting the pen .../devicetree/bindings/input

  1   2   3   4   5   6   7   8   9   10   >