Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2014 19:41:28 +0000
From:      "ricky graham (via Twitter)" <notify@twitter.com>
To:        svn-src-head@freebsd.org
Subject:   ricky graham sent you an invitation
Message-ID:  <6E.92.30033.86F4A645@twitter.com>

next in thread | raw e-mail | index | archive | help
ricky graham sent you an invitation
Twitter helps you stay connected with what's happening right now and with the people and organizations you care about.

  Accept invitation

https://twitter.com/i/2b6d2db9-2214-4571-b818-68cf9893d35a

-- 

You can unsubscribe from receiving email notifications from Twitter at anytime. For general inquiries, please visit us at Twitter Support.
Unsubscribe: https://twitter.com/i/o?t=1&cn=aW52aXRlX3NlbGZfc2VydmU%3D&iid=98b2e6e5375841268f8d7ea60701c3df&uid=0&c=zIOtETEn5e%2BLxOu8yW1rGmFii1ooOpHcwGsDlhYp9JA%3D&nid=244+26

Need help?
https://support.twitter.com
From owner-svn-src-head@FreeBSD.ORG  Mon Nov 17 20:25:21 2014
Return-Path: <owner-svn-src-head@FreeBSD.ORG>
Delivered-To: svn-src-head@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id D76D9E4B;
 Mon, 17 Nov 2014 20:25:21 +0000 (UTC)
Received: from svn.freebsd.org (svn.freebsd.org
 [IPv6:2001:1900:2254:2068::e6a:0])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id C469DFCD;
 Mon, 17 Nov 2014 20:25:21 +0000 (UTC)
Received: from svn.freebsd.org ([127.0.1.70])
 by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sAHKPLfO055667;
 Mon, 17 Nov 2014 20:25:21 GMT (envelope-from dchagin@FreeBSD.org)
Received: (from dchagin@localhost)
 by svn.freebsd.org (8.14.9/8.14.9/Submit) id sAHKPLMl055666;
 Mon, 17 Nov 2014 20:25:21 GMT (envelope-from dchagin@FreeBSD.org)
Message-Id: <201411172025.sAHKPLMl055666@svn.freebsd.org>
X-Authentication-Warning: svn.freebsd.org: dchagin set sender to
 dchagin@FreeBSD.org using -f
From: Dmitry Chagin <dchagin@FreeBSD.org>
Date: Mon, 17 Nov 2014 20:25:21 +0000 (UTC)
To: src-committers@freebsd.org, svn-src-all@freebsd.org,
 svn-src-head@freebsd.org
Subject: svn commit: r274635 - head/sys/dev/pci
X-SVN-Group: head
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-src-head@freebsd.org
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: SVN commit messages for the src tree for head/-current
 <svn-src-head.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/svn-src-head>,
 <mailto:svn-src-head-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-head/>;
List-Post: <mailto:svn-src-head@freebsd.org>
List-Help: <mailto:svn-src-head-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-head>,
 <mailto:svn-src-head-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Nov 2014 20:25:22 -0000

Author: dchagin
Date: Mon Nov 17 20:25:21 2014
New Revision: 274635
URL: https://svnweb.freebsd.org/changeset/base/274635

Log:
  Use the correct device as the power_for_sleep() method
  always pass request up to parent bridge.
  
  Reviewed by:	jhb
  MFC after:	1 week
  xMFC:		r274386,r274397

Modified:
  head/sys/dev/pci/pci.c

Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c	Mon Nov 17 17:17:10 2014	(r274634)
+++ head/sys/dev/pci/pci.c	Mon Nov 17 20:25:21 2014	(r274635)
@@ -3637,7 +3637,6 @@ static void
 pci_set_power_child(device_t dev, device_t child, int state)
 {
 	struct pci_devinfo *dinfo;
-	device_t pcib;
 	int dstate;
 
 	/*
@@ -3647,11 +3646,10 @@ pci_set_power_child(device_t dev, device
 	 * device power.  Skip children who aren't attached since they
 	 * are handled separately.
 	 */
-	pcib = device_get_parent(dev);
 	dinfo = device_get_ivars(child);
 	dstate = state;
 	if (device_is_attached(child) &&
-	    PCIB_POWER_FOR_SLEEP(pcib, child, &dstate) == 0)
+	    PCIB_POWER_FOR_SLEEP(dev, child, &dstate) == 0)
 		pci_set_powerstate(child, dstate);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E.92.30033.86F4A645>