[N900/RX51] omap3isp (camera device) driver does not load
On kernel 4.12.2 & 4.13-rc1, the camera driver doesn't load on boot.
Output from kernel log:
[ 23.692474] omap3isp 480bc000.isp: 480bc000.isp supply vdd-csiphy1 not found, using dummy regulator
[ 23.692657] omap3isp 480bc000.isp: 480bc000.isp supply vdd-csiphy2 not found, using dummy regulator
[ 23.704742] omap3isp 480bc000.isp: Revision 2.0 found
[ 23.716217] omap-iommu 480bd400.mmu: 480bd400.mmu: version 1.1
[ 23.716552] omap3isp 480bc000.isp: 480bc000.isp supply vdds_csib not found, using dummy regulator
[ 23.716888] omap3isp 480bc000.isp: hist: using DMA channel dma0chan11
[ 23.716949] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CCP2 was not initialized!
[ 23.717407] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CSI2a was not initialized!
[ 23.722534] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CCDC was not initialized!
[ 23.724182] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP preview was not initialized!
[ 23.729400] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP resizer was not initialized!
[ 23.729949] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP AEWB was not initialized!
[ 23.729980] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP AF was not initialized!
[ 23.729980] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP histogram was not initialized!
[ 23.733764] omap3isp 480bc000.isp: OMAP3 ISP AEWB: all buffers were freed.
[ 23.733764] omap3isp 480bc000.isp: OMAP3 ISP AF: all buffers were freed.
[ 23.733795] omap3isp 480bc000.isp: OMAP3 ISP histogram: all buffers were freed.
[ 23.737579] ------------[ cut here ]------------
[ 23.737609] WARNING: CPU: 0 PID: 854 at /home/user/build/src/linux-4.12.2/lib/refcount.c:184 refcount_sub_and_test+0x54/0xa0
[ 23.737640] refcount_t: underflow; use-after-free.
[ 23.737640] Modules linked in: rc_core omap3_isp(+) gpio_keys rx51_battery smc91x pwm_omap_dmtimer cfg80211 isp1704_charger mii videobuf2_dma_contig videobuf2_memops si4713(+) videobuf2_v4l2 adp1653(+) videobuf2_core v4l2_common omap_sham videodev joydev bq27xxx_battery_i2c(+) mousedev leds_lp5523(+) bq27xxx_battery bq2415x_charger media leds_lp55xx_common tsl2563 rtc_twl twl4030_vibra ff_memless lis3lv02d_i2c omap_ssi lis3lv02d input_polldev hsi ti_soc_thermal ipv6 dm_mod dax twl4030_wdt omap_wdt tsc2005 tsc200x_core
[ 23.737823] CPU: 0 PID: 854 Comm: udevd Not tainted 4.12.2 #4-Alpine
[ 23.737823] Hardware name: Nokia RX-51 board
[ 23.737884] [<c010c108>] (unwind_backtrace) from [<c010a514>] (show_stack+0x10/0x14)
[ 23.737915] [<c010a514>] (show_stack) from [<c0124f54>] (__warn+0xdc/0xf8)
[ 23.737915] [<c0124f54>] (__warn) from [<c0124fa4>] (warn_slowpath_fmt+0x34/0x44)
[ 23.737945] [<c0124fa4>] (warn_slowpath_fmt) from [<c0338f40>] (refcount_sub_and_test+0x54/0xa0)
[ 23.737976] [<c0338f40>] (refcount_sub_and_test) from [<c0110050>] (arm_iommu_release_mapping+0x18/0x2c)
[ 23.738006] [<c0110050>] (arm_iommu_release_mapping) from [<c03f9bd8>] (driver_probe_device+0x128/0x2cc)
[ 23.738006] [<c03f9bd8>] (driver_probe_device) from [<c03f9df8>] (__driver_attach+0x7c/0xa8)
[ 23.738037] [<c03f9df8>] (__driver_attach) from [<c03f8374>] (bus_for_each_dev+0x7c/0x8c)
[ 23.738067] [<c03f8374>] (bus_for_each_dev) from [<c03f93b4>] (bus_add_driver+0x16c/0x1dc)
[ 23.738067] [<c03f93b4>] (bus_add_driver) from [<c03fa6a4>] (driver_register+0xa0/0xe0)
[ 23.738098] [<c03fa6a4>] (driver_register) from [<c010180c>] (do_one_initcall+0x124/0x14c)
[ 23.738128] [<c010180c>] (do_one_initcall) from [<c01a04f8>] (do_init_module+0x54/0x3a4)
[ 23.738128] [<c01a04f8>] (do_init_module) from [<c017ac84>] (load_module+0x17e8/0x1dc0)
[ 23.738159] [<c017ac84>] (load_module) from [<c017b420>] (SyS_finit_module+0x88/0x90)
[ 23.738189] [<c017b420>] (SyS_finit_module) from [<c0106d60>] (ret_fast_syscall+0x0/0x3c)
[ 23.738189] ---[ end trace f6c860e1b31c241d ]---
[ 23.746704] omap3isp: probe of 480bc000.isp failed with error -22
Edited by clayton craft