<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 6 Jan 2019 at 16:49, Valentin Vidic <<a href="mailto:Valentin.Vidic@carnet.hr">Valentin.Vidic@carnet.hr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, Jan 06, 2019 at 02:22:34PM +0530, Jay Aurabind wrote:<br>
> The subject line might be a bit dramatic, but I assure you my question is<br>
> isn't.<br>
> <br>
> I have a 3-axis accelerometer (LIS3LV02DL) in my laptop which shows up as<br>
> an input device. Since its x86, I am assuming the necessary information was<br>
> encoded in ACPI Tables. But I cannot find any mention of this device in the<br>
> acpi tables exposed by the kernel.<br>
> <br>
> I tried grepping through all the ACPI tables in /sys/firmware/acpi/tables.<br>
> I was hoping to find some string that could identify the corresponding<br>
> kernel drivers. But there are no hits for "lis". I suppose string based<br>
> literals are not the way acpi works like in kernel device-driver matching.<br>
> The driver in question isĀ  drivers/misc/lis3lv02d/lis3lv02d.c<br>
> <br>
> So what exactly in the ACPI triggered the kernel module lis3lv02d to be<br>
> loaded ?<br>
<br>
It seems to me this is an I2C device so the following alias could load it:<br>
<br>
modules.alias:alias i2c:lis3lv02d <span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span>lis3lv02d_i2c<br></blockquote><div><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Apparently it could be both I2C or SPI, as I find <span class="gmail_default" style="font-family:arial,helvetica,sans-serif"></span>lis3lv02d_spi.c as well. I don't really know if this device sits on I2C bus or SPI.</div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
Valentin<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br><div><font face="trebuchet ms, sans-serif" color="#073763">Thanks and Regards,</font></div><div><font face="trebuchet ms, sans-serif" color="#073763"><b>Aurabindo J</b></font></div></div></div></div>