lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAH9NwWd46W-ad_o0T1dCBVTuQYEB7GJCZi=zW340-b=hZNVfCA@mail.gmail.com>
Date:	Mon, 15 Sep 2014 17:50:04 +0200
From:	Christian Gmeiner <christian.gmeiner@...il.com>
To:	linux-i2c@...r.kernel.org
Cc:	LKML <linux-kernel@...r.kernel.org>
Subject: requesting modules in the i2c-core in case of OF

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@...00000/i2c@...a4000/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@...00000/i2c@...a4000/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@...il.com>
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@vger.kernel.org/msg08071.html

Greets
--
Christian Gmeiner, MSc

https://soundcloud.com/christian-gmeiner
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