diff mbox series

[2/2] ACPI: SPCR: Add support for the new 16550-compatible Serial Port Subtype

Message ID 20210714214346.1397942-3-mw@semihalf.com
State Accepted
Commit 2aaea6a1647e887fe91ce3e0324e6be4362e5388
Headers show
Series ACPI: Update DBG2 Serial Port Subtypes list | expand

Commit Message

Marcin Wojtas July 14, 2021, 9:43 p.m. UTC
The Microsoft Debug Port Table 2 (DBG2) specification revision
May 31, 2017 added definition of the 16550-compatible Serial Port
Subtype with parameters defined in Generic Address Structure (GAS) [1]

Add its support in the SPCR table parsing routine.

[1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
---
 drivers/acpi/spcr.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Rafael J. Wysocki Aug. 16, 2021, 4:39 p.m. UTC | #1
On Wed, Jul 14, 2021 at 11:46 PM Marcin Wojtas <mw@semihalf.com> wrote:
>

> The Microsoft Debug Port Table 2 (DBG2) specification revision

> May 31, 2017 added definition of the 16550-compatible Serial Port

> Subtype with parameters defined in Generic Address Structure (GAS) [1]

>

> Add its support in the SPCR table parsing routine.

>

> [1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table

>

> Signed-off-by: Marcin Wojtas <mw@semihalf.com>

> ---

>  drivers/acpi/spcr.c | 1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/drivers/acpi/spcr.c b/drivers/acpi/spcr.c

> index 88460bacd5ae..25c2d0be953e 100644

> --- a/drivers/acpi/spcr.c

> +++ b/drivers/acpi/spcr.c

> @@ -136,6 +136,7 @@ int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)

>                 break;

>         case ACPI_DBG2_16550_COMPATIBLE:

>         case ACPI_DBG2_16550_SUBSET:

> +       case ACPI_DBG2_16550_WITH_GAS:

>                 uart = "uart";

>                 break;

>         default:

> --


Applied as 5.15 material, thanks!
diff mbox series

Patch

diff --git a/drivers/acpi/spcr.c b/drivers/acpi/spcr.c
index 88460bacd5ae..25c2d0be953e 100644
--- a/drivers/acpi/spcr.c
+++ b/drivers/acpi/spcr.c
@@ -136,6 +136,7 @@  int __init acpi_parse_spcr(bool enable_earlycon, bool enable_console)
 		break;
 	case ACPI_DBG2_16550_COMPATIBLE:
 	case ACPI_DBG2_16550_SUBSET:
+	case ACPI_DBG2_16550_WITH_GAS:
 		uart = "uart";
 		break;
 	default: