]> git.baikalelectronics.ru Git - kernel.git/commit
power: reset: syscon-reboot: add a mask property
authorMartin Schiller <ms@dev.tdt.de>
Fri, 8 Mar 2019 07:49:30 +0000 (08:49 +0100)
committerSebastian Reichel <sre@kernel.org>
Fri, 5 Apr 2019 13:06:57 +0000 (15:06 +0200)
commit0aded6dafb49e365be27fe0ec03272391d7381fd
treea666b171136300537e7ccdc31af9d292d7322aa0
parent805099b2fb57eba3d69bc38aeb447dfe76b0ebb9
power: reset: syscon-reboot: add a mask property

Make the syscon-reboot driver accept value and mask instead of
just value.

Prior to this patch, the property name for the value was 'mask'. If
only the mask property is defined on a node, maintain compatibility
by using it as the value.

This patch is based on commit
410fb996c638 ("power: reset: syscon-poweroff: add a mask property")
and does the same change for the syscon-reboot driver.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Documentation/devicetree/bindings/power/reset/syscon-reboot.txt
drivers/power/reset/syscon-reboot.c