Skip to content

Commit

Permalink
powerpc/pseries: Avoid spurious error during hotplug CPU add
Browse files Browse the repository at this point in the history
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>
Cc: <stable@kernel.org>
  • Loading branch information
Anton Blanchard authored and Benjamin Herrenschmidt committed Sep 19, 2011
1 parent 0330581 commit 9c74002
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/platforms/pseries/dlpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9c74002

Please sign in to comment.