Re: Accelerometer lis3lv02d is present on SMBus but its address is unknown, skipping registration

From: Wolfram Sang
Date: Mon Feb 27 2023 - 14:27:40 EST


Hi Paul,

> What can a user do about this? It looks like the I2C addresses need to be
> added to `dell_lis3lv02d_devices[]` in `drivers/i2c/busses/i2c-i801.c`.

Complain to Dell about the missing address ;)

Until then:

> [ 20.631866] i801_smbus 0000:00:1f.4: SPD Write Disable is set

# cd /sys/bus/pci/drivers/i801_smbus/0000\:00\:1f.4
# ls -d i2c-?

The last digit of the printout is the bus number. Then:

# modprobe i2c-dev
# i2cdetect <bus_number>

And post the output here. If you are brave and see that the address 0x1d
or 0x29 are printed in your output, you could try adding an entry to the
array you already mentioned above with the address you found. It may be
safer to do some sanity checking before, though.

Happy hacking,

Wolfram

Attachment: signature.asc
Description: PGP signature