bus/pci: set Windows device class and bus
authorNick Connolly <nick.connolly@mayadata.io>
Mon, 1 Mar 2021 09:56:44 +0000 (09:56 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Mar 2021 15:55:23 +0000 (16:55 +0100)
commitd9b02d2b397cc781859dfe2efb1e1bcb72f2e196
tree4c6dbeacc183f6ff081f3fb08853dd92c217fe29
parentde04405b336ed01e234db39fc211b4592b79c2b3
bus/pci: set Windows device class and bus

Attaching to an NVMe disk on Windows using SPDK requires the
PCI class ID and device.bus fields. Decode the class ID from the PCI
device info strings if it is present and set device.bus.

Signed-off-by: Nick Connolly <nick.connolly@mayadata.io>
Acked-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
drivers/bus/pci/windows/pci.c