Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Dec 2007 13:05:36 -0800
From:      Marcel Moolenaar <xcllnt@mac.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        powerpc@freebsd.org
Subject:   Re: Only set bus tag/handles in activate_resource() methods
Message-ID:  <1B950FDE-456B-4821-AC21-D8288407E921@mac.com>
In-Reply-To: <200712201431.56657.jhb@freebsd.org>
References:  <200712201431.56657.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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@mac.com





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1B950FDE-456B-4821-AC21-D8288407E921>