aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2017-04-26 04:17:56 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-04-26 18:30:59 -0400
commit1b8f77aa0deca22a995a4bdd65914aa24bda0386 (patch)
tree3867076d1295bab9aabec87214acf169f97b51ca
parenta20286249e4120c7997353ff8980248302c653b5 (diff)
ACPICA: Fix a module for excessive debug output
ACPICA commit 5ecc479f62a57ab1e9d25ec3b0b84682fdf8a543 hwvalid.c - no trace needed for validate I/O function. Link: https://github.com/acpica/acpica/commit/5ecc479f Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/acpi/acpica/hwvalid.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/acpica/hwvalid.c b/drivers/acpi/acpica/hwvalid.c
index 531620abed80..0b102e071802 100644
--- a/drivers/acpi/acpica/hwvalid.c
+++ b/drivers/acpi/acpica/hwvalid.c
@@ -102,7 +102,7 @@ static const struct acpi_port_info acpi_protected_ports[] = {
102 {"PCI", 0x0CF8, 0x0CFF, ACPI_OSI_WIN_XP} 102 {"PCI", 0x0CF8, 0x0CFF, ACPI_OSI_WIN_XP}
103}; 103};
104 104
105#define ACPI_PORT_INFO_ENTRIES ACPI_ARRAY_LENGTH (acpi_protected_ports) 105#define ACPI_PORT_INFO_ENTRIES ACPI_ARRAY_LENGTH (acpi_protected_ports)
106 106
107/****************************************************************************** 107/******************************************************************************
108 * 108 *
@@ -128,14 +128,14 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width)
128 acpi_io_address last_address; 128 acpi_io_address last_address;
129 const struct acpi_port_info *port_info; 129 const struct acpi_port_info *port_info;
130 130
131 ACPI_FUNCTION_TRACE(hw_validate_io_request); 131 ACPI_FUNCTION_NAME(hw_validate_io_request);
132 132
133 /* Supported widths are 8/16/32 */ 133 /* Supported widths are 8/16/32 */
134 134
135 if ((bit_width != 8) && (bit_width != 16) && (bit_width != 32)) { 135 if ((bit_width != 8) && (bit_width != 16) && (bit_width != 32)) {
136 ACPI_ERROR((AE_INFO, 136 ACPI_ERROR((AE_INFO,
137 "Bad BitWidth parameter: %8.8X", bit_width)); 137 "Bad BitWidth parameter: %8.8X", bit_width));
138 return (AE_BAD_PARAMETER); 138 return_ACPI_STATUS(AE_BAD_PARAMETER);
139 } 139 }
140 140
141 port_info = acpi_protected_ports; 141 port_info = acpi_protected_ports;
@@ -167,7 +167,7 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width)
167 for (i = 0; i < ACPI_PORT_INFO_ENTRIES; i++, port_info++) { 167 for (i = 0; i < ACPI_PORT_INFO_ENTRIES; i++, port_info++) {
168 /* 168 /*
169 * Check if the requested address range will write to a reserved 169 * Check if the requested address range will write to a reserved
170 * port. Four cases to consider: 170 * port. There are four cases to consider:
171 * 171 *
172 * 1) Address range is contained completely in the port address range 172 * 1) Address range is contained completely in the port address range
173 * 2) Address range overlaps port range at the port range start 173 * 2) Address range overlaps port range at the port range start
@@ -206,7 +206,7 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width)
206 * FUNCTION: acpi_hw_read_port 206 * FUNCTION: acpi_hw_read_port
207 * 207 *
208 * PARAMETERS: Address Address of I/O port/register to read 208 * PARAMETERS: Address Address of I/O port/register to read
209 * Value Where value is placed 209 * Value Where value (data) is returned
210 * Width Number of bits 210 * Width Number of bits
211 * 211 *
212 * RETURN: Status and value read from port 212 * RETURN: Status and value read from port
@@ -244,7 +244,7 @@ acpi_status acpi_hw_read_port(acpi_io_address address, u32 *value, u32 width)
244 /* 244 /*
245 * There has been a protection violation within the request. Fall 245 * There has been a protection violation within the request. Fall
246 * back to byte granularity port I/O and ignore the failing bytes. 246 * back to byte granularity port I/O and ignore the failing bytes.
247 * This provides Windows compatibility. 247 * This provides compatibility with other ACPI implementations.
248 */ 248 */
249 for (i = 0, *value = 0; i < width; i += 8) { 249 for (i = 0, *value = 0; i < width; i += 8) {
250 250
@@ -307,7 +307,7 @@ acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width)
307 /* 307 /*
308 * There has been a protection violation within the request. Fall 308 * There has been a protection violation within the request. Fall
309 * back to byte granularity port I/O and ignore the failing bytes. 309 * back to byte granularity port I/O and ignore the failing bytes.
310 * This provides Windows compatibility. 310 * This provides compatibility with other ACPI implementations.
311 */ 311 */
312 for (i = 0; i < width; i += 8) { 312 for (i = 0; i < width; i += 8) {
313 313