memory: renesas-rpc-if: avoid use of undocumented bits
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 17 Nov 2021 09:37:10 +0000 (10:37 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 22 Nov 2021 09:53:01 +0000 (10:53 +0100)
commit57ea9daad51f7707f61a602a743decf10cf9fea9
tree9831ee7e035a12e2af8cc16e7631c45c1fe5bc91
parent2db468d6fda4c33d26ba9dde7c72e081b2b86ad1
memory: renesas-rpc-if: avoid use of undocumented bits

Instead of writing fixed values with undocumented bits which happen to
be set on some SoCs, better switch to read-modify-write operations
changing only bits which are documented. This is way more future-proof
as we don't know yet how these bits may be on upcoming SoCs.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20211117093710.14430-1-wsa+renesas@sang-engineering.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/renesas-rpc-if.c