From: Alan Stern Date: Tue, 11 May 2010 15:44:06 +0000 (-0400) Subject: USB: fix interface runtime-PM settings X-Git-Tag: v2.6.35-rc1~471^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89842ae6515c49405e20c0629a6442b6885ad49d;p=pandora-kernel.git USB: fix interface runtime-PM settings This patch (as1379) reworks the logic for handling USB interface runtime-PM settings -- hopefully it's right this time! The problem is that when a driver is unbound or binding fails, runtime PM for the interface always gets disabled. But pm_runtime_disable() nests, so it shouldn't be called unless the interface was previously enabled for runtime PM. Signed-off-by: Alan Stern Reported-by: Rob Duncan Tested-by: Rob Duncan Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed