power: reset: qcom-pon: reg write mask depends on pon generation
authorKejia Hu <kejia.hu@codethink.co.uk>
Tue, 28 Apr 2020 07:04:37 +0000 (08:04 +0100)
committerSebastian Reichel <sre@kernel.org>
Tue, 28 Apr 2020 19:16:45 +0000 (21:16 +0200)
commitfc5be29f9b2cd9fc7243bf3c26ed042f2868fa8b
treeaaf2a728ab76206693341d7f4ad790249438f700
parent164eaf6b435c31d98fdabe0151e979fa0b4280a0
power: reset: qcom-pon: reg write mask depends on pon generation

Instead of hardcode the mask, it should be depends
on which generation of pon it was.

Signed-off-by: Kejia Hu <kejia.hu@codethink.co.uk>
Fixes: fce5430f6a86 ("reset: qcom-pon: Add support for gen2 pon")
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/qcom-pon.c