Re: pccard re-attach after ACPI S1 resume

"M. Warner Losh" <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
In message: <[email protected]>
            John Baldwin <[email protected]> writes:
: 
: On 12-Sep-2002 Mark Santcroos wrote:
: > On Thu, Sep 12, 2002 at 04:53:15PM -0400, John Baldwin wrote:
: >> > Then we do an attach on a slot where we know there isn't anything anyway.
: >> > That basicly doesn't make sense, and it also spits out all kind of ulgy
: >> > messages that we don't want/need.
: >> 
: >> We do a detach when we don't know if something is there in pccard_suspend().
: >> :)  Maybe pccard_attach_card() could take an argument to tell it to not
: >> whine if there is no card there.
: > 
: > That's true :) Whatever you think is best. As long as I don't have to
: > reboot. I'm coming pretty close to a fully usable laptop now!
: > 
: > Anyway, is this the right place you think or should we kick it up to pccbb?
: 
: Well, Warner is Mr. Newcard, so it is really his opinion that matters. :)
: Logically since we always do a detach() in suspend() I think we should
: always do an attach() on resume() but just silently fail if there is no
: card.  Imagine if you suspended with a card in and then ejected it.  You
: would still get a bunch of warning message from attach() when instead it
: should just handle the situation quietly. :)

This is basically right.  Having special flags on suspend is bogus.

Warner

To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-mobile" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.