Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750770AbVKDP13 (ORCPT ); Fri, 4 Nov 2005 10:27:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750790AbVKDP13 (ORCPT ); Fri, 4 Nov 2005 10:27:29 -0500 Received: from zproxy.gmail.com ([64.233.162.205]:65509 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S1750770AbVKDP12 convert rfc822-to-8bit (ORCPT ); Fri, 4 Nov 2005 10:27:28 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TbLMNNKBadpImpE0Wx4VZ91/j+wMDtrv9WOVLg/MoPkTshfJeC7U9mJ6o4lN8Ilqr0qOEeBuiKg30dZPsYHmmST+Cz2KYy7kqgEX8X4BuHZuvPHNTdUA0mhSRjiYo3NA+0LH25cgWE2fcTRc8UU+Lk9q7iPlzMwo8E+XuHYGwmE= Message-ID: Date: Fri, 4 Nov 2005 10:27:26 -0500 From: Dmitry Torokhov Reply-To: dtor_core@ameritech.net To: Pierre Ossman Subject: Re: [Fwd: [PATCH] [PNP][RFC] Suspend support for PNP bus.] Cc: Andrew Morton , LKML , Adam Belay In-Reply-To: <436B7B46.6060205@drzeus.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <436B2819.4090909@drzeus.cx> <436B7B46.6060205@drzeus.cx> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 29 On 11/4/05, Pierre Ossman wrote: > Dmitry Torokhov wrote: > > > > Hmm, would'nt presence of such device stop suspend process? It will > > cause pnp_bus_resume to fail too. Perhaps returning 0 in this case is > > better. > > > > > > The problem is that this code is also visited from pnp_activate_dev() & > co where this return value is needed. For pnp_stop_dev() the same check > (pnp_can_disable()) is performed in the suspend routine to avoid that > particular problem. For resume my assumption was that a device that > doesn't support activation will not have a driver attached to it. > Perhaps this is wrong? > i8042 registers drivers for keyboard and AUX ports to gather information whether the ports are present and what IRQ and IO ports shoudl be used to access them. And I have seen a few boxes that do not alloe [de]activate these devices. -- Dmitry - 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/