diff options
author | Marek BehĂșn <marek.behun@nic.cz> | 2021-02-08 23:01:39 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-02-26 10:22:29 +0100 |
commit | 26f7a76ef9139544ea053a7d806cddda330a57d9 (patch) | |
tree | fe9f5cf5881cbf1c4dacc2182fa26c5b353536ec | |
parent | 241d763618fda78913e05b929fb1de3e27fa8dde (diff) | |
download | u-boot-26f7a76ef9139544ea053a7d806cddda330a57d9.zip u-boot-26f7a76ef9139544ea053a7d806cddda330a57d9.tar.gz u-boot-26f7a76ef9139544ea053a7d806cddda330a57d9.tar.bz2 |
pci: pci_mvebu: debug rd/wr config as other drivers do
Other drivers (aardvark, intel_fpga) print "(addr,size,val)" when
debugging is enabled. Print size for pci_mvebu as well.
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Cc: Stefan Roese <sr@denx.de>
Cc: Phil Sutter <phil@nwl.cc>
Cc: Mario Six <mario.six@gdsys.cc>
Cc: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | drivers/pci/pci_mvebu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c index 0cd05ea..8e674bb 100644 --- a/drivers/pci/pci_mvebu.c +++ b/drivers/pci/pci_mvebu.c @@ -175,7 +175,7 @@ static int mvebu_pcie_read_config(const struct udevice *bus, pci_dev_t bdf, /* read data */ data = readl(pcie->base + PCIE_CONF_DATA_OFF); - debug("(addr,val)=(0x%04x, 0x%08x)\n", offset, data); + debug("(addr,size,val)=(0x%04x, %d, 0x%08x)\n", offset, size, data); *valuep = pci_conv_32_to_size(data, offset, size); return 0; @@ -192,7 +192,7 @@ static int mvebu_pcie_write_config(struct udevice *bus, pci_dev_t bdf, debug("PCIE CFG write: loc_bus=%d loc_dev=%d (b,d,f)=(%2d,%2d,%2d) ", local_bus, local_dev, PCI_BUS(bdf), PCI_DEV(bdf), PCI_FUNC(bdf)); - debug("(addr,val)=(0x%04x, 0x%08lx)\n", offset, value); + debug("(addr,size,val)=(0x%04x, %d, 0x%08lx)\n", offset, size, value); /* Don't access the local host controller via this API */ if (PCI_BUS(bdf) == local_bus && PCI_DEV(bdf) == local_dev) { |