Same crash log @Manuel_Salas .
I see in general driver (drivers/mfd/mxs-lradc.c) the enum is
enum mx28_lradc_irqs {
MX28_LRADC_TS_IRQ = 0,
MX28_LRADC_TRESH0_IRQ,
MX28_LRADC_TRESH1_IRQ,
MX28_LRADC_CH0_IRQ,
MX28_LRADC_CH1_IRQ,
MX28_LRADC_CH2_IRQ,
MX28_LRADC_CH3_IRQ,
MX28_LRADC_CH4_IRQ,
MX28_LRADC_CH5_IRQ,
MX28_LRADC_CH6_IRQ,
MX28_LRADC_CH7_IRQ,
MX28_LRADC_BUTTON0_IRQ,
MX28_LRADC_BUTTON1_IRQ,
};
Here we are creating a resource structure using the string and mapping the irq
static struct resource mx28_touchscreen_resources[] = {
DEFINE_RES_MEM(0x0, 0x0),
DEFINE_RES_IRQ_NAMED(MX28_LRADC_TS_IRQ, "mxs-lradc-touchscreen"),
DEFINE_RES_IRQ_NAMED(MX28_LRADC_CH6_IRQ, "mxs-lradc-channel6"),
DEFINE_RES_IRQ_NAMED(MX28_LRADC_CH7_IRQ, "mxs-lradc-channel7"),
};
And in the driver (drivers/input/touchscreen/mxs-lradc-ts.c)
static const char * const mxs_lradc_ts_irq_names[] = {
"mxs-lradc-touchscreen",
"mxs-lradc-channel6",
"mxs-lradc-channel7",
};
platform_get_irq_byname(pdev, mxs_lradc_ts_irq_names[i]); in this driver trying access the irq assigned but it is assigned with '0'.
I see this function "platform_get_resource_byname" instead of platform_get_irq_byname works. Does changing of function has any impact with the screen freeze? since normally we are getting the interrupt and works fine on some occasions as mentioned earlier.
Best regards
Arumugam JS