[PATCH 1/2] MIPS: generic: Add support for MIPSfpga

2017-03-31 Thread Zubair Lutfullah Kakakhel
Add support for the MIPSfpga platform to generic kernel. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- arch/mips/boot/dts/xilfpga/Makefile| 2 +- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 8 arch/mips/configs/generic/board-xilfpga.

[PATCH 1/2] MIPS: generic: Add support for MIPSfpga

2017-03-31 Thread Zubair Lutfullah Kakakhel
Add support for the MIPSfpga platform to generic kernel. Signed-off-by: Zubair Lutfullah Kakakhel --- arch/mips/boot/dts/xilfpga/Makefile| 2 +- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 8 arch/mips/configs/generic/board-xilfpga.config | 19

[PATCH 0/2] MIPS: Xilfpga: Switch to generic kernel

2017-03-31 Thread Zubair Lutfullah Kakakhel
Hi, Couple of patches that convert the MIPSfpga platform to using the generic kernels Based on v4.11-rc4. Regards, ZubairLK Zubair Lutfullah Kakakhel (2): MIPS: generic: Add support for MIPSfpga MIPS: Xilfpga: Switch to using generic defconfigs arch/mips/Kbuild.platforms

[PATCH 2/2] MIPS: Xilfpga: Switch to using generic defconfigs

2017-03-31 Thread Zubair Lutfullah Kakakhel
Use the generic platform code and remove arch/mips/xilfpga Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- arch/mips/Kbuild.platforms | 1 - arch/mips/Kconfig | 24 arch/mips/Makefile | 4 ++ arch/mips/c

[PATCH 0/2] MIPS: Xilfpga: Switch to generic kernel

2017-03-31 Thread Zubair Lutfullah Kakakhel
Hi, Couple of patches that convert the MIPSfpga platform to using the generic kernels Based on v4.11-rc4. Regards, ZubairLK Zubair Lutfullah Kakakhel (2): MIPS: generic: Add support for MIPSfpga MIPS: Xilfpga: Switch to using generic defconfigs arch/mips/Kbuild.platforms

[PATCH 2/2] MIPS: Xilfpga: Switch to using generic defconfigs

2017-03-31 Thread Zubair Lutfullah Kakakhel
Use the generic platform code and remove arch/mips/xilfpga Signed-off-by: Zubair Lutfullah Kakakhel --- arch/mips/Kbuild.platforms | 1 - arch/mips/Kconfig | 24 arch/mips/Makefile | 4 ++ arch/mips/configs/xilfpga_defconfig | 75

Re: [PATCH] MIPS: NI 169445 board support

2016-12-02 Thread Zubair Lutfullah Kakakhel
Hi, On 12/02/2016 03:42 PM, Nathan Sullivan wrote: Support the National Instruments 169445 board. Interesting patch. But do you happen to have a link to a description of the board? I couldn't find anything with a quick search. Perhaps the public name is something else? Thanks, ZubairLK

Re: [PATCH] MIPS: NI 169445 board support

2016-12-02 Thread Zubair Lutfullah Kakakhel
Hi, On 12/02/2016 03:42 PM, Nathan Sullivan wrote: Support the National Instruments 169445 board. Interesting patch. But do you happen to have a link to a description of the board? I couldn't find anything with a quick search. Perhaps the public name is something else? Thanks, ZubairLK

[PATCH 5/6] MIPS: xilfpga: Add DT node for AXI emaclite

2016-11-22 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has a Xilinx AXI emaclite block. Add the DT node to use it. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/mips/bo

[PATCH 1/6] MIPS: xilfpga: Use irqchip instead of the legacy way

2016-11-22 Thread Zubair Lutfullah Kakakhel
This prepares the code to use the Xilinx Interrupt Controller driver in drivers/irqchip/irq-xilinx-intc.c Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- arch/mips/xilfpga/intc.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arc

[PATCH 1/6] MIPS: xilfpga: Use irqchip instead of the legacy way

2016-11-22 Thread Zubair Lutfullah Kakakhel
This prepares the code to use the Xilinx Interrupt Controller driver in drivers/irqchip/irq-xilinx-intc.c Signed-off-by: Zubair Lutfullah Kakakhel --- arch/mips/xilfpga/intc.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/mips/xilfpga/intc.c b/arch/mips/xilfpga

[PATCH 5/6] MIPS: xilfpga: Add DT node for AXI emaclite

2016-11-22 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has a Xilinx AXI emaclite block. Add the DT node to use it. Signed-off-by: Zubair Lutfullah Kakakhel --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/mips/boot/dts/xilfpga/nexys4ddr.dts b

[PATCH 3/6] MIPS: xilfpga: Update DT node and specify uart irq

2016-11-22 Thread Zubair Lutfullah Kakakhel
Update the DT node with the UART irq Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/boot/dts/xilfpga/nexys4ddr.dts b/arch/mips/boot/dts/xilfpga/nexys4d

[PATCH 3/6] MIPS: xilfpga: Update DT node and specify uart irq

2016-11-22 Thread Zubair Lutfullah Kakakhel
Update the DT node with the UART irq Signed-off-by: Zubair Lutfullah Kakakhel --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/boot/dts/xilfpga/nexys4ddr.dts b/arch/mips/boot/dts/xilfpga/nexys4ddr.dts index 8db660b..d285c8d 100644

[PATCH 0/6] MIPS: xilfpga: Use irq-xilinx-intc

2016-11-22 Thread Zubair Lutfullah Kakakhel
Device Tree nodes for various peripherals that were blocked - Enable those drivers in the defconfig Based on v4.9-rc6 Regards, ZubairLK [1] https://lkml.org/lkml/2016/11/22/186 Zubair Lutfullah Kakakhel (6): MIPS: xilfpga: Use irqchip instead of the legacy way MIPS: xilfpga: Use Xilinx

[PATCH 6/6] MIPS: xilfpga: Update defconfig

2016-11-22 Thread Zubair Lutfullah Kakakhel
Update defconfig to enable emaclite, i2c and temp sensor on the xilfpga platform Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- arch/mips/configs/xilfpga_defconfig | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff

[PATCH 0/6] MIPS: xilfpga: Use irq-xilinx-intc

2016-11-22 Thread Zubair Lutfullah Kakakhel
Device Tree nodes for various peripherals that were blocked - Enable those drivers in the defconfig Based on v4.9-rc6 Regards, ZubairLK [1] https://lkml.org/lkml/2016/11/22/186 Zubair Lutfullah Kakakhel (6): MIPS: xilfpga: Use irqchip instead of the legacy way MIPS: xilfpga: Use Xilinx

[PATCH 6/6] MIPS: xilfpga: Update defconfig

2016-11-22 Thread Zubair Lutfullah Kakakhel
Update defconfig to enable emaclite, i2c and temp sensor on the xilfpga platform Signed-off-by: Zubair Lutfullah Kakakhel --- arch/mips/configs/xilfpga_defconfig | 37 - 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/arch/mips/configs

[PATCH 2/6] MIPS: xilfpga: Use Xilinx Interrupt Controller

2016-11-22 Thread Zubair Lutfullah Kakakhel
IRQs from peripherals such as i2c/uart/ethernet come via the AXI Interrupt controller. Select it in Kconfig for xilfpga and add the DT node Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- arch/mips/Kconfig| 1 + arch/mips/boot/dts/x

[PATCH 4/6] MIPS: xilfpga: Add DT node for AXI I2C

2016-11-22 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has an AXI I2C Bus master with a temperature sensor connected to it. Add the device tree node to use them. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 22 ++ 1 file chang

[PATCH 2/6] MIPS: xilfpga: Use Xilinx Interrupt Controller

2016-11-22 Thread Zubair Lutfullah Kakakhel
IRQs from peripherals such as i2c/uart/ethernet come via the AXI Interrupt controller. Select it in Kconfig for xilfpga and add the DT node Signed-off-by: Zubair Lutfullah Kakakhel --- arch/mips/Kconfig| 1 + arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 12

[PATCH 4/6] MIPS: xilfpga: Add DT node for AXI I2C

2016-11-22 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has an AXI I2C Bus master with a temperature sensor connected to it. Add the device tree node to use them. Signed-off-by: Zubair Lutfullah Kakakhel --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch

Re: [Patch v7 0/7] microblaze/PowerPC: Move irq-xilinx to irqchip

2016-11-22 Thread Zubair Lutfullah Kakakhel
Hi, On 11/22/2016 10:55 AM, Marc Zyngier wrote: On 14/11/16 12:13, Zubair Lutfullah Kakakhel wrote: Hi, This patch series moves the Xilinx interrupt controller driver out of arch/microblaze to drivers/irqchip and then cleans it up a bit. And then removes another implementation of the driver

Re: [Patch v7 0/7] microblaze/PowerPC: Move irq-xilinx to irqchip

