tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: RFC: device attachment/detachment
Christoph_Egger%gmx.de@localhost wrote:
> >>> device_register() has to happen before the attach callback because the
> >>> system will typically set properties for the attach callback to use
> >>> during that call. I don't know how device_register() users could
> >>> react if the device they've just messed with disappear immediately. It
> >>> has to be checked carefully.
> >> On x86, device_register() is used to set bootdev. When prompted for
> >> the boot device, the failed devices shouldn't be listed.
> >
> > Is this why you did such a change?
>
> Yes. And from code reading it sounds more logical to register a device
> _after_ it successfully attached.
Several device properties must be set before a device is attached
because attach functions might get those properties to handle quirks.
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index