]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
soc: qcom: rpmh: Dirt can only make you dirtier, not cleaner
authorDouglas Anderson <dianders@chromium.org>
Fri, 17 Apr 2020 21:15:47 +0000 (14:15 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commit680ceab310701502ce649d75676475588363fc73
treee9f0e9c2f157f57bf31183873242dddf000f2387
parent2e71a0e0195367559deb3f5e0d6e78bc2d2e203a
soc: qcom: rpmh: Dirt can only make you dirtier, not cleaner

BugLink: https://bugs.launchpad.net/bugs/1889669
commit 35bb4b22f606c0cc8eedf567313adc18161b1af4 upstream.

Adding an item into the cache should never be able to make the cache
cleaner.  Use "|=" rather than "=" to update the dirty flag.

Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Maulik Shah <mkshah@codeaurora.org> Thanks, Maulik
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Fixes: bb7000677a1b ("soc: qcom: rpmh: Update dirty flag only when data changes")
Reported-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200417141531.1.Ia4b74158497213eabad7c3d474c50bfccb3f342e@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/soc/qcom/rpmh.c