arm NO_IRQ = -1 - zynq axi_ethernet driver
monstr at monstr.eu
Thu Jan 3 08:47:08 EST 2013
Hi Grand, Russell, Arnd, Olof and Rob,
I am getting one problem with axi_ethernet driver because I want to remove
NO_IRQ from axi_ethernet driver because NO_IRQ was setup to 0 and
removed from microblaze long time ago.
Some patches from reference.
"microblaze: Change NO_IRQ to 0"
"microblaze: Remove NO_IRQ from architecture"
but we can also use this driver on arm Zynq platform.
It is easy to add
#define NO_IRQ 0
to the driver to cover Microblaze case but it will be just workaround.
>From patches description NO_IRQ shouldn't be used by any driver
+ from Grant description
"As has been discussed many times, Using NO_IRQ set to anything other
than 0 is bug waiting to happen since many drivers follow the pattern
"if (!irq)" for testing whether or not an irq has been set."
Was there any attempt to remove NO_IRQ from ARM?
Any problem to do it?
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian
More information about the linux-arm-kernel