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:
Mukesh Kumar Savaliya 2021-02-24 15:11:04 +05:30 • committed by Gerrit - the friendly Code Review server
commit 95ef7c805f

View file

@ -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) {