Only set bus tag/handles in activate_resource() methods

Marcel Moolenaar xcllnt at mac.com
Thu Dec 20 13:19:28 PST 2007


On Dec 20, 2007, at 11:31 AM, John Baldwin wrote:

> This patch (untested) tries to fix an issue on powerpc I fixed on the
> ACPI-using platforms a while back.  It fixes the top-level bus  
> drivers to
> activate resources (assign bus tags and handles so you can use  
> bus_space_*())
> in bus_activate_resource() methods instead of in  
> bus_alloc_resource().  This
> is important for any drivers that want do what ACPI does: allocate a  
> resource
> and then subdivide it to hand it out to child devices.  A driver  
> that does
> this can still pass the bus_activate_resource() request up the tree to
> actually bet bus_space setup with this fix.

I like it. Feel free to commit. I'll test it afterwards.
FYI,

-- 
Marcel Moolenaar
xcllnt at mac.com




More information about the freebsd-ppc mailing list