Subject: Re: maple_attach_dev
To: Marcus Comstedt <marcus@idonex.se>
From: Jason R Thorpe <thorpej@zembu.com>
List: port-dreamcast
Date: 03/16/2001 14:38:21
On Fri, Mar 16, 2001 at 11:33:34PM +0100, Marcus Comstedt wrote:

 > I just realized that config_found_sm() will only attach _one_ device
 > driver to each device.  This may not be what you want for Maple
 > devices that have multiple functions.  Maybe it would be better to
 > call config_found_sm() multiple times with the same device, but
 > different function codes?  Then one device driver per function code
 > may attach.  It could mean a who lot more "not configured" printouts
 > during boot though.

The right thing to do is to call config_found_sm() once for each
function on the device, incrementing the "function" locator each
time, for each function present.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>