Skip to content

Commit 6d582d7

Browse files
committed
Merge branch 'acpica'
* acpica: ACPICA: Update version to 20200214 ACPICA: Fix a couple of typos ACPICA: use acpi_size instead of u32 for prefix_path_length ACPICA: cast length arguement to acpi_ns_build_normalized_path() as u32 ACPICA: cast the result of the pointer difference to u32 ACPICA: Table Manager: Update comments in a function header ACPICA: Enable sleep button on ACPI legacy wake ACPICA: Fix a comment "enable" fixed events -> "disable" all fixed events. ACPICA: ASL-ASL+ converter: make root file a parameter for cv_init_file_tree ACPICA: ASL-ASL+ converter: remove function parameters from cv_init_file_tree()
2 parents ecb9c79 + c7be17a commit 6d582d7

File tree

10 files changed

+29
-19
lines changed

10 files changed

+29
-19
lines changed

drivers/acpi/acpica/acconvert.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ void cg_write_aml_comment(union acpi_parse_object *op);
6565
/*
6666
* cvparser
6767
*/
68-
void
69-
cv_init_file_tree(struct acpi_table_header *table,
70-
u8 *aml_start, u32 aml_length);
68+
void cv_init_file_tree(struct acpi_table_header *table, FILE * root_file);
7169

7270
void cv_clear_op_comments(union acpi_parse_object *op);
7371

drivers/acpi/acpica/acmacros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@
477477
#define ASL_CV_PRINT_ONE_COMMENT(a,b,c,d) cv_print_one_comment_type (a,b,c,d);
478478
#define ASL_CV_PRINT_ONE_COMMENT_LIST(a,b) cv_print_one_comment_list (a,b);
479479
#define ASL_CV_FILE_HAS_SWITCHED(a) cv_file_has_switched(a)
480-
#define ASL_CV_INIT_FILETREE(a,b,c) cv_init_file_tree(a,b,c);
480+
#define ASL_CV_INIT_FILETREE(a,b) cv_init_file_tree(a,b);
481481

482482
#else
483483

@@ -492,7 +492,7 @@
492492
#define ASL_CV_PRINT_ONE_COMMENT(a,b,c,d)
493493
#define ASL_CV_PRINT_ONE_COMMENT_LIST(a,b)
494494
#define ASL_CV_FILE_HAS_SWITCHED(a) 0
495-
#define ASL_CV_INIT_FILETREE(a,b,c)
495+
#define ASL_CV_INIT_FILETREE(a,b)
496496

497497
#endif
498498

drivers/acpi/acpica/evevent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static acpi_status acpi_ev_fixed_event_initialize(void)
130130

131131
/*
132132
* Initialize the structure that keeps track of fixed event handlers and
133-
* enable the fixed events.
133+
* disable all of the fixed events.
134134
*/
135135
for (i = 0; i < ACPI_NUM_FIXED_EVENTS; i++) {
136136
acpi_gbl_fixed_event_handlers[i].handler = NULL;

drivers/acpi/acpica/hwsleep.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,18 @@ acpi_status acpi_hw_legacy_wake(u8 sleep_state)
300300
[ACPI_EVENT_POWER_BUTTON].
301301
status_register_id, ACPI_CLEAR_STATUS);
302302

303+
/* Enable sleep button */
304+
305+
(void)
306+
acpi_write_bit_register(acpi_gbl_fixed_event_info
307+
[ACPI_EVENT_SLEEP_BUTTON].
308+
enable_register_id, ACPI_ENABLE_EVENT);
309+
310+
(void)
311+
acpi_write_bit_register(acpi_gbl_fixed_event_info
312+
[ACPI_EVENT_SLEEP_BUTTON].
313+
status_register_id, ACPI_CLEAR_STATUS);
314+
303315
acpi_hw_execute_sleep_method(METHOD_PATHNAME__SST, ACPI_SST_WORKING);
304316
return_ACPI_STATUS(status);
305317
}

