[ar71xx] PCI changes from ar71xx in openwrt

Adrian Chadd adrian.chadd at gmail.com
Fri Apr 13 05:38:12 UTC 2012


Hi,

I've noticed that the ar71xx PCI code in openwrt trunk is .. different.

Specifically, the "local" config stuff isn't handled in bus/slot/func
'0/0/0' - it's a different function.

This patch brings it in sync:

* break the local config writes into a new function, matching what Linux does;
* use that when doing the "PCI work around" during PCI bus attach;
* change that to a 4 byte write, rather than a 2 byte write, which
again matches what Linux does;
* change the pci read/write config to not treat 0/0/0 special and use
"local" read/write.

Any issues?



Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ar71xx_pci_lconf_change.diff
Type: application/octet-stream
Size: 2837 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-mips/attachments/20120413/d8cdafe5/ar71xx_pci_lconf_change.obj


More information about the freebsd-mips mailing list