<div class="gmail_quote">Impressive!</div><div class="gmail_quote"><br></div><div class="gmail_quote">On Wed, Jul 6, 2011 at 3:34 PM, Carl-Daniel Hailfinger <span dir="ltr"><<a href="mailto:c-d.hailfinger.devel.2006@gmx.net">c-d.hailfinger.devel.2006@gmx.net</a>></span> wrote:</div>

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">-       /* Initialize PCI access for flash enables */</blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


-       pacc = pci_alloc();     /* Get the pci_access structure */<br>
-       /* Set all options you want -- here we stick with the defaults */<br>
-       pci_init(pacc);         /* Initialize the PCI library */<br>
+       if (flashrom_pci_init())<br>
<div class="im">+               return 1;<br>
        pci_scan_bus(pacc);     /* We want to get the list of devices */<br></div></blockquote><div><br></div><div>Change those last three lines to:</div><div>if (!flashrom_pci_init())</div><div>        pci_scan_bus(pacc);</div>

<div><br></div><div>and it works on systems w/o PCI (at least it did on ARM)</div><div><br></div><div>Here are my test results with this patch and the tegra2 patch: <a href="http://paste.flashrom.org/view.php?id=683">http://paste.flashrom.org/view.php?id=683</a></div>

<div><br></div></div>-- <br>David Hendricks (dhendrix)<br>Systems Software Engineer, Google Inc.<br>