drivers/acpi/acpica/nsnames.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ acpi_ns_handle_to_pathname(acpi_handle target_handle,
164164
/* Build the path in the caller buffer */
165165

166166
(void)acpi_ns_build_normalized_path(node, buffer->pointer,
167-
required_size, no_trailing);
167+
(u32)required_size, no_trailing);
168168

169169
ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "%s [%X]\n",
170170
(char *)buffer->pointer, (u32) required_size));
@@ -315,7 +315,7 @@ char *acpi_ns_get_normalized_pathname(struct acpi_namespace_node *node,
315315

316316
/* Build the path in the allocated buffer */
317317

318-
(void)acpi_ns_build_normalized_path(node, name_buffer, size,
318+
(void)acpi_ns_build_normalized_path(node, name_buffer, (u32)size,
319319
no_trailing);
320320

321321
ACPI_DEBUG_PRINT_RAW((ACPI_DB_NAMES, "%s: Path \"%s\"\n",
@@ -346,7 +346,7 @@ char *acpi_ns_build_prefixed_pathname(union acpi_generic_state *prefix_scope,
346346
char *full_path = NULL;
347347
char *external_path = NULL;
348348
char *prefix_path = NULL;
349-
u32 prefix_path_length = 0;
349+
acpi_size prefix_path_length = 0;
350350

351351
/* If there is a prefix, get the pathname to it */
352352

drivers/acpi/acpica/nsxfname.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ acpi_status acpi_install_method(u8 *buffer)
516516

517517
method_flags = *parser_state.aml++;
518518
aml_start = parser_state.aml;
519-
aml_length = ACPI_PTR_DIFF(parser_state.pkg_end, aml_start);
519+
aml_length = (u32)ACPI_PTR_DIFF(parser_state.pkg_end, aml_start);
520520

521521
/*
522522
* Allocate resources up-front. We don't want to have to delete a new

drivers/acpi/acpica/tbxface.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,14 +202,14 @@ ACPI_EXPORT_SYMBOL_INIT(acpi_reallocate_root_table)
202202
*
203203
* PARAMETERS: signature - ACPI signature of needed table
204204
* instance - Which instance (for SSDTs)
205-
* out_table_header - The pointer to the table header to fill
205+
* out_table_header - The pointer to the where the table header
206+
* is returned
206207
*
207-
* RETURN: Status and pointer to mapped table header
208+
* RETURN: Status and a copy of the table header
208209
*
209-
* DESCRIPTION: Finds an ACPI table header.
210-
*
211-
* NOTE: Caller is responsible in unmapping the header with
212-
* acpi_os_unmap_memory
210+
* DESCRIPTION: Finds and returns an ACPI table header. Caller provides the
211+
* memory where a copy of the header is to be returned
212+
* (fixed length).
213213
*
214214
******************************************************************************/
215215
acpi_status

drivers/acpi/acpica/utobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ acpi_ut_get_element_length(u8 object_type,
4444
*
4545
* NOTE: We always allocate the worst-case object descriptor because
4646
* these objects are cached, and we want them to be
47-
* one-size-satisifies-any-request. This in itself may not be
47+
* one-size-satisfies-any-request. This in itself may not be
4848
* the most memory efficient, but the efficiency of the object
4949
* cache should more than make up for this!
5050
*

include/acpi/acpixf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/* Current ACPICA subsystem version in YYYYMMDD format */
1414

15-
#define ACPI_CA_VERSION 0x20200110
15+
#define ACPI_CA_VERSION 0x20200214
1616

1717
#include <acpi/acconfig.h>
1818
#include <acpi/actypes.h>

include/acpi/actbl1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ enum acpi_erst_instructions {
862862
/* Command status return values */
863863

864864
enum acpi_erst_command_status {
865-
ACPI_ERST_SUCESS = 0,
865+
ACPI_ERST_SUCCESS = 0,
866866
ACPI_ERST_NO_SPACE = 1,
867867
ACPI_ERST_NOT_AVAILABLE = 2,
868868
ACPI_ERST_FAILURE = 3,

0 commit comments

Comments
 (0)