mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 00:36:40 +09:00
powerpc/pseries: Avoid spurious error during hotplug CPU add
commit 9c740025c5 upstream.
During hotplug CPU add we get the following error:
Unexpected Error (0) returned from configure-connector
ibm,configure-connector returns 0 for configuration complete, so
catch this and avoid the error.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
7bd46f2287
commit
488d4d2d0a
@@ -112,6 +112,7 @@ void dlpar_free_cc_nodes(struct device_node *dn)
|
||||
dlpar_free_one_cc_node(dn);
|
||||
}
|
||||
|
||||
#define COMPLETE 0
|
||||
#define NEXT_SIBLING 1
|
||||
#define NEXT_CHILD 2
|
||||
#define NEXT_PROPERTY 3
|
||||
@@ -158,6 +159,9 @@ struct device_node *dlpar_configure_connector(u32 drc_index)
|
||||
spin_unlock(&rtas_data_buf_lock);
|
||||
|
||||
switch (rc) {
|
||||
case COMPLETE:
|
||||
break;
|
||||
|
||||
case NEXT_SIBLING:
|
||||
dn = dlpar_parse_cc_node(ccwa);
|
||||
if (!dn)
|
||||
|
||||
Reference in New Issue
Block a user