linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: fedora-ppc@lists.infradead.org,
	linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: Re: Test patch for sleep on Aluminium PowerBooks
Date: Wed, 27 Oct 2004 18:50:46 +0100	[thread overview]
Message-ID: <1098899446.13633.1861.camel@hades.cambridge.redhat.com> (raw)
In-Reply-To: <1098870636.6159.13.camel@gaston>

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

On Wed, 2004-10-27 at 19:50 +1000, Benjamin Herrenschmidt wrote:
> Hi !
> 
> This is an experimental patch against 2.6.9. It concerns the ATI based
> Aluminium PowerBook. The nVidia based ones aren't concerned at all, and
> the iBook G4 will have to wait a bit more for me to get the video wakeup
> code right.

Works for me, thanks. Works better if I have the attached patch too. 

Xorg doesn't seem to receive mouse events from the USB mouse after
resume, but 'od -t x1 /dev/input/mice' does continue to work after
resume. I'll investigate that one further.

-- 
dwmw2

[-- Attachment #2: linux-2.6.9-usbsuspend.patch --]
[-- Type: text/x-patch, Size: 618 bytes --]

--- linux-2.6.9/drivers/usb/core/hub.c.susp	2004-10-27 17:30:39.796999176 +0100
+++ linux-2.6.9/drivers/usb/core/hub.c	2004-10-27 17:31:49.991979112 +0100
@@ -1527,12 +1527,12 @@ static int __usb_suspend_device (struct 
 			 * even for drivers that can't suspend.
 			 */
 			if (!driver->suspend || state > PM_SUSPEND_MEM) {
-#if 1
+#if 0
 				dev_warn(&intf->dev, "resume is unsafe!\n");
 #else
-				down_write(&usb_bus_type.rwsem);
+				down_write(&usb_bus_type.subsys.rwsem);
 				device_release_driver(&intf->dev);
-				up_write(&usb_bus_type.rwsem);
+				up_write(&usb_bus_type.subsys.rwsem);
 #endif
 			}
 		}

  reply	other threads:[~2004-10-27 18:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-27  9:50 Test patch for sleep on Aluminium PowerBooks Benjamin Herrenschmidt
2004-10-27 17:50 ` David Woodhouse [this message]
2004-11-09  3:11 ` Armando Di Cianno
2004-11-22 22:20   ` Benjamin Herrenschmidt
2004-11-22 22:26     ` Colin Leroy

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=1098899446.13633.1861.camel@hades.cambridge.redhat.com \
    --to=dwmw2@infradead.org \
    --cc=benh@kernel.crashing.org \
    --cc=fedora-ppc@lists.infradead.org \
    --cc=linuxppc-dev@ozlabs.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).