From patchwork Fri Nov 27 02:51:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 549280 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 43612140307 for ; Fri, 27 Nov 2015 13:52:39 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=GRmDytT3; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CDA834B8FD; Fri, 27 Nov 2015 03:52:37 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jYBdPnM7MAxz; Fri, 27 Nov 2015 03:52:37 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BA1F84B90B; Fri, 27 Nov 2015 03:52:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DE57E4B8FC for ; Fri, 27 Nov 2015 03:51:43 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7LuaF8Glo0jM for ; Fri, 27 Nov 2015 03:51:43 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by theia.denx.de (Postfix) with ESMTPS id 17E314B8F9 for ; Fri, 27 Nov 2015 03:51:40 +0100 (CET) Received: by oiww189 with SMTP id w189so55143540oiw.3 for ; Thu, 26 Nov 2015 18:51:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=6Oy0bp2tiWTT5D9CUk7SxtBcNJaX9kw0TTc3yOGYi0E=; b=GRmDytT3Cz6m8UrH+ql8E3xdDaUZxcYjxGDwnErksvdx7Ld+P3bYr6qbSbgsYlf7v0 9oPO/uh2Vt0h7S0eZkHBIXEi3UZM25u2BASEJjxHAIeKgTtZ96GRwtiumvLu1Do1IcD6 7ZK6Y1OgZlyha+fQQnZktkBdhHWB3mGOK6MgMSN9DVpV9GvK5xvUN9h17vLS82wfc9Kr 0hm8aAFbcQVosD4Be6Ps1DHFnqgSpKmBhxQEexSe8es5osbVGaJ9xZu5+lTdOO78M0y8 K8i25L5IQ67lI/9Fkv0dfeAI8T8kPelKip5YQs7CosGQ+UpxCS7JT1PwdNlWwW/OuXO6 ZU6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=6Oy0bp2tiWTT5D9CUk7SxtBcNJaX9kw0TTc3yOGYi0E=; b=MsKp64Qg89XlVLKA4o8Nyid1grgz/WrUFtqJ1SBWrOmVwMMu1H+hPOFrev9OoFD5bM RbydcmkofVex/fxp2tLXqh79vDIOWYUr073RakXmKeznKJF1zXa5ndHCgS2a3QgyijiJ Kor86ICbMYGoPIMJmNK+QAAGwo8NyaYtIOLi92MUeHANGkYg0BT2FSRr1aIJJ2V8/Fq1 VndVc9hnVyyRuhXuq2e0NAA3ETNTPUlWSeU+zduAxma0/sopBBawFgjHIbWHIIMHu94Q b/Dacg10/xVUu3GJfxm3aBPjNXJIcdYB7Ow3AGw7LJBLWKGimUQbz0jW04im2UVlkI5A LblA== X-Gm-Message-State: ALoCoQktY3FzbjX3K1F4j/4LTa5wm3xlDG7zuRTC17wcALyibqQhsLz/5bV9xEbsZlvcm+djG0EY X-Received: by 10.202.197.14 with SMTP id v14mr30895655oif.37.1448592698845; Thu, 26 Nov 2015 18:51:38 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by smtp.gmail.com with ESMTPSA id p3sm14210831oei.9.2015.11.26.18.51.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2015 18:51:37 -0800 (PST) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id C32E42211CC; Thu, 26 Nov 2015 19:51:36 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 26 Nov 2015 19:51:21 -0700 Message-Id: <1448592690-14911-5-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1448592690-14911-1-git-send-email-sjg@chromium.org> References: <1448592690-14911-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v3 04/13] dm: pci: Add a comment about how to find struct pci_controller X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" With driver mode, struct pci_controller is stored as uclass-private data. Add a comment to that effect. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: None include/pci.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pci.h b/include/pci.h index 9c19482..c4f6577 100644 --- a/include/pci.h +++ b/include/pci.h @@ -537,6 +537,8 @@ extern void pci_cfgfunc_config_device(struct pci_controller* hose, pci_dev_t dev /* * Structure of a PCI controller (host bridge) + * + * With driver model this is dev_get_uclass_priv(bus) */ struct pci_controller { #ifdef CONFIG_DM_PCI