From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH 5/5] [pci pm] Make pci_choose_state() use the real device state requested Date: Sat, 18 Feb 2006 16:58:36 +0100 Message-ID: <20060218155836.GF5658@openzaurus.ucw.cz> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============068650209021188235==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: Patrick Mochel Cc: akpm@osdl.org, torvalds@osdl.org, linux-kernel@vger.kernel.org, linux-pm@osdl.org List-Id: linux-pm@vger.kernel.org --===============068650209021188235== Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! > case PM_EVENT_FREEZE: > case PM_EVENT_SUSPEND: > - return PCI_D3hot; > + if (msg.state && msg.state <= PCI_D3hot) > + state = msg.state; > + break; > default: Silently ignores wrong value passed-in by user. Not nice... Pavel -- 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms --===============068650209021188235== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --===============068650209021188235==--