gpio-pca953x.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI there,

I am trying to use the gpio driver for pca953x with IRQ enabled config. When 
the device gets probbed, I gives me an error saying :
"failed to set trigger mode 8"

The probe called,
ret = devm_request_threaded_irq(&client->dev,
					client->irq,
					   NULL,
					   pca953x_irq_handler,
					   IRQF_TRIGGER_LOW | IRQF_ONESHOT,
					   dev_name(&client->dev), chip);

with IRQF_TRIGGER_LOW as a flag

I did some tracing and found out, irq set type, went to gic_set_type in irq-
gic.c ( http://lxr.free-electrons.com/source/drivers/irqchip/irq-gic.c#L187 )

But gic_set_type, only wants to see either IRQF_TRIGGER_HIGH OR 
IRQF_TRIGGER_LOW, thats why it returned.

Questions
1. Is it correct that irq set type went to gic_set_type, bcoz pca953x does 
provide one of itself.




--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux