[PATCH 0/1] ARM: OMAP: Fix kernel panic on I2C when booting TI H2 boards

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

 



Hi Tony and folks,

Recently, Felipe sent some patches that finish converting isp1301_omap.c
to new-style i2c driver. Such patches were already pushed into
Linux-OMAP tree [1].

Well, regarding arch/arm/mach-omap1/board-h2.c file, he proposed to add
i2c_register_board_info() call at h2_init_irq(void).

Unfortunately, this call causes kernel panic when booting TI H2 boards.
Find below the debug message:

...
Backtrace:
[<c0088c28>] (kmem_cache_alloc+0x0/0x84) from [<c001ca84>]
(i2c_register_board_info+0x54/0xd8)
 r7:00000001 r6:00000001 r5:c00255fc r4:c00255c8
[<c001ca30>] (i2c_register_board_info+0x0/0xd8) from [<c0011d04>]
(h2_init_irq+0x28/0x4c)
 r8:10022bc4 r7:c02bdc9c r6:c0024f1c r5:c02db110 r4:c02db104
[<c0011cdc>] (h2_init_irq+0x0/0x4c) from [<c000ef58>] (init_IRQ+0x38/0x48)
[<c000ef20>] (init_IRQ+0x0/0x48) from [<c0008c8c>]
(start_kernel+0x16c/0x2d8)
[<c0008b20>] (start_kernel+0x0/0x2d8) from [<10008034>] (0x10008034)
 r6:c0025320 r5:c02dba08 r4:00053175
Code: e1a07001 e10f4000 e3843080 e121f003 (e5902000)
<0>Kernel panic - not syncing: Attempted to kill the idle task!
...

So, I'm proposing this patch that adds i2c_register_board_info() call at
h2_init(void), as it's done on H3 board file, in order to fix the kernel
panic mentioned above.

Testing, booting and working fine.

BR,

Carlos.

[1]
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=d24c8950a363044016679cdf76435abdace2f56d

-- 
Carlos Eduardo Aguiar
Nokia Institute of Technology - INdT
Open Source Mobile Research Center - OSMRC - Manaus
Core Team
Phone: +55 92 2126-1079
Mobile: +55 92 8127-1797
E-mail: carlos.aguiar@xxxxxxxxxxx

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

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux