From: Oliver Neukum <oneukum@suse.de>
To: Jagdish Gedia <jvgediya@gmail.com>
Cc: "linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Check if usb device is suspended
Date: Thu, 13 Mar 2014 14:05:59 +0100 [thread overview]
Message-ID: <1394715959.21617.19.camel@linux-fkkt.site> (raw)
In-Reply-To: <CAOAoqGt_Y_weA2FjA8x-NrZS7zj+=Zw-TH5Xv+QUQDJQixmdsw@mail.gmail.com>
On Thu, 2014-03-13 at 17:13 +0530, Jagdish Gedia wrote:
> Hi,
> I want to check in my driver if usb device is suspended or not?
> currently i am doing it like
>
> if(udev->state==USB_STATE_SUSPENDED)
>
> Is this the proper way? Is this enough?
This question is near meaningless. Assuming that you
don't check for fun, but want to act on the state,
the meaningful question would be how you know that
a device is still suspended (or not) while you perform
the actions you base on that information.
Regards
Oliver
next prev parent reply other threads:[~2014-03-13 13:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-13 11:43 Jagdish Gedia
2014-03-13 13:05 ` Oliver Neukum [this message]
2014-03-13 14:20 ` Alan Stern
2014-03-21 11:47 ` Jagdish Gedia
2014-03-21 13:22 ` Oliver Neukum
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=1394715959.21617.19.camel@linux-fkkt.site \
--to=oneukum@suse.de \
--cc=jvgediya@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.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
all inboxes | Powered by JetHome®