Dmitry Tunin <[email protected]> 于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 [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
