requesting modules in the i2c-core in case of OF

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

 



Hi all.

I spend some time to debug an issue that our touch driver does not get
loaded even
if defined in devicetree. I enabled core debug and added a printk to
kernel/kmod.c

[    0.223468] usbcore: registered new interface driver usbfs
[    0.223558] usbcore: registered new interface driver hub
[    0.223698] usbcore: registered new device driver usb
[    0.224557] i2c i2c-1: adapter [21a4000.i2c] registered
[    0.224583] i2c i2c-1: of_i2c: walking child nodes
[    0.224596] i2c i2c-1: of_i2c: register
/soc/aips-bus@02100000/i2c@021a4000/ar1021@4d
[    0.224628] __request_module: i2c:ar1021_i2c
[    0.225144] i2c 1-004d: uevent
[    0.225183] i2c i2c-1: client [ar1021_i2c] registered with bus id 1-004d
[    0.225198] i2c i2c-1: of_i2c: register
/soc/aips-bus@02100000/i2c@021a4000/pca9555@20
[    0.225213] __request_module: i2c:pca9555
[    0.225519] i2c 1-0010: uevent
[    0.225577] pca953x 1-0010: probe
[    0.225602] i2c i2c-1: master_xfer[0] W, addr=0x10, len=1


Now it gets interesting :)

root@OT:/# modinfo ar1021_i2c
filename:
/lib/modules/3.14.18/kernel/drivers/input/touchscreen/ar1021_i2c.ko
license:        GPL
description:    Microchip AR1021 I2C Driver
author:         Christian Gmeiner <christian.gmeiner@xxxxxxxxx>
alias:          of:N*T*Cmicrochip,ar1021_i2c*
alias:          i2c:MICROCHIP_AR1021_I2C
depends:
intree:         Y
vermagic:       3.14.18 SMP preempt mod_unload ARMv7 p2v8

So the ar1021_i2c driver is build as kernel module and at this point
it is not possible to modprobe/request that module
as the RFS is not yet mounted and the initramfs does not contain this driver.

Should the i2c-core not load the requested driver in an deferred way?
Any opinions?

By the way the ar1021_i2c driver can be found here:
https://www.mail-archive.com/linux-input@xxxxxxxxxxxxxxx/msg08071.html

Greets
--
Christian Gmeiner, MSc

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




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux