Subject: Re: CVS commit: src/sys/dev/ic
To: None <source-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: source-changes
Date: 12/14/2007 16:12:38
On Thu, Dec 13, 2007 at 09:55:46PM -0500, Jared D. McNeill wrote:
> On Fri, 14 Dec 2007, David Young wrote:
>> Modified Files:
>> 	src/sys/dev/ic: ath.c
>>
>> Log Message:
>> Exit from ath_init() with EBUSY if the device does not have power.
>
> Is there a way that we can do this in if_ethersubr.c so we don't have to 
> fix every single driver?

I looked at what is needed for automatic handling of resume/suspend for
up/down and the main problems is that it can't be done from if_init and
if_stop due to the recursion. I would consider to split them into two
parts and call the inner hook from the class handler.

Joerg