ACPI: SPCR: Add support for DBG2 RISC-V SBI port subtype
authorChen Pei <cp0613@linux.alibaba.com>
Wed, 10 Sep 2025 09:41:36 +0000 (17:41 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Sep 2025 19:37:40 +0000 (21:37 +0200)
commitbf4206d7ac278bbd1eb2cf02d25486c2cc61b298
treeb1ea6b480328da534113d9f94307db75432706c9
parentf83ec76bf285bea5727f478a68b894f5543ca76e
ACPI: SPCR: Add support for DBG2 RISC-V SBI port subtype

Commit 4aca2bef90bd1296 ("ACPICA: Headers: Add RISC-V SBI Subtype to
DBG2") added the definition of ACPI_DBG2_RISCV_SBI_CON.

Continue to implement its function so that the parameters of UART can
be configured correctly.

Subsequent calls to setup_earlycon() will reuse the earlycon based on
SBI.

Signed-off-by: Chen Pei <cp0613@linux.alibaba.com>
Reviewed-by: Guo Ren (Alibaba Damo Academy) <guoren@kernel.org>
Link: https://patch.msgid.link/20250910094136.4423-1-cp0613@linux.alibaba.com
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/spcr.c