linux-stable/drivers/spmi
David Collins 484578e916 spmi: pmic-arb: correct duplicate APID to PPID mapping logic
[ Upstream commit 1f1693118c ]

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: 40f318f0ed ("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>
2022-10-21 12:38:53 +02:00
..
Kconfig spmi: mediatek: Add support for MT6873/8192 2021-12-17 17:18:18 +01:00
Makefile spmi: mediatek: Add support for MT6873/8192 2021-12-17 17:18:18 +01:00
hisi-spmi-controller.c spmi: hisi-spmi-controller: move driver from staging 2021-06-25 10:02:05 +02:00
spmi-mtk-pmif.c spmi: mediatek: Add support for MT8195 2021-12-17 17:18:18 +01:00
spmi-pmic-arb.c spmi: pmic-arb: correct duplicate APID to PPID mapping logic 2022-10-21 12:38:53 +02:00
spmi.c spmi: add a helper to look up an SPMI device from a device node 2022-06-18 13:48:19 +01:00