of: Support using 'mask' in making device bus id
authorRob Herring <robh@kernel.org>
Tue, 9 Nov 2021 16:46:49 +0000 (10:46 -0600)
committerRob Herring <robh@kernel.org>
Fri, 12 Nov 2021 04:27:16 +0000 (22:27 -0600)
commit68d16195b61c503551631ee059c3f65452c49b30
treec61a3ff5e68d01ef1887351344001ea3a4e67a85
parentf4eedebdbfbf42471d2d4a5364b0b92b4c15bf1d
of: Support using 'mask' in making device bus id

Commit 25b892b583cc ("ARM: dts: arm: Update register-bit-led nodes
'reg' and node names") added a 'reg' property to nodes. This change has
the side effect of changing how the kernel generates the device name.
The assumption was a translatable 'reg' address is unique. However, in
the case of the register-bit-led binding (and a few others) that is not
the case. The 'mask' property must also be used in this case to make a
unique device name.

Fixes: 25b892b583cc ("ARM: dts: arm: Update register-bit-led nodes 'reg' and node names")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org
Cc: Frank Rowand <frowand.list@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20211109164650.2233507-2-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/platform.c