In order to change from SDIO to SPI, here is an exampled based on the iMX6 CPU.

in file acc1340_sdio.c


if we define self->pdata->irq,the interrupt mode  enable.the default value is zero.

static int acc1340_sdio_irq_subscribe(struct hwbus_priv *self)
{
	int ret = 0;

	pr_debug("SW IRQ subscribe\n");
	sdio_claim_host(self->func);
	
	//self->pdata->irq = gpio_to_irq(60);
		
	if (self->pdata->irq){
		ret = acc1340_request_irq(self);
		ret = irq_set_irq_type(self->pdata->irq,IRQ_TYPE_EDGE_RISING);
	}
	else
		ret = sdio_claim_irq(self->func, acc1340_sdio_irq_handler);

	
	sdio_release_host(self->func);
	return ret;
}
