From: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
To: Indrek Peri <Indrek.Peri-rMwOiwQz3sZWk0Htik3J/w@public.gmane.org>
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] Dot not insert RX urbs if EVENT_DEV_ASLEEP flag is set.
Date: Mon, 06 Dec 2010 18:49:48 -0800 [thread overview]
Message-ID: <1291690188.2285.221.camel@helium> (raw)
In-Reply-To: <1291631047-23766-1-git-send-email-Indrek.Peri-rMwOiwQz3sZWk0Htik3J/w@public.gmane.org>
I realize it's not all your doing, but that's an EVENT not a state flag,
But you're treating it as a state flag. (Like the original somewhat
goofy 69ee472f2706371ca639de49b06df91615c07d8d from Oliver). Even as
a flag, its semantics seem fuzzy... like they should be covered by
other state in the network and/or power management stacks.
I'd like to see this botch fixed, not worsened. Maybe you and Oliver
could collaborate on fixing it, and getting other state flags out ofthe
word used to track and signal events? If you've ever worked with
hardware
that makes that kind of mistake, you know how error-prone it is ...
Meanwhile, NAK.
ISTR related Comments came up when a previous incarnation of this patch
circulated, from at least Alan Stern. What happened to that?
Events trigger state transitions and similar actions. So
A "leave sleep state" event" might be a place to trigger RX urb
insertion as part of wake-up processing. (Ideally, there'd be
no need to set an event bit to trigger it as deferred work ... the
reason to have a word of event bits for some other events.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2010-12-07 2:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-06 10:24 [PATCH] Dot not insert RX urbs if EVENT_DEV_ASLEEP flag is set Indrek Peri
[not found] ` <1291631047-23766-1-git-send-email-Indrek.Peri-rMwOiwQz3sZWk0Htik3J/w@public.gmane.org>
2010-12-07 2:49 ` David Brownell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291690188.2285.221.camel@helium \
--to=david-b-ybekhbn/0ldr7s880joybq@public.gmane.org \
--cc=Indrek.Peri-rMwOiwQz3sZWk0Htik3J/w@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).