From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [patch 2/2] support for UHCI suspend / remote wake up Date: Wed, 01 Dec 2010 16:12:14 +0100 Message-ID: <4CF665CE.70600@redhat.com> References: <20101125170439.548474575@redhat.com> <20101125170602.676792336@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm , Matthew Garrett , Adam Jackson , Glauber de Oliveira Costa To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:17794 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751876Ab0LAPMX (ORCPT ); Wed, 1 Dec 2010 10:12:23 -0500 In-Reply-To: <20101125170602.676792336@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 11/25/10 18:04, Marcelo Tosatti wrote: > This patch enables USB UHCI global suspend/resume feature. The OS will > stop the HC once all ports are suspended. If there is activity on the > port(s), an interrupt signalling remote wakeup will be triggered. > > To enable autosuspend for the USB tablet on Linux guests: > > echo auto> /sys/devices/pci0000:00/0000:00:01.2/usb1/1-1/power/level Hmm, did you ever got this working sanely? /me sees bus disconnects in the guest ... > port->ctrl&= ~(val& 0x000a); > + port->ctrl&= ~(port->ctrl& 0x0040); /* clear port resume detected */ > } This chunk looks suspicious ... I suspect the port suspend/resume emulation isn't complete. /me goes debugging, Gerd