Details
Tested on MT7688 LinkIt.
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/mips/mips/mips_pic.c | ||
---|---|---|
83 ↗ | (On Diff #14895) | Come to think of it, what is the purpose of rman here? It serves to useful purpose but to provide a fake struct resource for cpu_establish_hard|soft_intr. I would just kill it off for now - it does not look like INTRNG plugs into resource allocation properly anyway. |
sys/mips/mips/mips_pic.c | ||
---|---|---|
83 ↗ | (On Diff #14895) | Another solution is to change interrupt number argument to struct resource pointer in cpu_establish_hardintr() and cpu_establish_softintr(). And whoever wants to use these functions should get a struct resource by call to bus_allocate_resource(). BTW, INTRNG doesn't plug into resource allocation properly only for interrupt numbers get from ofw_bus_map_intr(). And it should be fixed soon. |
sys/mips/mips/mips_pic.c | ||
---|---|---|
83 ↗ | (On Diff #14895) | That's true, but I couldn't think of a cleaner way to satisfy intr_setup_irq()'s requirement for a struct resource * parameter. And although I could go and change all users of cpu_establish_*_intr, this seems even more troublesome at the moment. |
sys/mips/mips/mips_pic.c | ||
---|---|---|
83 ↗ | (On Diff #14895) | I'm okay with it, even if it's quite weird. It was just a note from me. However, INTRNG is meant to be used by bus drivers in their bus methods where struct resource is always present. So if it's used another way, curious things come. |
Thanks that you are doing this. I thought that I would do this later, as there was no immediate need to do it in D5730. Thus, thanks again and sorry for trouble.
No problem. I am relying on INTRNG for the Ralink/Mediatek support that I'm starting to push into -head, so I needed to do it anyway :-) I hope I've done it right.