From: Oliver Neukum <oliver@neukum.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Mario Limonciello <mario_limonciello@dell.com>,
linux-usb@vger.kernel.org, Matthew Garrett <mjg59@srcf.ucam.org>,
Marcel Holtmann <marcel@holtmann.org>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Explicitly disable BT radio using rfkill interface on suspend
Date: Wed, 20 May 2009 14:29:04 +0200 [thread overview]
Message-ID: <200905201429.06113.oliver@neukum.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0905192212560.7309-100000@netrider.rowland.org>
Am Mittwoch, 20. Mai 2009 04:17:59 schrieb Alan Stern:
> On Wed, 20 May 2009, Oliver Neukum wrote:
> > Marcel, are the HID devices usable after hid2hci has run? Should we
> > choose to not resume from power loss any hid device which hid2hci
> > operated on?
>
> I'd like to know why the device switches back from HID+bluetooth to
> pure HID during a suspend-resume sequence. Does it undergo a
> reset-resume?
Yes.
[ 111.356035] usb 2-3: reset high speed USB device using ehci_hcd and address 2
[ 111.668045] usb 3-4: reset full speed USB device using ohci_hcd and address 2
[ 112.177152] usb 3-4.1: reset full speed USB device using ohci_hcd and address 3
[ 112.361151] usb 3-4.2: reset full speed USB device using ohci_hcd and address 4
[ 112.471157] pm_op(): usb_dev_resume+0x0/0x10 returns -19
[ 112.471160] PM: Device 3-4.3 failed to resume: error -19
[ 112.471373] PM: resume devices took 3.256 seconds
[ 112.471980] PM: Finishing wakeup.
[ 112.471982] Restarting tasks ... <6>usb 3-4.3: USB disconnect, address 5
[ 112.504314] btusb_send_frame: hci0 urb f4520700 submission failed
>
> Here's another question: Since there is a udev removal event for the
> radio device, why not add a udev rule to switch back to HID+bluetooth
> mode every time that event occurs?
1. You'd have two rules doing the same thing (resume & addition)
2. It is unclean, as the removal event doesn't tell you which device to run
hid2hci on
3. The device might really be physically removed
4. You can intentionally run hid2hci to switch back to HID
Regards
Oliver
PS: Why, oh why don't people use configurations as they were designed?
next prev parent reply other threads:[~2009-05-20 12:28 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 20:12 [PATCH] Explicitly disable BT radio using rfkill interface on suspend Mario Limonciello
2009-05-18 21:02 ` Matthew Garrett
2009-05-18 21:36 ` Mario Limonciello
2009-05-19 5:03 ` Matthew Garrett
2009-05-19 5:14 ` Marcel Holtmann
2009-05-19 6:27 ` Oliver Neukum
2009-05-19 6:45 ` Marcel Holtmann
2009-05-19 7:36 ` Oliver Neukum
2009-05-19 9:06 ` Matthew Garrett
2009-05-19 12:47 ` Oliver Neukum
2009-05-19 12:58 ` Matthew Garrett
2009-05-19 16:30 ` Mario Limonciello
2009-05-19 16:33 ` Matthew Garrett
2009-05-19 16:52 ` Mario Limonciello
2009-05-19 19:58 ` Oliver Neukum
2009-05-19 20:36 ` Mario Limonciello
2009-05-19 21:26 ` Oliver Neukum
2009-05-19 21:47 ` Mario Limonciello
2009-05-19 22:16 ` Oliver Neukum
2009-05-19 22:19 ` Mario Limonciello
2009-05-20 2:17 ` Alan Stern
2009-05-20 12:29 ` Oliver Neukum [this message]
2009-05-20 14:17 ` Alan Stern
2009-05-20 17:52 ` Mario Limonciello
2009-05-20 18:31 ` Alan Stern
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=200905201429.06113.oliver@neukum.org \
--to=oliver@neukum.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=mario_limonciello@dell.com \
--cc=mjg59@srcf.ucam.org \
--cc=stern@rowland.harvard.edu \
/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