Geert Uytterhoeven schrieb: > On Mon, 12 Feb 2007, Pavel Machek wrote: >> > Can't the upper layer just assume -ENOSYS if .resume/.suspend is NULL? >> > It's nicer if you don't have to implement dummy functions at all. >> >> Unfortunately, drivers currently assume "NULL == nothing is needed", More often than not they assume nothing of the kind. >> so we'd have t do big search & replace... > > Which means you also cannot easily keep track of which driver supports > suspend/resume and which doesn't, as there will always be drivers where a > missing suspend/resume function is correct. I think those are rare exceptions. They could and should be asked to make this statement explicit, as you propose: > Wouldn't it be more sensible to have > > .suspend = suspend_nothing_to_do > > instead, and reserve NULL for `not yet implemented'? NULL is already taken for 'don't know'. So *two* new values are needed, one for "nothing to do" and one for "not supported". -- Tilman Schmidt E-Mail: [email protected] Bonn, Germany Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite)
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- NAK new drivers without proper power management?
- From: Nigel Cunningham <[email protected]>
- Re: NAK new drivers without proper power management?
- From: Arjan van de Ven <[email protected]>
- Re: NAK new drivers without proper power management?
- From: Pavel Machek <[email protected]>
- Re: NAK new drivers without proper power management?
- From: "Rafael J. Wysocki" <[email protected]>
- Re: NAK new drivers without proper power management?
- From: Geert Uytterhoeven <[email protected]>
- Re: NAK new drivers without proper power management?
- From: Pavel Machek <[email protected]>
- Re: NAK new drivers without proper power management?
- From: Geert Uytterhoeven <[email protected]>
- NAK new drivers without proper power management?
- Prev by Date: Re: [patches] [PATCH 2.6.21 review I] [4/25] x86: kernel-mode faults pollute current->thead
- Next by Date: Re: SATA-performance: Linux vs. FreeBSD
- Previous by thread: Re: NAK new drivers without proper power management?
- Next by thread: Re: NAK new drivers without proper power management?
- Index(es):