|
@@ -100,7 +100,6 @@ int __init early_init_dt_scan_opal(unsigned long node,
|
|
|
|
|
|
powerpc_firmware_features |= FW_FEATURE_OPAL;
|
|
|
if (of_flat_dt_is_compatible(node, "ibm,opal-v3")) {
|
|
|
- powerpc_firmware_features |= FW_FEATURE_OPALv2;
|
|
|
powerpc_firmware_features |= FW_FEATURE_OPALv3;
|
|
|
pr_info("OPAL V3 detected !\n");
|
|
|
} else {
|
|
@@ -349,7 +348,7 @@ int opal_put_chars(uint32_t vtermno, const char *data, int total_len)
|
|
|
* enough room and be done with it
|
|
|
*/
|
|
|
spin_lock_irqsave(&opal_write_lock, flags);
|
|
|
- if (firmware_has_feature(FW_FEATURE_OPALv2)) {
|
|
|
+ if (firmware_has_feature(FW_FEATURE_OPALv3)) {
|
|
|
rc = opal_console_write_buffer_space(vtermno, &olen);
|
|
|
len = be64_to_cpu(olen);
|
|
|
if (rc || len < total_len) {
|
|
@@ -693,10 +692,7 @@ static int __init opal_init(void)
|
|
|
}
|
|
|
|
|
|
/* Register OPAL consoles if any ports */
|
|
|
- if (firmware_has_feature(FW_FEATURE_OPALv2))
|
|
|
- consoles = of_find_node_by_path("/ibm,opal/consoles");
|
|
|
- else
|
|
|
- consoles = of_node_get(opal_node);
|
|
|
+ consoles = of_find_node_by_path("/ibm,opal/consoles");
|
|
|
if (consoles) {
|
|
|
for_each_child_of_node(consoles, np) {
|
|
|
if (strcmp(np->name, "serial"))
|