mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
spi: spi-msm-geni: Keep IRQ disabled before irq registration
This change disables the interrupt while requesting the IRQ else it may cause interrupt imbalance. We are following similar way for all the buses drivers. Change-Id: I92c7ca2a3e6d58ef6aff5bbb577553b85596bb8c Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
This commit is contained in:
parent
b9d505e558
commit
95ef7c805f
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
|
||||
|
|
@ -2003,6 +2003,7 @@ static int spi_geni_probe(struct platform_device *pdev)
|
|||
goto spi_geni_probe_unmap;
|
||||
}
|
||||
|
||||
irq_set_status_flags(geni_mas->irq, IRQ_NOAUTOEN);
|
||||
ret = devm_request_irq(&pdev->dev, geni_mas->irq,
|
||||
geni_spi_irq, IRQF_TRIGGER_HIGH, "spi_geni", geni_mas);
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue