[PATCH 08/23] interconnect: qcom: rpm: fix registration race

Jun Nie jun.nie at linaro.org
Thu Feb 2 20:06:57 PST 2023


Johan Hovold <johan+linaro at kernel.org> 于2023年2月1日周三 18:16写道:
>
> The current interconnect provider registration interface is inherently
> racy as nodes are not added until the after adding the provider. This
> can specifically cause racing DT lookups to fail.
>
> Switch to using the new API where the provider is not registered until
> after it has been fully initialised.
>
> Fixes: 62feb14ee8a3 ("interconnect: qcom: Consolidate interconnect RPM support")
> Fixes: 30c8fa3ec61a ("interconnect: qcom: Add MSM8916 interconnect provider driver")
> Cc: stable at vger.kernel.org      # 5.7
> Cc: Jun Nie <jun.nie at linaro.org>
> Cc: Georgi Djakov <georgi.djakov at linaro.org>
> Signed-off-by: Johan Hovold <johan+linaro at kernel.org>
> ---
>  drivers/interconnect/qcom/icc-rpm.c | 23 ++++++++++++-----------
>  1 file changed, 12 insertions(+), 11 deletions(-)
>
Reviewed-by: Jun Nie <jun.nie at linaro.org>



More information about the linux-arm-kernel mailing list