diff mbox

[U-Boot,v3,04/13] dm: pci: Add a comment about how to find struct pci_controller

Message ID 1448592690-14911-5-git-send-email-sjg@chromium.org
State Accepted
Headers show

Commit Message

Simon Glass Nov. 27, 2015, 2:51 a.m. UTC
With driver mode, struct pci_controller is stored as uclass-private data.
Add a comment to that effect.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
---

Changes in v3: None
Changes in v2: None

 include/pci.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass Nov. 28, 2015, 4:55 p.m. UTC | #1
On 26 November 2015 at 18:51, Simon Glass <sjg@chromium.org> wrote:
> With driver mode, struct pci_controller is stored as uclass-private data.
> Add a comment to that effect.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  include/pci.h | 2 ++
>  1 file changed, 2 insertions(+)

Applied to u-boot-dm.
diff mbox

Patch

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