2016-11-22 Thread Zubair Lutfullah Kakakhel
Hi, On 11/22/2016 10:55 AM, Marc Zyngier wrote: On 14/11/16 12:13, Zubair Lutfullah Kakakhel wrote: Hi, This patch series moves the Xilinx interrupt controller driver out of arch/microblaze to drivers/irqchip and then cleans it up a bit. And then removes another implementation of the driver

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-21 Thread Zubair Lutfullah Kakakhel
Hi, On 11/21/2016 02:17 PM, Marc Zyngier wrote: On 21/11/16 14:05, Zubair Lutfullah Kakakhel wrote: Hi, On 11/18/2016 01:29 PM, Thomas Gleixner wrote: On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: The powerpc dts file does not have the xlnx,kind-of-intr property. Instead

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-21 Thread Zubair Lutfullah Kakakhel
Hi, On 11/21/2016 02:17 PM, Marc Zyngier wrote: On 21/11/16 14:05, Zubair Lutfullah Kakakhel wrote: Hi, On 11/18/2016 01:29 PM, Thomas Gleixner wrote: On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: The powerpc dts file does not have the xlnx,kind-of-intr property. Instead

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-21 Thread Zubair Lutfullah Kakakhel
Hi, On 11/18/2016 01:29 PM, Thomas Gleixner wrote: On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: The powerpc dts file does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-21 Thread Zubair Lutfullah Kakakhel
Hi, On 11/18/2016 01:29 PM, Thomas Gleixner wrote: On Mon, 14 Nov 2016, Zubair Lutfullah Kakakhel wrote: The powerpc dts file does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming

Re: [Patch v7 3/7] irqchip: xilinx: restructure and use jump label api

2016-11-15 Thread Zubair Lutfullah Kakakhel
Hi, On 11/15/2016 12:49 PM, Michal Simek wrote: On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: Add a global structure to house various variables. And cleanup read/write handling by using jump label api. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.

Re: [Patch v7 3/7] irqchip: xilinx: restructure and use jump label api

2016-11-15 Thread Zubair Lutfullah Kakakhel
Hi, On 11/15/2016 12:49 PM, Michal Simek wrote: On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: Add a global structure to house various variables. And cleanup read/write handling by using jump label api. Signed-off-by: Zubair Lutfullah Kakakhel ... @@ -138,59 +136,75 @@ static

[Patch v7 2/7] irqchip: xilinx: clean up print messages

2016-11-14 Thread Zubair Lutfullah Kakakhel
Remove __func__ and prefix irq-xilinx in various debug prints Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V6 -> V7 New patch This diff was squashed into another patch. Split it up for cleanliness --- drivers/irqchip/irq-xilinx-intc.c | 18 +

[Patch v7 1/7] microblaze: irqchip: Move intc driver to irqchip

2016-11-14 Thread Zubair Lutfullah Kakakhel
The Xilinx AXI Interrupt Controller IP block is used by the MIPS based xilfpga platform and a few PowerPC based platforms. Move the interrupt controller code out of arch/microblaze so that it can be used by everyone Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com>

[Patch v7 2/7] irqchip: xilinx: clean up print messages

2016-11-14 Thread Zubair Lutfullah Kakakhel
Remove __func__ and prefix irq-xilinx in various debug prints Signed-off-by: Zubair Lutfullah Kakakhel --- V6 -> V7 New patch This diff was squashed into another patch. Split it up for cleanliness --- drivers/irqchip/irq-xilinx-intc.c | 18 +- 1 file changed, 9 insertions(+)

[Patch v7 1/7] microblaze: irqchip: Move intc driver to irqchip

2016-11-14 Thread Zubair Lutfullah Kakakhel
The Xilinx AXI Interrupt Controller IP block is used by the MIPS based xilfpga platform and a few PowerPC based platforms. Move the interrupt controller code out of arch/microblaze so that it can be used by everyone Signed-off-by: Zubair Lutfullah Kakakhel --- V6 -> V7 Rebase to v4.9-rc5

[Patch v7 3/7] irqchip: xilinx: restructure and use jump label api

2016-11-14 Thread Zubair Lutfullah Kakakhel
Add a global structure to house various variables. And cleanup read/write handling by using jump label api. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V6 -> V7 Restructure and use jump label api Better commit log V5 -> V6 Removed __func__ from p

[Patch v7 3/7] irqchip: xilinx: restructure and use jump label api

2016-11-14 Thread Zubair Lutfullah Kakakhel
Add a global structure to house various variables. And cleanup read/write handling by using jump label api. Signed-off-by: Zubair Lutfullah Kakakhel --- V6 -> V7 Restructure and use jump label api Better commit log V5 -> V6 Removed __func__ from printk Rebase to v4.9-rc3 V4 -> V

[Patch v7 5/7] irqchip: xilinx: Add support for parent intc

2016-11-14 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add support for the driver to chain the irq handler Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V6 -> V7 Rebase to v4.

[Patch v7 4/7] irqchip: xilinx: Rename get_irq to xintc_get_irq

2016-11-14 Thread Zubair Lutfullah Kakakhel
Now that the driver is generic and used by multiple archs, get_irq is too generic. Rename get_irq to xintc_get_irq to avoid any conflicts Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V6 -> V7 Rebase to v4.9-rc5 V5 -> V6 Removed __func__ in printk Rebase

[Patch v7 5/7] irqchip: xilinx: Add support for parent intc

