ppc/pnv: Use the chip class to check the index of PHB3 devices
commita8fa95c7e621d3cd0dddb653b4f894fac65dec19
authorCédric Le Goater <clg@kaod.org>
Fri, 17 Dec 2021 16:57:19 +0000 (17 17:57 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 17 Dec 2021 16:57:19 +0000 (17 17:57 +0100)
treeb2ee9d510e748c4d1df852e8870c1ccabbf66168
parent2c4d3a501e55bb90f90577b2e3f0181dc89efd42
ppc/pnv: Use the chip class to check the index of PHB3 devices

The maximum number of PHB3 devices per chip can be different depending
on the POWER8 processor model.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20211213132830.108372-4-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/pci-host/pnv_phb3.c