[PATCH] gpio: mpc8xxx: change the gpio interrupt flags.

2020-06-11 Thread Hui Song
From: Song Hui Delete the interrupt IRQF_NO_THREAD flags in order to gpio interrupts can be threaded to allow high-priority processes to preempt. Signed-off-by: Song Hui --- drivers/gpio/gpio-mpc8xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mpc8xx

[PATCH] gpio: mpc8xxx: change the gpio interrupt flags.

2020-06-09 Thread Hui Song
From: Song Hui delete the interrupt IRQF_NO_THREAD flags. Signed-off-by: Song Hui --- drivers/gpio/gpio-mpc8xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index 604dfec..1e86652 100644 --- a/drivers/gpio/gpio-

[PATCH v1 2/3] armv8: gpio: add gpio feature

2020-05-09 Thread Hui Song
From: "hui.song" add one struct mpc8xxx_gpio_plat to enable gpio feature. Signed-off-by: hui.song --- .../include/asm/arch-fsl-layerscape/gpio.h| 22 +++ 1 file changed, 22 insertions(+) create mode 100644 arch/arm/include/asm/arch-fsl-layerscape/gpio.h diff --git a/arch/

[PATCH v1 1/3] gpio: mpc8xxx: support fsl-layerscape platform.

2020-05-09 Thread Hui Song
From: "hui.song" Make the MPC8XXX gpio driver to support the fsl-layerscape. Signed-off-by: hui.song --- drivers/gpio/mpc8xxx_gpio.c | 59 + 1 file changed, 59 insertions(+) diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index 1dfd22

[PATCH v1 3/3] dm: armv8: gpio: include for fsl-layerscape

2020-05-09 Thread Hui Song
From: "hui.song" Enable the gpio feature on fsl-layerscape platform. Signed-off-by: hui.song --- arch/arm/include/asm/gpio.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h index 333e407b66..7715a01706 100644

[PATCH v1 1/3] gpio: mpc8xxx: support fsl-layerscape platform.

2020-05-09 Thread Hui Song
From: "hui.song" Make the MPC8XXX gpio driver to support the fsl-layerscape. Signed-off-by: hui.song --- drivers/gpio/mpc8xxx_gpio.c | 59 + 1 file changed, 59 insertions(+) diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index 1dfd22

[PATCH v1 2/3] armv8: gpio: add gpio feature

2020-05-09 Thread Hui Song
From: "hui.song" add one struct mpc8xxx_gpio_plat to enable gpio feature. Signed-off-by: hui.song --- .../include/asm/arch-fsl-layerscape/gpio.h| 22 +++ 1 file changed, 22 insertions(+) create mode 100644 arch/arm/include/asm/arch-fsl-layerscape/gpio.h diff --git a/arch/

[PATCH v1 3/3] dm: armv8: gpio: include for fsl-layerscape

2020-05-09 Thread Hui Song
From: "hui.song" Enable the gpio feature on fsl-layerscape platform. Signed-off-by: hui.song --- arch/arm/include/asm/gpio.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h index 333e407b66..7715a01706 100644

[PATCH v8] gpio/mpc8xxx: change irq handler from chained to normal

2019-10-10 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. While this will work, it will mess up userspace accounting of the number of interrupts per second in tools such as vmstat. The reason is that for every GPIO interrupt, /proc/interrupt

[PATCH v7] gpio/mpc8xxx: change irq handler from chained to normal

2019-10-09 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. While this will work, it will mess up userspace accounting of the number of interrupts per second in tools such as vmstat. The reason is that for every GPIO interrupt, /proc/interrupt

[PATCH v6] gpio/mpc8xxx: change irq handler from chained to normal

2019-10-09 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. While this will work, it will mess up userspace accounting of the number of interrupts per second in tools such as vmstat. The reason is that for every GPIO interrupt, /proc/interrupt

[PATCH v6] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-26 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. While this will work, it will mess up userspace accounting of the number of interrupts per second in tools such as vmstat. The reason is that for every GPIO interrupt, /proc/interrupt

[PATCH v5] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-15 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. Signed-off-by: Laurentiu Tudor Signed-off-by: Alex Marginean Signed-off-by: Song Hui --- Changes in v5: - add traverse every bit function. Changes in v4: - convert '

[PATCH] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-11 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. Signed-off-by: Laurentiu Tudor Signed-off-by: Alex Marginean Signed-off-by: Song Hui --- Changes in v4: - convert 'pr_err' to 'dev_err'. Changes in v3: - update the

[PATCH] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-11 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. Signed-off-by: Laurentiu Tudor Signed-off-by: Alex Marginean Signed-off-by: Song Hui --- Changes in v4: - convert 'pr_err' to 'dev_err'. Changes in v3: - update the

[PATCH v3] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-08 Thread Hui Song
From: Song Hui More than one gpio controllers can share one interrupt, change the driver to request shared irq. Signed-off-by: Laurentiu Tudor Signed-off-by: Alex Marginean Signed-off-by: Song Hui --- Changes in v3: - update the patch description. Changes in v2: - delete the c