2016-11-14 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add support for the driver to chain the irq handler Signed-off-by: Zubair Lutfullah Kakakhel --- V6 -> V7 Rebase to v4.9-rc5 V5 -> V6 Use chain

[Patch v7 4/7] irqchip: xilinx: Rename get_irq to xintc_get_irq

2016-11-14 Thread Zubair Lutfullah Kakakhel
Now that the driver is generic and used by multiple archs, get_irq is too generic. Rename get_irq to xintc_get_irq to avoid any conflicts Signed-off-by: Zubair Lutfullah Kakakhel --- V6 -> V7 Rebase to v4.9-rc5 V5 -> V6 Removed __func__ in printk Rebase to v4.9-rc3 V4 -> V5 Rebase

[Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-14 Thread Zubair Lutfullah Kakakhel
The powerpc dts file does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming kind-of-intr is 0x0 as a fall back. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.

[Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-14 Thread Zubair Lutfullah Kakakhel
The powerpc dts file does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming kind-of-intr is 0x0 as a fall back. Signed-off-by: Zubair Lutfullah Kakakhel --- V6 -> V7 Rebase to v

[Patch v7 7/7] powerpc/virtex: Use generic xilinx irqchip driver

2016-11-14 Thread Zubair Lutfullah Kakakhel
The Xilinx interrupt controller driver is now available in drivers/irqchip. Switch to using that driver. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> Acked-by: Michael Ellerman <m...@ellerman.id.au> (powerpc) --- V6 - V7 Rebase to v4.9-rc5 V5 ->

[Patch v7 0/7] microblaze/PowerPC: Move irq-xilinx to irqchip

2016-11-14 Thread Zubair Lutfullah Kakakhel
ps V2 -> V3 Cleanup the interrupt controller driver a bit based on feedback Rebase to v4.8-rc4 V1 -> V2 Resubmitting without truncating the diff output for file moves Removed accidental local mac address entry Individual logs have more detail Zubair Lutfullah Kakakhel (7): microblaze: irqchip

[Patch v7 7/7] powerpc/virtex: Use generic xilinx irqchip driver

2016-11-14 Thread Zubair Lutfullah Kakakhel
The Xilinx interrupt controller driver is now available in drivers/irqchip. Switch to using that driver. Signed-off-by: Zubair Lutfullah Kakakhel Acked-by: Michael Ellerman (powerpc) --- V6 - V7 Rebase to v4.9-rc5 V5 -> V6 Added Acked-by Micheal Ellerman V5 New patch Tested on virtex

[Patch v7 0/7] microblaze/PowerPC: Move irq-xilinx to irqchip

2016-11-14 Thread Zubair Lutfullah Kakakhel
ps V2 -> V3 Cleanup the interrupt controller driver a bit based on feedback Rebase to v4.8-rc4 V1 -> V2 Resubmitting without truncating the diff output for file moves Removed accidental local mac address entry Individual logs have more detail Zubair Lutfullah Kakakhel (7): microblaze: irqchip

Re: [Patch V6 2/6] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-11-07 Thread Zubair Lutfullah Kakakhel
Hi, On 11/01/2016 11:05 AM, Zubair Lutfullah Kakakhel wrote: Hi, Thanks for the review. On 10/31/2016 07:51 PM, Thomas Gleixner wrote: On Mon, 31 Oct 2016, Zubair Lutfullah Kakakhel wrote: The drivers read/write function handling is a bit quirky. Can you please explain in more detail

Re: [Patch V6 2/6] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-11-07 Thread Zubair Lutfullah Kakakhel
Hi, On 11/01/2016 11:05 AM, Zubair Lutfullah Kakakhel wrote: Hi, Thanks for the review. On 10/31/2016 07:51 PM, Thomas Gleixner wrote: On Mon, 31 Oct 2016, Zubair Lutfullah Kakakhel wrote: The drivers read/write function handling is a bit quirky. Can you please explain in more detail

Re: [Patch V6 2/6] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-11-01 Thread Zubair Lutfullah Kakakhel
Hi, Thanks for the review. On 10/31/2016 07:51 PM, Thomas Gleixner wrote: On Mon, 31 Oct 2016, Zubair Lutfullah Kakakhel wrote: The drivers read/write function handling is a bit quirky. Can you please explain in more detail what's quirky and why it should be done differently

Re: [Patch V6 2/6] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-11-01 Thread Zubair Lutfullah Kakakhel
Hi, Thanks for the review. On 10/31/2016 07:51 PM, Thomas Gleixner wrote: On Mon, 31 Oct 2016, Zubair Lutfullah Kakakhel wrote: The drivers read/write function handling is a bit quirky. Can you please explain in more detail what's quirky and why it should be done differently

[Patch V6 5/6] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-10-31 Thread Zubair Lutfullah Kakakhel
The powerpc dts file upstream does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming kind-of-intr is 0x0 as a fall back. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.ka

[Patch V6 5/6] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-10-31 Thread Zubair Lutfullah Kakakhel
The powerpc dts file upstream does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming kind-of-intr is 0x0 as a fall back. Signed-off-by: Zubair Lutfullah Kakakhel --- V5 -> V6 Reb

[Patch V6 2/6] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-10-31 Thread Zubair Lutfullah Kakakhel
The drivers read/write function handling is a bit quirky. And the irqmask is passed directly to the handler. Add a new irqchip struct to pass to the handler and cleanup read/write handling. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V5 -> V6 Removed __fu

[Patch V6 4/6] irqchip: xilinx: Add support for parent intc

2016-10-31 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add support for the driver to chain the irq handler Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V5 -> V6 Use ch

[Patch V6 3/6] irqchip: xilinx: Rename get_irq to xintc_get_irq

2016-10-31 Thread Zubair Lutfullah Kakakhel
Now that the driver is generic and used by multiple archs, get_irq is too generic. Rename get_irq to xintc_get_irq to avoid any conflicts Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V5 -> V6 Removed __func__ in printk Rebase to v4.9-rc3 V4 -> V5 Reb

[Patch V6 1/6] microblaze: irqchip: Move intc driver to irqchip

2016-10-31 Thread Zubair Lutfullah Kakakhel
The Xilinx AXI Interrupt Controller IP block is used by the MIPS based xilfpga platform and a few PowerPC based platforms. Move the interrupt controller code out of arch/microblaze so that it can be used by everyone Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com>

[Patch V6 2/6] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-10-31 Thread Zubair Lutfullah Kakakhel
The drivers read/write function handling is a bit quirky. And the irqmask is passed directly to the handler. Add a new irqchip struct to pass to the handler and cleanup read/write handling. Signed-off-by: Zubair Lutfullah Kakakhel --- V5 -> V6 Removed __func__ from printk Rebase to v4.9-

[Patch V6 4/6] irqchip: xilinx: Add support for parent intc

2016-10-31 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add support for the driver to chain the irq handler Signed-off-by: Zubair Lutfullah Kakakhel --- V5 -> V6 Use chained_irq_enter and chained_irq_exit Add er

[Patch V6 3/6] irqchip: xilinx: Rename get_irq to xintc_get_irq

2016-10-31 Thread Zubair Lutfullah Kakakhel
Now that the driver is generic and used by multiple archs, get_irq is too generic. Rename get_irq to xintc_get_irq to avoid any conflicts Signed-off-by: Zubair Lutfullah Kakakhel --- V5 -> V6 Removed __func__ in printk Rebase to v4.9-rc3 V4 -> V5 Rebased to v4.9-rc1 Use __func__ in pr_e

[Patch V6 1/6] microblaze: irqchip: Move intc driver to irqchip

2016-10-31 Thread Zubair Lutfullah Kakakhel
The Xilinx AXI Interrupt Controller IP block is used by the MIPS based xilfpga platform and a few PowerPC based platforms. Move the interrupt controller code out of arch/microblaze so that it can be used by everyone Signed-off-by: Zubair Lutfullah Kakakhel --- V5 -> V6 Rebase to v4.9-rc3

[Patch V6 6/6] powerpc/virtex: Use generic xilinx irqchip driver

2016-10-31 Thread Zubair Lutfullah Kakakhel
The Xilinx interrupt controller driver is now available in drivers/irqchip. Switch to using that driver. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> Acked-by: Michael Ellerman <m...@ellerman.id.au> (powerpc) --- V5 -> V6 Added Acked-by Micheal Ellerma

[Patch V6 6/6] powerpc/virtex: Use generic xilinx irqchip driver

2016-10-31 Thread Zubair Lutfullah Kakakhel
The Xilinx interrupt controller driver is now available in drivers/irqchip. Switch to using that driver. Signed-off-by: Zubair Lutfullah Kakakhel Acked-by: Michael Ellerman (powerpc) --- V5 -> V6 Added Acked-by Micheal Ellerman V5 New patch Tested on virtex440-ml507 using qemu --- a

[Patch V6 0/6] microblaze/PowerPC: Move irq-xilinx

2016-10-31 Thread Zubair Lutfullah Kakakhel
; V3 Cleanup the interrupt controller driver a bit based on feedback Rebase to v4.8-rc4 V1 -> V2 Resubmitting without truncating the diff output for file moves Removed accidental local mac address entry Individual logs have more detail Zubair Lutfullah Kakakhel (6): microblaze: irqchip: Move intc dr

[Patch V6 0/6] microblaze/PowerPC: Move irq-xilinx

2016-10-31 Thread Zubair Lutfullah Kakakhel
; V3 Cleanup the interrupt controller driver a bit based on feedback Rebase to v4.8-rc4 V1 -> V2 Resubmitting without truncating the diff output for file moves Removed accidental local mac address entry Individual logs have more detail Zubair Lutfullah Kakakhel (6): microblaze: irqchip: Move intc dr

Re: [Patch v5 04/12] irqchip: xilinx: Add support for parent intc

2016-10-25 Thread Zubair Lutfullah Kakakhel
Hi, Thanks for the review. Some comments in-line. On 10/21/2016 10:48 AM, Marc Zyngier wrote: On 17/10/16 17:52, Zubair Lutfullah Kakakhel wrote: The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add s

Re: [Patch v5 04/12] irqchip: xilinx: Add support for parent intc

2016-10-25 Thread Zubair Lutfullah Kakakhel
Hi, Thanks for the review. Some comments in-line. On 10/21/2016 10:48 AM, Marc Zyngier wrote: On 17/10/16 17:52, Zubair Lutfullah Kakakhel wrote: The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add s

[Patch v5 05/12] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-10-17 Thread Zubair Lutfullah Kakakhel
The powerpc dts file upstream does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming kind-of-intr is 0x0 as a fall back. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.ka

[Patch v5 00/12] microblaze/MIPS/PowerPC: Xilinx intc

2016-10-17 Thread Zubair Lutfullah Kakakhel
ontroller driver a bit based on feedback Rebase to v4.8-rc4 V1 -> V2 Resubmitting without truncating the diff output for file moves Removed accidental local mac address entry Individual logs have more detail Zubair Lutfullah Kakakhel (12): microblaze: irqchip: Move intc driver to irqchip irq

[Patch v5 04/12] irqchip: xilinx: Add support for parent intc

2016-10-17 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add support for the driver to chain the irq handler Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V4 -> V5 Rebased to v

[Patch v5 05/12] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-10-17 Thread Zubair Lutfullah Kakakhel
The powerpc dts file upstream does not have the xlnx,kind-of-intr property. Instead of erroring out, give a warning instead. And attempt to continue to probe the interrupt controller while assuming kind-of-intr is 0x0 as a fall back. Signed-off-by: Zubair Lutfullah Kakakhel --- V5 new patch

[Patch v5 00/12] microblaze/MIPS/PowerPC: Xilinx intc

2016-10-17 Thread Zubair Lutfullah Kakakhel
ontroller driver a bit based on feedback Rebase to v4.8-rc4 V1 -> V2 Resubmitting without truncating the diff output for file moves Removed accidental local mac address entry Individual logs have more detail Zubair Lutfullah Kakakhel (12): microblaze: irqchip: Move intc driver to irqchip irq

[Patch v5 04/12] irqchip: xilinx: Add support for parent intc

2016-10-17 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform has the following IRQ structure Peripherals --> xilinx_intcontroller -> mips_cpu_int controller Add support for the driver to chain the irq handler Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebased to v4.9-rc1 Missing curly braces V3 ->

[Patch v5 11/12] MIPS: xilfpga: Add DT node for AXI emaclite

2016-10-17 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has a Xilinx AXI emaclite block. Add the DT node to use it. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 Removed accidental local-mac-address entry --- arch/mips/boot/dts/xilfpg

[Patch v5 07/12] MIPS: xilfpga: Use irqchip instead of the legacy way

2016-10-17 Thread Zubair Lutfullah Kakakhel
This prepares the code use the Xilinx Interrupt Controller driver now available in drivers/irqchip Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V4 -> V5 Better commit message V3 -> V4 Corrected commit message. Was irq-xilinx.c. Now irq-axi-intc.c V2 -&g

[Patch v5 12/12] MIPS: xilfpga: Update defconfig

2016-10-17 Thread Zubair Lutfullah Kakakhel
Update defconfig to enable emaclite, i2c, temp sensor found on the xilfpga platform Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 No change --- arch/mips/configs/xilfpga

[Patch v5 11/12] MIPS: xilfpga: Add DT node for AXI emaclite

2016-10-17 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has a Xilinx AXI emaclite block. Add the DT node to use it. Signed-off-by: Zubair Lutfullah Kakakhel --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 Removed accidental local-mac-address entry --- arch/mips/boot/dts/xilfpga/nexys4ddr

[Patch v5 07/12] MIPS: xilfpga: Use irqchip instead of the legacy way

2016-10-17 Thread Zubair Lutfullah Kakakhel
This prepares the code use the Xilinx Interrupt Controller driver now available in drivers/irqchip Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Better commit message V3 -> V4 Corrected commit message. Was irq-xilinx.c. Now irq-axi-intc.c V2 -> V3 No change V1 ->

[Patch v5 12/12] MIPS: xilfpga: Update defconfig

2016-10-17 Thread Zubair Lutfullah Kakakhel
Update defconfig to enable emaclite, i2c, temp sensor found on the xilfpga platform Signed-off-by: Zubair Lutfullah Kakakhel --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 No change --- arch/mips/configs/xilfpga_defconfig | 37 - 1 file ch

[Patch v5 10/12] MIPS: xilfpga: Add DT node for AXI I2C

2016-10-17 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has an AXI I2C Bus master with a temperature sensor connected to it. Add the device tree node to use them. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V3 -> V4 changed compatible string from "adt7420" to "adi,adt7420&

[Patch v5 10/12] MIPS: xilfpga: Add DT node for AXI I2C

2016-10-17 Thread Zubair Lutfullah Kakakhel
The xilfpga platform has an AXI I2C Bus master with a temperature sensor connected to it. Add the device tree node to use them. Signed-off-by: Zubair Lutfullah Kakakhel --- V3 -> V4 changed compatible string from "adt7420" to "adi,adt7420" V2 -> V3 No change V1

[Patch v5 09/12] MIPS: xilfpga: Update DT node and specify uart irq

2016-10-17 Thread Zubair Lutfullah Kakakhel
Update the DT node with the UART irq Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 No change --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arc

[Patch v5 09/12] MIPS: xilfpga: Update DT node and specify uart irq

2016-10-17 Thread Zubair Lutfullah Kakakhel
Update the DT node with the UART irq Signed-off-by: Zubair Lutfullah Kakakhel --- V3 -> V4 No change V2 -> V3 No change V1 -> V2 No change --- arch/mips/boot/dts/xilfpga/nexys4ddr.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/boot/dts/xilfpga/nexys4ddr.dt

[Patch v5 01/12] microblaze: irqchip: Move intc driver to irqchip

2016-10-17 Thread Zubair Lutfullah Kakakhel
The Xilinx AXI Interrupt Controller IP block is used by the MIPS based xilfpga platform and a few PowerPC based platforms. Move the interrupt controller code out of arch/microblaze so that it can be used by everyone Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com>

[Patch v5 01/12] microblaze: irqchip: Move intc driver to irqchip

2016-10-17 Thread Zubair Lutfullah Kakakhel
The Xilinx AXI Interrupt Controller IP block is used by the MIPS based xilfpga platform and a few PowerPC based platforms. Move the interrupt controller code out of arch/microblaze so that it can be used by everyone Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebase to v4.9-

[Patch v5 08/12] MIPS: xilfpga: Use Xilinx Interrupt Controller

2016-10-17 Thread Zubair Lutfullah Kakakhel
IRQs from peripherals such as i2c/uart/ethernet come via the AXI Interrupt controller. Select it in Kconfig for xilfpga and add the DT node Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V4 -> V5 Rebase to v4.9-rc1 Renamed XILINX_AXI_INTC to XILINX_INTC

[Patch v5 06/12] powerpc/virtex: Use generic xilinx irqchip driver

2016-10-17 Thread Zubair Lutfullah Kakakhel
The Xilinx interrupt controller driver is now available in drivers/irqchip. Switch to using that driver. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V5 New patch Tested on virtex440-ml507 using qemu --- arch/powerpc/include/asm/xilinx_intc.h | 2 +- arch/p

[Patch v5 08/12] MIPS: xilfpga: Use Xilinx Interrupt Controller

2016-10-17 Thread Zubair Lutfullah Kakakhel
IRQs from peripherals such as i2c/uart/ethernet come via the AXI Interrupt controller. Select it in Kconfig for xilfpga and add the DT node Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebase to v4.9-rc1 Renamed XILINX_AXI_INTC to XILINX_INTC V3 -> V4 No change V2 -> V3

[Patch v5 06/12] powerpc/virtex: Use generic xilinx irqchip driver

2016-10-17 Thread Zubair Lutfullah Kakakhel
The Xilinx interrupt controller driver is now available in drivers/irqchip. Switch to using that driver. Signed-off-by: Zubair Lutfullah Kakakhel --- V5 New patch Tested on virtex440-ml507 using qemu --- arch/powerpc/include/asm/xilinx_intc.h | 2 +- arch/powerpc/platforms/40x/Kconfig

[Patch v5 03/12] irqchip: xilinx: Rename get_irq to xintc_get_irq

2016-10-17 Thread Zubair Lutfullah Kakakhel
Now that the driver is generic and used by multiple archs, get_irq is too generic. Rename get_irq to xintc_get_irq to avoid any conflicts Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V4 -> V5 Rebased to v4.9-rc1 Use __func__ in pr_err V3 -> V4 New patc

[Patch v5 03/12] irqchip: xilinx: Rename get_irq to xintc_get_irq

2016-10-17 Thread Zubair Lutfullah Kakakhel
Now that the driver is generic and used by multiple archs, get_irq is too generic. Rename get_irq to xintc_get_irq to avoid any conflicts Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebased to v4.9-rc1 Use __func__ in pr_err V3 -> V4 New patch. --- arch/microblaze/include/asm

[Patch v5 02/12] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-10-17 Thread Zubair Lutfullah Kakakhel
The drivers read/write function handling is a bit quirky. And the irqmask is passed directly to the handler. Add a new irqchip struct to pass to the handler and cleanup read/write handling. Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V4 -> V5 Rebased to

[Patch v5 02/12] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-10-17 Thread Zubair Lutfullah Kakakhel
The drivers read/write function handling is a bit quirky. And the irqmask is passed directly to the handler. Add a new irqchip struct to pass to the handler and cleanup read/write handling. Signed-off-by: Zubair Lutfullah Kakakhel --- V4 -> V5 Rebased to v4.9-rc1 Better error handling

Re: [Patch v6] net: ethernet: xilinx: Enable emaclite for MIPS

2016-09-08 Thread Zubair Lutfullah Kakakhel
Hi, On 09/08/2016 12:07 AM, David Miller wrote: From: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> Date: Mon, 5 Sep 2016 13:07:54 +0100 The MIPS based xilfpga platform uses this driver. Enable it for MIPS Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com

Re: [Patch v6] net: ethernet: xilinx: Enable emaclite for MIPS

2016-09-08 Thread Zubair Lutfullah Kakakhel
Hi, On 09/08/2016 12:07 AM, David Miller wrote: From: Zubair Lutfullah Kakakhel Date: Mon, 5 Sep 2016 13:07:54 +0100 The MIPS based xilfpga platform uses this driver. Enable it for MIPS Signed-off-by: Zubair Lutfullah Kakakhel --- V1 -> V6 are from a series that has gotten too big. S

[Patch v6] net: ethernet: xilinx: Enable emaclite for MIPS

2016-09-05 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform uses this driver. Enable it for MIPS Signed-off-by: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> --- V1 -> V6 are from a series that has gotten too big. So I have split this patch and am sending it separately. --- drivers/net/ethernet/xilinx/Kc

[Patch v6] net: ethernet: xilinx: Enable emaclite for MIPS

2016-09-05 Thread Zubair Lutfullah Kakakhel
The MIPS based xilfpga platform uses this driver. Enable it for MIPS Signed-off-by: Zubair Lutfullah Kakakhel --- V1 -> V6 are from a series that has gotten too big. So I have split this patch and am sending it separately. --- drivers/net/ethernet/xilinx/Kconfig | 4 ++-- 1 file changed

Re: [Patch v5 0/2] net: ethernet: xilinx: mac addr and mips

2016-09-05 Thread Zubair Lutfullah Kakakhel
On 09/04/2016 07:45 PM, David Miller wrote: From: Zubair Lutfullah Kakakhel <zubair.kakak...@imgtec.com> Date: Fri, 2 Sep 2016 12:39:24 +0100 A couple of simple patches to generate the random mac address if none is found. And enabling the driver for mips. Based on v4.8-rc4. These wer

Re: [Patch v5 0/2] net: ethernet: xilinx: mac addr and mips

2016-09-05 Thread Zubair Lutfullah Kakakhel
On 09/04/2016 07:45 PM, David Miller wrote: From: Zubair Lutfullah Kakakhel Date: Fri, 2 Sep 2016 12:39:24 +0100 A couple of simple patches to generate the random mac address if none is found. And enabling the driver for mips. Based on v4.8-rc4. These were part of a larger series

Re: [Patch v4 01/12] microblaze: irqchip: Move intc driver to irqchip

2016-09-02 Thread Zubair Lutfullah Kakakhel
Hi, Thanks for the valuable feedback. Comments inline On 09/02/2016 11:27 AM, Michal Simek wrote: On 2.9.2016 12:06, Zubair Lutfullah Kakakhel wrote: Hi, On 09/02/2016 07:25 AM, Michal Simek wrote: On 1.9.2016 18:50, Zubair Lutfullah Kakakhel wrote: The Xilinx AXI Interrupt Controller IP

Re: [Patch v4 01/12] microblaze: irqchip: Move intc driver to irqchip

2016-09-02 Thread Zubair Lutfullah Kakakhel
Hi, Thanks for the valuable feedback. Comments inline On 09/02/2016 11:27 AM, Michal Simek wrote: On 2.9.2016 12:06, Zubair Lutfullah Kakakhel wrote: Hi, On 09/02/2016 07:25 AM, Michal Simek wrote: On 1.9.2016 18:50, Zubair Lutfullah Kakakhel wrote: The Xilinx AXI Interrupt Controller IP

  1   2   3   4   5   6   7   8   9   10   >