[RFC v3 03/13] bcma: add functions to scan cores needed on SoCs

Rafał Miłecki zajec5 at gmail.com
Thu Jun 30 02:42:56 EDT 2011


2011/6/30 Hauke Mehrtens <hauke at hauke-m.de>:
> +               core->core_index = core_num++;
> +               bus->nr_cores++;
> +
>                pr_info("Core %d found: %s "
>                        "(manuf 0x%03X, id 0x%03X, rev 0x%02X, class 0x%X)\n",
> -                       bus->nr_cores, bcma_device_name(&core->id),
> +                       core->core_index, bcma_device_name(&core->id),
>                        core->id.manuf, core->id.id, core->id.rev,
>                        core->id.class);
>
> -               core->core_index = bus->nr_cores++;
>                list_add(&core->list, &bus->cores);

Didn't you just change core indexes (0, 1, ...) to numbers (1, 2,
...)? It would break enabling IRQs on PCI.

Didn't test it however yet, I'll have access to my machines tomorrow.

-- 
Rafał


More information about the b43-dev mailing list