]> git.dujemihanovic.xyz Git - u-boot.git/commit
sysreset: syscon: Don't assume default value for offset and mask property
authorBin Meng <bin.meng@windriver.com>
Tue, 23 Jun 2020 05:29:42 +0000 (22:29 -0700)
committerAndes <uboot@andestech.com>
Fri, 24 Jul 2020 06:55:43 +0000 (14:55 +0800)
commit1ce8182b0f7254d0d01e309341c35bbc1b8c10e4
treefb52a4d8d12126fab3b340f562dfe5034eb2a8ae
parent265d46ba137c59f83c9d2c86900960415292dbed
sysreset: syscon: Don't assume default value for offset and mask property

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@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com>
drivers/sysreset/sysreset_syscon.c