Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2014 09:47:53 -0400
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        jhibbits@freebsd.org, Edward Tomasz =?utf-8?q?Napiera=C5=82a?= <trasz@freebsd.org>
Subject:   Re: [patch] USB after second suspend/resume on ThinkPads.
Message-ID:  <201406180947.53141.jhb@freebsd.org>
In-Reply-To: <20140616192155.GE13481@brick.home>
References:  <20140616192155.GE13481@brick.home>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, June 16, 2014 3:21:55 pm Edward Tomasz Napiera=C5=82a wrote:
> Hi.  Patch below should fix a problem where USB stops working after
> _second_ suspend/resume, which happens on various ThinkPad models.
> Please test, and report both success stories and failures.  If nothing
> comes up, I'll commit it in a week or so.

Good find.  Have you thought about a more generic fix for this wherein you=
=20
track power resources and flip them on during resume in ACPI before doing
DEVICE_RESUME() on the root bus?

Alternatively, this probably meshes well with Justin's work on multipass=20
suspend/resume in that ACPI buses (e.g. acpi_pci and acpi0 itself) should b=
e=20
turning on any power sources associated with an ACPI device during the=20
bus_resume_child() callback.

=2D-=20
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406180947.53141.jhb>