Patch "soc: qcom: geni: shield geni_icc_get() for ACPI boot" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    soc: qcom: geni: shield geni_icc_get() for ACPI boot

to the 5.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     soc-qcom-geni-shield-geni_icc_get-for-acpi-boot.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit b1ca84eed71f4b020307bf0fc54e28c157955dac
Author: Shawn Guo <shawn.guo@xxxxxxxxxx>
Date:   Thu Jan 14 19:29:28 2021 +0800

    soc: qcom: geni: shield geni_icc_get() for ACPI boot
    
    [ Upstream commit 0c9fdcdba68208270ae85d39600ea97da1718344 ]
    
    Currently, GENI devices like i2c-qcom-geni fails to probe in ACPI boot,
    if interconnect support is enabled.  That's because interconnect driver
    only supports DT right now.  As interconnect is not necessarily required
    for basic function of GENI devices, let's shield geni_icc_get() call,
    and then all other ICC calls become nop due to NULL icc_path, so that
    GENI devices keep working for ACPI boot.
    
    Reviewed-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
    Signed-off-by: Shawn Guo <shawn.guo@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210114112928.11368-1-shawn.guo@xxxxxxxxxx
    Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/soc/qcom/qcom-geni-se.c
index 1fd29f93ff6d..5bdfb1565c14 100644
--- a/drivers/soc/qcom/qcom-geni-se.c
+++ b/drivers/soc/qcom/qcom-geni-se.c
@@ -756,6 +756,9 @@ int geni_icc_get(struct geni_se *se, const char *icc_ddr)
 	int i, err;
 	const char *icc_names[] = {"qup-core", "qup-config", icc_ddr};
 
+	if (has_acpi_companion(se->dev))
+		return 0;
+
 	for (i = 0; i < ARRAY_SIZE(se->icc_paths); i++) {
 		if (!icc_names[i])
 			continue;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux