Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8b8c824 authored by Maulik Shah's avatar Maulik Shah
Browse files

drivers: irqchip: qcom-pdc: Do not set spi type during alloc



SPI type is set in spi configure registers during irq_set_type.
Do not set type before alloc is done at parent GIC.

Change-Id: Idc23be422a2ed756a00b086560f697bb44f3666c
Signed-off-by: default avatarMaulik Shah <mkshah@codeaurora.org>
parent f0d6c032
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -358,13 +358,6 @@ static int qcom_pdc_gpio_alloc(struct irq_domain *domain, unsigned int virq,

	qcom_fwspec->mask = true;

	/* Additionally, configure GPIO PDC in the f/w */
	if (domain->host_data) {
		ret = spi_configure_type(parent_hwirq, type);
		if (ret)
			return ret;
	}

	if (type & IRQ_TYPE_EDGE_BOTH)
		type = IRQ_TYPE_EDGE_RISING;