]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
spmi: pmic-arb: correct duplicate APID to PPID mapping logic
authorDavid Collins <collinsd@codeaurora.org>
Fri, 30 Sep 2022 00:50:16 +0000 (17:50 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 24 Nov 2022 13:24:44 +0000 (14:24 +0100)
commitabb0b51ad56257199d705b397d5588d08d3e6202
tree8210807b035601fd13f42ba874d08a53c82e5085
parentd5a9ec4468c9e0ccb1d994605a9971712b19b043
spmi: pmic-arb: correct duplicate APID to PPID mapping logic

BugLink: https://bugs.launchpad.net/bugs/1996825
[ Upstream commit 1f1693118c2476cb1666ad357edcf3cf48bf9b16 ]

Correct the way that duplicate PPID mappings are handled for PMIC
arbiter v5.  The final APID mapped to a given PPID should be the
one which has write owner = APPS EE, if it exists, or if not
that, then the first APID mapped to the PPID, if it exists.

Fixes: 40f318f0ed67 ("spmi: pmic-arb: add support for HW version 5")
Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Link: https://lore.kernel.org/r/1655004286-11493-7-git-send-email-quic_fenglinw@quicinc.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20220930005019.2663064-8-sboyd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/spmi/spmi-pmic-arb.c