Re: [PATCH] SB600 for the Nemo board has non-zero devices on non-root bus

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

 



Christian Zigotzky <chzigotzky@xxxxxxxxxxx> writes:

> Hi Bjorn,
>
> Sorry I'm bothering you again. Is this small out of tree init routine in 
> the Nemo patch? I haven't get an answer from Darren yet and I didn't 
> found the small out of tree init routine in the Nemo patch. Please find 
> attached the Nemo patch. Maybe you can find this small out of tree init 
> routine.
>
> What do you think of this following code?
>
> if (sb600_bus == -1)
> +       {
> +               busp = pci_find_bus(0, 0);
> +               pa_pxp_read_config(busp, PCI_DEVFN(17,0), 
> PCI_SECONDARY_BUS, 1, &val);
> +
> +               sb600_bus = val;
> +
> +               printk(KERN_CRIT "NEMO SB600 on bus %d.\n",sb600_bus);
> +       }

I suspect Darren was referring to all of sb600_set_flag().

What we'd really like is to be able to do something like:

void __init pas_pci_init(void)
{
	...

	if (of_find_compatible_node(NULL, NULL, "nemo-something"))
		pci_set_flag(PCI_SCAN_ALL_PCIE_DEVS).


But I don't know if there's anything in the NEMO device tree that we can
use to uniquely identify those machines? ie. the "nemo-something" string.

Can you attach the output of `lsprop /proc/device-tree` ?

cheers



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux