Re: [PATCH] arch: riscv: support kernel command line forcing when no DTB passed

Christoph Hellwig
2019-01-15T15:44:58Z

On Mon, Dec 17, 2018 at 07:15:12PM -0800, Paul Walmsley wrote:
>
> CONFIG_CMDLINE_FORCE doesn't work on RISC-V when no DTB is passed into
> the kernel. This is because the code that forces the kernel command
> line only runs if a valid DTB is present at boot. During debugging,
> it's useful to have the ability to force kernel command lines even
> when no DTB is present. This patch adds support for doing so.

This looks fine to me:

Reviewed-by: Christoph Hellwig <hch@lst.de>

I just wish all this command line magic could be moved to common
code somewhere instead of being reinvented badly in every port..