coreboot/src/device
Kyösti Mälkki f2ac013756 soc/intel: Fix regression with hidden PCI devices
Fix regression with commit
  903b40a soc/intel: Replace uses of dev_find_slot()

Platforms where FSP hides PCI devices before enumeration
may halt with error message 'PCI: dev is NULL!'.

The workaround here is to print an error message revealing
the faulty source code function and revert to old behaviour
of dev_find_slot().

Change-Id: I5eab3e7f1993b686103eaa257aacda379dc259fa
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34285
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Maxim Polyakov <max.senia.poliak@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Christian Walter <christian.walter@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-07-17 14:27:16 +00:00
..
dram device/dram: Inline value into print statement 2019-06-28 19:24:55 +00:00
oprom device/oprom: Replace uses of dev_find_slot() 2019-07-12 09:27:56 +00:00
azalia_device.c device/mmio.h: Add include file for MMIO ops 2019-03-04 15:57:39 +00:00
cardbus_device.c device/pci: Fix PCI accessor headers 2019-03-01 20:32:15 +00:00
cpu_device.c device/cpu_device.c: Use 'unsigned int' instead of 'unsigned' 2019-06-14 19:55:09 +00:00
device.c src/device: Prevent attack on null pointer dereference 2019-06-03 13:25:25 +00:00
device_const.c soc/intel: Fix regression with hidden PCI devices 2019-07-17 14:27:16 +00:00
device_util.c device/device_util: Fix encoding the USB device path 2019-07-13 18:29:47 +00:00
hypertransport.c device/hypertransport.c: Remove dead assignment 2019-07-13 18:37:31 +00:00
i2c.c Reinvent I2C ops 2017-08-18 15:33:45 +00:00
i2c_bus.c device/i2c_bus: allow i2c_bus and i2c_simple to coexist 2018-01-24 05:02:50 +00:00
Kconfig drivers/intel/gma: Make libgfxinit available w/o gfxinit 2019-03-27 08:30:40 +00:00
Makefile.inc device/pci: Rewrite PCI MMCONF with symbol reference 2019-04-07 02:31:36 +00:00
pci_class.c src: Drop unused 'include <device/pciexp.h>' 2019-03-16 11:46:38 +00:00
pci_device.c device: Remove device->ops from early stages 2019-07-15 17:44:08 +00:00
pci_early.c device/pci_ops: Define pci_find_capability() just once 2019-07-04 09:36:19 +00:00
pci_ops.c device/pci_ops: Define pci_find_capability() just once 2019-07-04 09:36:19 +00:00
pci_rom.c device/pci_rom.c: Fix indent for 'if' statement 2019-07-05 10:18:51 +00:00
pciexp_device.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
pcix_device.c device/pci: Fix PCI accessor headers 2019-03-01 20:32:15 +00:00
pnp_device.c src: Use 'include <string.h>' when appropriate 2019-03-20 20:27:51 +00:00
root_device.c coreboot: Replace all IS_ENABLED(CONFIG_XXX) with CONFIG(XXX) 2019-03-08 08:33:24 +00:00
smbus_ops.c device/smbus_ops.c: Get rid of device_t 2018-05-04 10:17:08 +00:00
software_i2c.c software_i2c: Improve error behavior 2018-05-02 00:23:30 +00:00