u-boot/drivers/nvme
Bin Meng e5dc2d2665 nvme: Fix getting PCI vendor id of the NVMe block device
The codes currently try to read PCI vendor id of the NVMe block
device by dm_pci_read_config16() with its parameter set as its
root complex controller (ndev->pdev) instead of itself. This is
seriously wrong. We can read the vendor id by passing the correct
udevice parameter to the dm_pci_read_config16() API, however there
is a shortcut by reading the cached vendor id from the PCI device's
struct pci_child_platdata.

While we are here fixing this bug, apparently the quirk stuff handle
codes in nvme_get_info_from_identify() never takes effect since its
logic has never been true at all. Remove these codes completely.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
2017-08-28 07:17:10 -04:00
..
Kconfig nvme: Add NVM Express driver support 2017-08-13 15:17:31 -04:00
Makefile nvme: Add show routine to print detailed information 2017-08-13 15:17:31 -04:00
nvme-uclass.c nvme: Add NVM Express driver support 2017-08-13 15:17:31 -04:00
nvme.c nvme: Fix getting PCI vendor id of the NVMe block device 2017-08-28 07:17:10 -04:00
nvme.h nvme: Fix getting PCI vendor id of the NVMe block device 2017-08-28 07:17:10 -04:00
nvme_show.c nvme: Add show routine to print detailed information 2017-08-13 15:17:31 -04:00