[PATCH/RESEND] tty: serial: msm: Add DT based earlycon support

Rob Herring robh at kernel.org
Thu Sep 11 18:56:12 PDT 2014


On Thu, Sep 11, 2014 at 5:14 PM, Stephen Boyd <sboyd at codeaurora.org> wrote:
> Add support for DT based early console on platforms with the msm
> serial hardware.
>
> Cc: Rob Herring <robh at kernel.org>
> Signed-off-by: Stephen Boyd <sboyd at codeaurora.org>

One comment, but looks good to me.

Acked-by: Rob Herring <robh at kernel.org>

> +static int __init
> +msm_serial_early_console_setup(struct earlycon_device *device, const char *opt)
> +{
> +       if (!device->port.membase)
> +               return -ENODEV;
> +
> +       device->con->write = msm_serial_early_write;
> +       return 0;
> +}
> +OF_EARLYCON_DECLARE(msm_serial, "qcom,msm-uart",
> +                   msm_serial_early_console_setup);

Don't you want to support kernel command line as well? Then if you
can't change the DT or bootloader's command line, you can add it into
the kernel build with the appended command line. Don't forget to
document it in kernel-parameters.txt if you do.

Rob



More information about the linux-arm-kernel mailing list