[PATCH 1/5] sysreset: syscon: Don't assume default value for offset and mask property

Simon Glass sjg at chromium.org
Fri Jun 26 03:43:22 CEST 2020


On Mon, 22 Jun 2020 at 23:30, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> From: Bin Meng <bin.meng at windriver.com>
>
> Per the DT binding, <offset> is a required property. Let's abort
> the probe if it is missing. For the <mask> property, current codes
> assume a default value of zero, which is not correct either.
>
> Signed-off-by: Bin Meng <bin.meng at windriver.com>
> ---
>
>  drivers/sysreset/sysreset_syscon.c | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list