Dear Vinod,
I tried your tip. Unfortuantely, the kernel is panic after including this change.
[ 0.621054] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.4.47-dirty #5
[ 0.621055] Hardware name: Freescale i.MX8QM MEK (DT)
[ 0.621056] Call trace:
[ 0.621057] dump_backtrace.cfi_jt+0x0/0x4
[ 0.621058] show_stack+0x18/0x24
[ 0.621058] dump_stack+0xb8/0x114
[ 0.621059] panic+0x168/0x3fc
[ 0.621060] nmi_panic+0x98/0xb8
[ 0.621061] arm64_serror_panic+0x74/0x80
[ 0.621061] do_serror+0x15c/0x16c
[ 0.621062] el1_error+0xbc/0x160
[ 0.621063] irq_set_chained_handler_and_data+0x0/0x98
[ 0.621064] platform_drv_probe+0xac/0xf8
[ 0.621065] really_probe+0x30c/0x7ac
[ 0.621065] driver_probe_device+0x64/0x100
[ 0.621066] device_driver_attach+0x6c/0xac
[ 0.621067] __driver_attach+0xdc/0x18c
[ 0.621067] bus_for_each_dev+0xa4/0x118
[ 0.621068] driver_attach+0x24/0x30
[ 0.621069] bus_add_driver+0x100/0x1e0
[ 0.621070] driver_register+0x78/0x114
[ 0.621071] __platform_driver_register+0x44/0x50
[ 0.621071] gpio_mxc_init+0x28/0x34
[ 0.621072] do_one_initcall+0x19c/0x368
[ 0.621073] do_initcall_level+0x198/0x1c4
[ 0.621074] do_basic_setup+0x2c/0x48
[ 0.621075] kernel_init_freeable+0x60/0xdc
[ 0.621075] kernel_init+0x18/0x29c
[ 0.621076] ret_from_fork+0x10/0x18
[ 0.621086] SMP: stopping secondary CPUs
Best regards,
Libin Jose