Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753482Ab2KGV4v (ORCPT ); Wed, 7 Nov 2012 16:56:51 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:51223 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753220Ab2KGV4u (ORCPT ); Wed, 7 Nov 2012 16:56:50 -0500 Date: Wed, 7 Nov 2012 16:56:49 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: "Rafael J. Wysocki" cc: Huang Ying , , Subject: Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden In-Reply-To: <5835880.VrlCHNcBeW@vostro.rjw.lan> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1282 Lines: 29 On Wed, 7 Nov 2012, Rafael J. Wysocki wrote: > > Right. The reasoning behind my proposal goes like this: When there's > > no driver, the subsystem can let userspace directly control the > > device's power level through the power/control attribute. > > Well, we might as well just leave the runtime PM of PCI devices enabled, even > if they have no drivers, but modify the PCI bus type's runtime PM callbacks > to ignore devices with no drivers. > > IIRC the reason why we decided to disable runtime PM for PCI device with no > drivers was that some of them refused to work again after being put by the > core into D3. By making the PCI bus type's runtime PM callbacks ignore them > we'd avoid this problem without modifying the core's behavior. It comes down to a question of the parent. If a driverless PCI device isn't being used, shouldn't its parent be allowed to go into runtime suspend? As things stand now, we do allow it. The problem is that we don't disallow it when the driverless device _is_ being used. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/