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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/6/30 Hauke Mehrtens <hauke@xxxxxxxxxx>:
> +               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ł



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux