[OpenWrt-Devel] [PATCH] ath79: ar71xx create a separate driver for ar71xx pci interrupt controller.

Chuanhong Guo gch981213 at gmail.com
Wed Aug 22 03:10:58 EDT 2018


Dmitry Tunin <hanipouspilot at gmail.com> 于2018年8月22日周三 下午1:08写道:
>
> > > They are similar. I used that code as an example, but the
> > > irq-ath79-pci has your mask/unmask for pci with reading the registers.
> > > It is possible to make one driver for both, but is it really needed?
> > It helps reducing code duplication.
>
> If we completely drop that PCI_CORE IRQ that we are not using anyway,
> I see no reason why we can't
> define 2 subnodes or the reset controller with the same irq-ath79-misc driver.
I'm actually saying about directly using irq-ath79-misc for PCI
interrupt, and this means define two nodes using different reg but
make the compatible string the same(qca,ar7100-misc) :)
And this doesn't mean that we can't use PCI_CORE IRQ if we need it.
Simply use hwirq 0-2 for devices and hwirq 4 for PCI_CORE.
> We'll need only to set PCI IRQs to 0-2 instead of 1-3. That's all.
>
> After some other feedback is received, I can do the change.

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list