On Mon, Aug 17, 2009 at 10:57 AM, ron minnich <rminnich@gmail.com> wrote:
On Mon, Aug 17, 2009 at 9:12 AM, Myles Watson<mylesgw@gmail.com> wrote:

> For me the steps would be:
> 1. Make sure that the device that needs the config writes is in the above
> list.

I am after painful detail :-)
I'm much better at answering questions than brain-dumping, but I'm trying.
 
> 2. Add code like this:
>      if (dev->link[link].bridge_ctrl & PCI_BRIDGE_CTL_VGA) {
>           /* Add your code from auto.c here */
>      }
> to the .init function of the bridge.

Yes. And how did bridge_ctrl get set again?
In set_vga_bridge_bits(), the code finds the VGA device and then walks back to the root, setting the bridge_ctrl bits along the way.  When the enable_resources() or init() function gets called, device-specific code can then do what it needs to with that information to make it work.

Myles