Skip to content

Earlycon cleanup

Peter Hurley linux-serial lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest12 patches 2 repliesIn review
  2. v511 patches 0 repliesSuperseded
  3. v411 patches 10 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v313 patches8 repliesSuperseded
v214 patches0 repliesSuperseded
v112 patches8 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12of: earlycon: of_setup_earlycon() requires CONFIG_OF_EARLY_FLATTREEdrivers/tty/serial/earlycon.c+4 -00 replies
2/12earlycon: Use common framework for earlycon declarationsdrivers/of/fdt.c drivers/tty/serial/amba-pl011.c drivers/tty/serial/arc_uart.c +6 more+23 -410 replies
3/12serial: earlycon: Fixup earlycon console name and indexdrivers/tty/serial/earlycon.c+22 -30 replies
4/12of: earlycon: Fixup earlycon console name and indexdrivers/of/fdt.c drivers/tty/serial/earlycon.c include/linux/serial_core.h+5 -60 replies
5/12of: earlycon: Add options string handlingdrivers/of/fdt.c drivers/tty/serial/earlycon.c include/linux/serial_core.h+15 -80 replies
6/12of: earlycon: Initialize port fields from DT propertiesdrivers/of/fdt.c drivers/tty/serial/earlycon.c include/linux/serial_core.h+33 -10 replies
7/12of: earlycon: Move address translation to of_setup_earlycon()drivers/of/fdt.c drivers/of/fdt_address.c drivers/tty/serial/earlycon.c +2 more+22 -130 replies
8/12serial: earlycon: Common log banner for command line and DTdrivers/tty/serial/earlycon.c+14 -130 replies
9/12serial: earlycon: Show the earlycon "driver" in bannerdrivers/tty/serial/earlycon.c+6 -60 replies
10/12serial: 8250_early: Use port->regshiftdrivers/tty/serial/8250/8250_early.c+10 -60 replies
11/12of: earlycon: Log more helpful message if stdout-path node not founddrivers/of/fdt.c+6 -30 replies
12/12serial: 8250_omap: Add omap8250 earlycondrivers/tty/serial/8250/8250_early.c+21 -00 replies

Reviews trailers per patch

10 of 12 patches have a Reviewed-by or Acked-by.

PatchRob Herring
1/12
2/12A-b
3/12A-b
4/12A-b
5/12A-b
6/12A-b
7/12A-b
8/12A-b
9/12A-b
10/12A-b
11/12A-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 00/12] Earlycon cleanup

Hi Greg, Grant & Rob,

This patch series is a rebase of the v3 from April last year.

This patch series builds on my earlier "Extensible console matching & direct earlycon" to add several useful features to earlycon:
* Proper port i/o configuration from DT node with of_serial properties (such as reg-io-width, reg-shift and reg-offset, and endianness)
* Proper console name & index initialization from earlycon name (for both command line and DT-defined earlycons)
* Support for DT 'stdout-path' options pass-through to earlycon setup
* Improved log messages for troubleshooting
* Support for multiple OF earlycon declarations so different compatible strings can specify the same OF earlycon

* Changes from v3
- Added 32-bit big-endian support
- Removed the omap8250 earlycon (will follow later)
* Changes from v4
- Rolled in Rob's acks (thanks for reviewing this series)
- Removed the conditional guard of of_fdt.h header inclusion (Rob's comment)
- Left in the omap8250 earlycon (rebased w/o the wip so applies cleanly)
* Changes from v5
- Builds :/
"of: earlycon: of_setup_earlycon() requires CONFIG_OF_EARLY_FLATREE" didn't make it into v4 so I left it out of v5. That'll teach me.

Regards,

Peter Hurley (12):
of: earlycon: of_setup_earlycon() requires CONFIG_OF_EARLY_FLATTREE
earlycon: Use common framework for earlycon declarations
serial: earlycon: Fixup earlycon console name and index
of: earlycon: Fixup earlycon console name and index
of: earlycon: Add options string handling
of: earlycon: Initialize port fields from DT properties
of: earlycon: Move address translation to of_setup_earlycon()
serial: earlycon: Common log banner for command line and DT
serial: earlycon: Show the earlycon "driver" in banner
serial: 8250_early: Use port->regshift
of: earlycon: Log more helpful message if stdout-path node not found
serial: 8250_omap: Add omap8250 earlycon

 drivers/of/fdt.c                     |  32 +++++-----
 drivers/of/fdt_address.c             |  11 +++-
 drivers/tty/serial/8250/8250_early.c |  37 +++++++++--
 drivers/tty/serial/amba-pl011.c      |   1 -
 drivers/tty/serial/arc_uart.c        |   1 -
 drivers/tty/serial/earlycon.c        | 118 ++++++++++++++++++++++++++---------
 drivers/tty/serial/msm_serial.c      |   2 -
 drivers/tty/serial/samsung.c         |   6 --
 drivers/tty/serial/sprd_serial.c     |   2 -
 include/asm-generic/vmlinux.lds.h    |   6 +-
 include/linux/of_fdt.h               |   2 +-
 include/linux/serial_core.h          |  25 +++++---
 12 files changed, 162 insertions(+), 81 deletions(-)
Signature · 1 line
2.7.0