diff mbox

Hang in qcom gsbi with kexec

Message ID 20180427184701.xenhgo2kw7ngdrhx@localhost (mailing list archive)
State Not Applicable, archived
Delegated to: Andy Gross
Headers show

Commit Message

Bob Copeland April 27, 2018, 6:47 p.m. UTC
Hello,

I'm trying to use kexec on an ipq8065 platform (4.9.31 yocto kernel).  It is
mostly working, but I find it hangs in gsbi_probe() in the kexec-ed kernel,
unless I make the following change:



Without that regmap_update_bits(), the kexec-ed kernel boots without issues.
Just doing a regmap_read() there hangs.

Any ideas?
diff mbox

Patch

diff --git a/drivers/soc/qcom/qcom_gsbi.c b/drivers/soc/qcom/qcom_gsbi.c
index 09c669e..9abfb05 100644
--- a/drivers/soc/qcom/qcom_gsbi.c
+++ b/drivers/soc/qcom/qcom_gsbi.c
@@ -206,12 +206,14 @@  static int gsbi_probe(struct platform_device *pdev)
                for (i = 0; i < config->num_rows; i++) {
                        mask = config->array[i][gsbi_num - 1];
 
+#if 0
                        if (gsbi->mode == GSBI_PROT_SPI)
                                regmap_update_bits(gsbi->tcsr,
                                        TCSR_ADM_CRCI_BASE + 4 * i, mask, 0);
                        else
                                regmap_update_bits(gsbi->tcsr,
                                        TCSR_ADM_CRCI_BASE + 4 * i, mask, mask);
+#endif
 
                }
        }