From owner-svn-src-head@FreeBSD.ORG Mon Nov 17 19:41:40 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C9C89FC0 for ; Mon, 17 Nov 2014 19:41:40 +0000 (UTC) Received: from spring-chicken-bm.twitter.com (spring-chicken-bm.twitter.com [199.16.156.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8DDDEB43 for ; Mon, 17 Nov 2014 19:41:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=twitter.com; s=dkim-201406; t=1416253288; bh=h55t1S+DxViQOZ+0snOP417fFqPXprWIhTJ3F2Lt/9g=; h=Date:From:To:Subject:MIME-Version:Content-Type:List-Unsubscribe: Feedback-ID:Message-ID; b=YLUbFob0Svh7g7YhbhkYaiFL+VYC0tctarRsWLJdmPEYMSy1yd67OYhmyWbdlMxNO GijUMFb4hxxDI/yQi1ilFymiksCMAp5wov0g/DL3J7zcXSKXTZUc4surFZXquLEosk h1wwYftkfaa5A0CfWp3aW4vxC5L4kCexVI2JgMr0OAhGNMGw3U7ls7ajNmxXxT3fX8 USKZwCSKvMQSU5a4vvzoT9eLmb+33XakRwMLHFRZwz5Y1igmob+WfJywn3QL2hZs7d ZF6myDnYT2m1sBAPBxeVuz4ntfpLVepmU5UA9NBJWVWkoxUpw4PX0SNRju2QRhRaMo I9FuveItYtRAA== X-MSFBL: c3ZuLXNyYy1oZWFkQGZyZWVic2Qub3JnQGF0bGEtYXFoLTM4LXNyMS1FdmVyeXRo aW5nLjE5OEBFdmVyeXRoaW5nQHN2bi1zcmMtaGVhZFxAZnJlZWJzZC5vcmdcQHVz YiMjMFxAMjQ0XEAwXEAwXEA5Mzk2ZDhiODk3NDhlZDExMTMxMzc2YzFkNmEzZjk4 ZjlhYWIyYTI4 Date: Mon, 17 Nov 2014 19:41:28 +0000 From: "ricky graham (via Twitter)" To: svn-src-head@freebsd.org Subject: ricky graham sent you an invitation MIME-Version: 1.0 Feedback-ID: 0040162518f58f41d1f0:1a4b0c2a33e3b540c2f9f813ac6366b7f1:none:twitterESP Message-ID: <6E.92.30033.86F4A645@twitter.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Nov 2014 19:41:40 -0000 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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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); }