This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Accelerometer on Arago Linux 3.12

Hi guys

I am using ST's LIS2DH accelerometer and I have a driver from ST for it:

github.com/.../sysfs

I updated it to work with kernel 3.12, compiled it and created .ko files. The update was easy, needed to replace __devexit_p and calls like that. So not a major surgery done there.

I insmod the .ko file and the driver inserts properly :

insmod lis2dh_acc.ko
[   80.902246] lis2dh_acc accelerometer driver: init
[   80.908968] i2c-core: driver [lis2dh_acc] using legacy suspend method
[   80.915884] i2c-core: driver [lis2dh_acc] using legacy resume method

but nothing else happens. The accelerometer isn't detected and the .probe isn't called.

I know the accelerometer is called, and I can use i2cset to change registers and do thing but I can't just get the driver to recognize the hardware.

Am I missing a step? Can anybody help please?


Thanks!