[PATCH] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-06 Thread Hui Song
From: Song Hui more one gpio controller use share one interrupt, make request interrupt to be shared. Signed-off-by: Laurentiu Tudor Signed-off-by: Alex Marginean Signed-off-by: Song Hui --- drivers/gpio/gpio-mpc8xxx.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(

[PATCH] gpio/mpc8xxx: change irq handler from chained to normal

2019-09-06 Thread Hui Song
From: Song Hui more one gpio controller use share one interrupt, make request interrupt to be shared. Signed-off-by: Laurentiu Tudor Signed-off-by: Alex Marginean Signed-off-by: Song Hui --- drivers/gpio/gpio-mpc8xxx.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions

[PATCH v4] arm64: dts: ls1088a: fix gpio node

2019-08-19 Thread Hui Song
From: Song Hui add ls1088a gpio specify compatible. Signed-off-by: Song Hui --- Changes in v4: - update the patch description. Changes in v3: - delete the attribute of little-endian. Changes in v2: - update the subject. diff --git a/arch/arm64/boot/dts/freescale/fsl-l

[PATCH v3] arm64: dts: ls1088a: fix gpio node

2019-08-15 Thread Hui Song
From: Song Hui Update the nodes to include little-endian property to be consistent with the hardware and add ls1088a gpio specify compatible. Signed-off-by: Song Hui --- Changes in v3: - delete the attribute of little-endian. Changes in v2: - update the subject. arch/a

[PATCH v2] arm64: dts: ls1088a: fix gpio node

2019-08-12 Thread Hui Song
From: Song Hui Update the nodes to include little-endian property to be consistent with the hardware and add ls1088a gpio specify compatible. Signed-off-by: Song Hui --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --gi

[PATCH v1 2/3] arm64: dts: fix gpio node

2019-08-08 Thread Hui Song
From: Song Hui Update the nodes to include little-endian property to be consistent with the hardware and add ls1088a gpio specify compatible. Signed-off-by: Song Hui --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --gi

[PATCH v1 3/3] gpio: mpc8xxx: add ls1088a platform special function

2019-08-08 Thread Hui Song
From: Song Hui ls1028a and ls1088a platform share common special function. The gpio hardware what they use is the same version. Signed-off-by: Song Hui --- drivers/gpio/gpio-mpc8xxx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c

[PATCH v1 1/3] gpio: mpc8xxx: add ls1088a platform gpio node DT binding description

2019-08-08 Thread Hui Song
From: Song Hui ls1088a and ls1028a platform share common gpio node. Signed-off-by: Song Hui --- Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt b/Documenta

[PATCH v3] gpio: mpc8xxx: Add new platforms GPIO DT node description

2019-08-06 Thread Hui Song
From: Song Hui Update the NXP GPIO node dt-binding file for QorIQ and Layerscape platforms, and add one more example with ls1028a GPIO node. Signed-off-by: Song Hui --- Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-

[PATCH v2] gpio: mpc8xxx: Add new platforms GPIO DT node description

2019-08-05 Thread Hui Song
From: Song Hui Update the NXP GPIO node dt-binding file for QorIQ and Layerscape platforms, and add one more example with ls1028a GPIO node. Signed-off-by: Song Hui --- Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt | 14 ++ 1 file changed, 14 insertions(+) diff --git a/D

[PATCH v1] gpio: mpc8xxx: Add new platforms GPIO DT node description

2019-08-05 Thread Hui Song
From: Song Hui Update the NXP GPIO node dt-binding file for QorIQ and Layerscape platforms, and add one more example with ls1028a GPIO node. Signed-off-by: Song Hui --- Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/D

[PATCH v2] arm64: dts: ls1028a: fix gpio nodes

2019-08-05 Thread Hui Song
From: Song Hui Update the nodes to include little-endian property to be consistent with the hardware. Signed-off-by: Song Hui --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028

[PATCH v1] gpio: mpc8xxx: Add new platforms GPIO DT node description

2019-08-05 Thread Hui Song
From: Song Hui Update the NXP GPIO node dt-binding file for QorIQ and Layerscape platforms, and add one more example with ls1028a GPIO node. Signed-off-by: Song Hui --- Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/D

[PATCH] arm64: dts: ls1028a: fix gpio nodes

2019-08-05 Thread Hui Song
From: Song Hui Update the nodes to include little-endian property to be consistent with the hardware. Signed-off-by: Song Hui --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028

[PATCH 2/2] gpio: mpc8xxx: Add ls1028a device specify function.

2019-07-18 Thread Hui Song
From: Song Hui There is a device specify register(named GPIO_IBE) on ls1028a need to enable in initial stage. Signed-off-by: Song Hui --- drivers/gpio/gpio-mpc8xxx.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/

[PATCH 1/2] arm64: dts: ls1028a: Fix GPIO work fail.

2019-07-18 Thread Hui Song
From: Song Hui Add ls1028a device specify compatible. Make gpio as little-endian deal. Signed-off-by: Song Hui --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/