diff options
| author | Paul Mackerras <paulus@samba.org> | 2006-02-06 18:43:36 -0500 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2006-02-06 18:43:36 -0500 |
| commit | 6cb6524d90b6e5497e79a1474bdb2f26755d1c02 (patch) | |
| tree | fd475ac8f57a6bd39c976056324d1bc79d11b4c9 /drivers/acpi/dispatcher/dsinit.c | |
| parent | 837e9594fc3cb9a06bddd7ecf66151334a2e13d2 (diff) | |
| parent | 410c05427a69f53851637ccb85c2212131409fbd (diff) | |
Merge ../linux-2.6
Diffstat (limited to 'drivers/acpi/dispatcher/dsinit.c')
| -rw-r--r-- | drivers/acpi/dispatcher/dsinit.c | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/drivers/acpi/dispatcher/dsinit.c b/drivers/acpi/dispatcher/dsinit.c index 8693c704aea6..e65a07ad2422 100644 --- a/drivers/acpi/dispatcher/dsinit.c +++ b/drivers/acpi/dispatcher/dsinit.c | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
| 9 | * All rights reserved. | 9 | * All rights reserved. |
| 10 | * | 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
| @@ -84,7 +84,7 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
| 84 | acpi_object_type type; | 84 | acpi_object_type type; |
| 85 | acpi_status status; | 85 | acpi_status status; |
| 86 | 86 | ||
| 87 | ACPI_FUNCTION_NAME("ds_init_one_object"); | 87 | ACPI_FUNCTION_ENTRY(); |
| 88 | 88 | ||
| 89 | /* | 89 | /* |
| 90 | * We are only interested in NS nodes owned by the table that | 90 | * We are only interested in NS nodes owned by the table that |
| @@ -105,11 +105,10 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
| 105 | 105 | ||
| 106 | status = acpi_ds_initialize_region(obj_handle); | 106 | status = acpi_ds_initialize_region(obj_handle); |
| 107 | if (ACPI_FAILURE(status)) { | 107 | if (ACPI_FAILURE(status)) { |
| 108 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 108 | ACPI_EXCEPTION((AE_INFO, status, |
| 109 | "Region %p [%4.4s] - Init failure, %s\n", | 109 | "During Region initialization %p [%4.4s]", |
| 110 | obj_handle, | 110 | obj_handle, |
| 111 | acpi_ut_get_node_name(obj_handle), | 111 | acpi_ut_get_node_name(obj_handle))); |
| 112 | acpi_format_exception(status))); | ||
| 113 | } | 112 | } |
| 114 | 113 | ||
| 115 | info->op_region_count++; | 114 | info->op_region_count++; |
| @@ -118,14 +117,6 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
| 118 | case ACPI_TYPE_METHOD: | 117 | case ACPI_TYPE_METHOD: |
| 119 | 118 | ||
| 120 | /* | 119 | /* |
| 121 | * Print a dot for each method unless we are going to print | ||
| 122 | * the entire pathname | ||
| 123 | */ | ||
| 124 | if (!(acpi_dbg_level & ACPI_LV_INIT_NAMES)) { | ||
| 125 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, ".")); | ||
| 126 | } | ||
| 127 | |||
| 128 | /* | ||
| 129 | * Set the execution data width (32 or 64) based upon the | 120 | * Set the execution data width (32 or 64) based upon the |
| 130 | * revision number of the parent ACPI table. | 121 | * revision number of the parent ACPI table. |
| 131 | * TBD: This is really for possible future support of integer width | 122 | * TBD: This is really for possible future support of integer width |
| @@ -134,6 +125,21 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
| 134 | if (info->table_desc->pointer->revision == 1) { | 125 | if (info->table_desc->pointer->revision == 1) { |
| 135 | node->flags |= ANOBJ_DATA_WIDTH_32; | 126 | node->flags |= ANOBJ_DATA_WIDTH_32; |
| 136 | } | 127 | } |
| 128 | #ifdef ACPI_INIT_PARSE_METHODS | ||
| 129 | /* | ||
| 130 | * Note 11/2005: Removed this code to parse all methods during table | ||
| 131 | * load because it causes problems if there are any errors during the | ||
| 132 | * parse. Also, it seems like overkill and we probably don't want to | ||
| 133 | * abort a table load because of an issue with a single method. | ||
| 134 | */ | ||
| 135 | |||
| 136 | /* | ||
| 137 | * Print a dot for each method unless we are going to print | ||
| 138 | * the entire pathname | ||
| 139 | */ | ||
| 140 | if (!(acpi_dbg_level & ACPI_LV_INIT_NAMES)) { | ||
| 141 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, ".")); | ||
| 142 | } | ||
| 137 | 143 | ||
| 138 | /* | 144 | /* |
| 139 | * Always parse methods to detect errors, we will delete | 145 | * Always parse methods to detect errors, we will delete |
| @@ -141,15 +147,15 @@ acpi_ds_init_one_object(acpi_handle obj_handle, | |||
| 141 | */ | 147 | */ |
| 142 | status = acpi_ds_parse_method(obj_handle); | 148 | status = acpi_ds_parse_method(obj_handle); |
| 143 | if (ACPI_FAILURE(status)) { | 149 | if (ACPI_FAILURE(status)) { |
| 144 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, | 150 | ACPI_ERROR((AE_INFO, |
| 145 | "\n+Method %p [%4.4s] - parse failure, %s\n", | 151 | "Method %p [%4.4s] - parse failure, %s", |
| 146 | obj_handle, | 152 | obj_handle, |
| 147 | acpi_ut_get_node_name(obj_handle), | 153 | acpi_ut_get_node_name(obj_handle), |
| 148 | acpi_format_exception(status))); | 154 | acpi_format_exception(status))); |
| 149 | 155 | ||
| 150 | /* This parse failed, but we will continue parsing more methods */ | 156 | /* This parse failed, but we will continue parsing more methods */ |
| 151 | } | 157 | } |
| 152 | 158 | #endif | |
| 153 | info->method_count++; | 159 | info->method_count++; |
| 154 | break; | 160 | break; |
| 155 | 161 | ||
| @@ -207,8 +213,7 @@ acpi_ds_initialize_objects(struct acpi_table_desc * table_desc, | |||
| 207 | status = acpi_walk_namespace(ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, | 213 | status = acpi_walk_namespace(ACPI_TYPE_ANY, start_node, ACPI_UINT32_MAX, |
| 208 | acpi_ds_init_one_object, &info, NULL); | 214 | acpi_ds_init_one_object, &info, NULL); |
| 209 | if (ACPI_FAILURE(status)) { | 215 | if (ACPI_FAILURE(status)) { |
| 210 | ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "walk_namespace failed, %s\n", | 216 | ACPI_EXCEPTION((AE_INFO, status, "During walk_namespace")); |
| 211 | acpi_format_exception(status))); | ||
| 212 | } | 217 | } |
| 213 | 218 | ||
| 214 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, | 219 | ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT, |
