summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Chang <chengcha@google.com>2023-03-03 07:42:59 +0000
committerCheng Chang <chengcha@google.com>2023-03-24 12:59:38 +0000
commit197e2b19da4c94dcfcdbe784dd9ac233ef0535b7 (patch)
tree2e4a5e7ec3cc6fda608d34c54d4f844ec91adbbe
parent58451f1ca3447bd18173cc7597ac37ab75e02b36 (diff)
downloadbcm47765-android-gs-shusky-5.15-android14-qpr1-beta.tar.gz
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>
-rw-r--r--bcm_gps_spi.c3
1 files changed, 1 insertions, 2 deletions
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 @@ static int bcm_spi_probe(struct spi_device *spi)
/* 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);