bcm47765: fix the timing issue in spi_probe
Request IRQ with IRQF_NO_AUTOEN flag to prevent automatic enabling of the requested interrupt
Bug: 271529307
Test: sanity test at b/271529307
Test: verified cts and vts
Change-Id: I0a381280ef4b12fee63e171a3529510f2881080f
Signed-off-by: Cheng Chang <chengcha@google.com>
diff --git a/bcm_gps_spi.c b/bcm_gps_spi.c
index 5d2a9e1..ff4085b 100644
--- a/bcm_gps_spi.c
+++ b/bcm_gps_spi.c
@@ -1464,13 +1464,12 @@
/* Request IRQ */
ret = devm_request_irq(&spi->dev, spi->irq, bcm_irq_handler,
- IRQF_TRIGGER_HIGH, "ttyBCM", priv);
+ IRQF_TRIGGER_HIGH | IRQF_NO_AUTOEN, "ttyBCM", priv);
if (ret) {
dev_err(&spi->dev, "Failed to register BCM477x SPI TTY IRQ %d.\n",
spi->irq);
goto free_wq;
}
- disable_irq(spi->irq);
dev_info(&spi->dev, "Probe OK. ssp-host-req=%d, irq=%d, priv=0x%pK\n",
host_req, spi->irq, priv);