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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 28 Feb 2023 11:56:52 +0100
From:   Paul Menzel <pmenzel@...gen.mpg.de>
To:     Wolfram Sang <wsa@...nel.org>
Cc:     Jean Delvare <jdelvare@...e.com>, linux-i2c@...r.kernel.org,
        LKML <linux-kernel@...r.kernel.org>, Dell.Client.Kernel@...l.com,
        Pali Rohár <pali@...nel.org>
Subject: Re: Accelerometer lis3lv02d is present on SMBus but its address is
 unknown, skipping registration

Dear Wolfram,


Thank you again for the prompt reply.

Am 28.02.23 um 11:50 schrieb Wolfram Sang:

>> So, 29 shows up in the dump. Let’s see if I am going to find the time to
>> build a Linux kernel. (I couldn’t find a module parameter to force loading
>> at a specific address.)
> 
> We do this via sysfs:
> 
> # echo lis3lv02d 0x29 > /sys/bus/i2c/devices/i2c-6/new_device
> 
> (Depending on your system, you might need to ensure the lis3 driver is
> loaded before)
> 
> Hope it works!

It does. After your command, Linux logs:

```
[ 2110.787000] i2c i2c-6: new_device: Instantiated device lis3lv02d at 0x29
[ 2110.791932] lis3lv02d_i2c 6-0029: supply Vdd not found, using dummy 
regulator
[ 2110.791981] lis3lv02d_i2c 6-0029: supply Vdd_IO not found, using 
dummy regulator
[ 2110.809233] lis3lv02d: 8 bits 3DC sensor found
[ 2110.900668] input: ST LIS3LV02DL Accelerometer as 
/devices/platform/lis3lv02d/input/input23
```

I can cook up a patch, if you want.


Kind regards,

Paul

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