[PATCH 0/3] Add early console functionality

Jinglin Wen posted 3 patches 1 year, 10 months ago
MAINTAINERS                            |   6 ++
arch/riscv/include/asm/early_console.h |  23 ++++++
arch/riscv/kernel/Makefile             |   1 +
arch/riscv/kernel/early_console.c      | 108 +++++++++++++++++++++++++
arch/riscv/kernel/setup.c              |   2 +
drivers/tty/hvc/Kconfig                |  12 +++
drivers/tty/hvc/hvc_riscv_sbi.c        |  29 +++++++
7 files changed, 181 insertions(+)
create mode 100644 arch/riscv/include/asm/early_console.h
create mode 100644 arch/riscv/kernel/early_console.c
[PATCH 0/3] Add early console functionality
Posted by Jinglin Wen 1 year, 10 months ago
The following patch series implements support for the early
console on the RISC-V platform.

Jinglin Wen (3):
  riscv: Support for early console.
  riscv: Support SBI as the interface for the RISC-V early console
  riscv: Add information for MAINTAINERS

 MAINTAINERS                            |   6 ++
 arch/riscv/include/asm/early_console.h |  23 ++++++
 arch/riscv/kernel/Makefile             |   1 +
 arch/riscv/kernel/early_console.c      | 108 +++++++++++++++++++++++++
 arch/riscv/kernel/setup.c              |   2 +
 drivers/tty/hvc/Kconfig                |  12 +++
 drivers/tty/hvc/hvc_riscv_sbi.c        |  29 +++++++
 7 files changed, 181 insertions(+)
 create mode 100644 arch/riscv/include/asm/early_console.h
 create mode 100644 arch/riscv/kernel/early_console.c

-- 
2.25.1
Re: [PATCH 0/3] Add early console functionality
Posted by Björn Töpel 1 year, 10 months ago
Jinglin Wen <jinglin.wen@shingroup.cn> writes:

> The following patch series implements support for the early
> console on the RISC-V platform.

I fail to see how this is different from earlycon=sbi?


Björn
Re: [PATCH 0/3] Add early console functionality
Posted by Jinglin Wen 1 year, 10 months ago
Thank you for taking the time to review this patch.

Bjorn <bjorn@kernel.org> writes:
> Jinglin Wen <jinglin.wen@shingroup.cn> writes:
> 
> > The following patch series implements support for the early
> > console on the RISC-V platform.
> 
> I fail to see how this is different from earlycon=3Dsbi

Yep, you are right, this patch duplicates the functionality of
earlycon=sbi, and should be discarded.

Thanks,

Jinglin Wen