028-bcma-fix-regression-in-interrupt-assignment-on-mips.patch 1001 B

1234567891011121314151617181920212223242526272829
  1. --- a/drivers/bcma/driver_mips.c
  2. +++ b/drivers/bcma/driver_mips.c
  3. @@ -131,7 +131,7 @@ static void bcma_core_mips_set_irq(struc
  4. /* backplane irq line is in use, find out who uses
  5. * it and set user to irq 0
  6. */
  7. - list_for_each_entry_reverse(core, &bus->cores, list) {
  8. + list_for_each_entry(core, &bus->cores, list) {
  9. if ((1 << bcma_core_mips_irqflag(core)) ==
  10. oldirqflag) {
  11. bcma_core_mips_set_irq(core, 0);
  12. @@ -161,7 +161,7 @@ static void bcma_core_mips_dump_irq(stru
  13. {
  14. struct bcma_device *core;
  15. - list_for_each_entry_reverse(core, &bus->cores, list) {
  16. + list_for_each_entry(core, &bus->cores, list) {
  17. bcma_core_mips_print_irq(core, bcma_core_mips_irq(core));
  18. }
  19. }
  20. @@ -215,7 +215,7 @@ void bcma_core_mips_init(struct bcma_drv
  21. mcore->assigned_irqs = 1;
  22. /* Assign IRQs to all cores on the bus */
  23. - list_for_each_entry_reverse(core, &bus->cores, list) {
  24. + list_for_each_entry(core, &bus->cores, list) {
  25. int mips_irq;
  26. if (core->irq)
  27. continue;