aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2019-04-11 16:45:38 +0200
committerStewart Smith <stewart@linux.ibm.com>2019-05-20 14:20:29 +1000
commitd1a556881a71a62db891064060cb565e6c7a4d1c (patch)
tree46960121235625e7f629d052317bfd6ef61fa4fa
parent27243a37469f325499cae470db8e52af8296bd93 (diff)
downloadskiboot-d1a556881a71a62db891064060cb565e6c7a4d1c.zip
skiboot-d1a556881a71a62db891064060cb565e6c7a4d1c.tar.gz
skiboot-d1a556881a71a62db891064060cb565e6c7a4d1c.tar.bz2
nx: remove check on the "qemu, powernv" property
commit 95f7b3b9698b ("nx: Don't abort on missing NX when using a QEMU machine") introduced a check on the property "qemu,powernv" to skip NX initialization when running under a QEMU machine. The QEMU platforms now expose a QUIRK_NO_RNG in the chip. Testing the "qemu,powernv" property is not necessary anymore. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--hw/nx.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/nx.c b/hw/nx.c
index d3746ae..9a4a9b1 100644
--- a/hw/nx.c
+++ b/hw/nx.c
@@ -44,11 +44,7 @@ static void p9_darn_init(void)
*/
dt_for_each_compatible(dt_root, nx, "ibm,power9-nx")
break;
- if (!nx) {
- if (!dt_node_is_compatible(dt_root, "qemu,powernv"))
- assert(nx);
- return;
- }
+ assert(nx);
phys_map_get(dt_get_chip_id(nx), NX_RNG, 0, &default_bar, NULL);