New: Second MXC6655 accelerometer is not detected on transformer Aquarius NS483 laptop
https://bugzilla.kernel.org/show_bug.cgi?id=216037
Bug ID: 216037
Summary: Second MXC6655 accelerometer is not detected on
transformer Aquarius NS483 laptop
Product: Drivers
Version: 2.5
Kernel Version: 5.17.11
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: IIO
Assignee: [email protected]
Reporter: [email protected]
Regression: NoA couple of accelerometers are used to detect the hinge angle in convertible laptops(one for display, one for base/keyboard).
A discussion on the topic is available at [1]
But in my case while DSDT describes two I2C devices (if I interpret it right):
Quoted 16 lines
Device (ACMG)
{ Name (_ADR, Zero) // _ADR: Address Name (_HID, "MXC6655") // _HID: Hardware ID Name (_CID, "MXC6655") // _CID: Compatible ID Name (_DDN, "Accelerometer with Angle Calculation") // _DDN: DOS Device Name Name (_UID, One) // _UID: Unique ID Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings { Name (RBUF, ResourceTemplate () { I2cSerialBusV2 (0x0015, ControllerInitiated, 0x00061A80, AddressingMode7Bit, "\\_SB.PC00.I2C1", 0x00, ResourceConsumer, , Exclusive,
Quoted 8 lines
)
I2cSerialBusV2 (0x0015, ControllerInitiated, 0x00061A80,
AddressingMode7Bit, "\\_SB.PC00.I2C2",
0x00, ResourceConsumer, , Exclusive,
)
})
Return (RBUF) /* \_SB_.PC00.I2C1.ACMG._CRS.RBUF */
}only one of them is detected (display side one, up and running, by the way):
Quoted 8 lines
P: /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-16/i2c-MXC6655:00
L: 0
E:
DEVPATH=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-16/i2c-MXC6655:00
E: SUBSYSTEM=i2c
E: DRIVER=mxc4005
E: MODALIAS=acpi:MXC6655:MXC6655:
Quoted 16 lines
P:
/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-16/i2c-MXC6655:00/iio:device0
N: iio:device0
L: 0
E:
DEVPATH=/devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-16/i2c-MXC6655:00/iio:device0
E: SUBSYSTEM=iio
E: DEVNAME=/dev/iio:device0
E: DEVTYPE=iio_device
E: MAJOR=238
E: MINOR=0
E: USEC_INITIALIZED=4954716
E: IIO_SENSOR_PROXY_TYPE=iio-poll-accel iio-buffer-accel
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:
There should be 2 I2C devices with DRIVER=mxc4005, shouldn't they?
Attaching detailed logs also.
[1] https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/merge_requests/338
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216037] Second MXC6655 accelerometer is not detected on transformer Aquarius NS483 laptop
https://bugzilla.kernel.org/show_bug.cgi?id=216037
--- Comment #1 from Nikolai ([email protected]) --- Created attachment 301058
--> https://bugzilla.kernel.org/attachment.cgi?id=301058&action=edit
ACPI DSDT
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216037] Second MXC6655 accelerometer is not detected on transformer Aquarius NS483 laptop
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216037
--- Comment #2 from Nikolai ([email protected]) --- Created attachment 301059
--> https://bugzilla.kernel.org/attachment.cgi?id=301059&action=edit
DMIDECODE
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216037] Second MXC6655 accelerometer is not detected on transformer Aquarius NS483 laptop
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216037
--- Comment #3 from Nikolai ([email protected]) --- Created attachment 301060
--> https://bugzilla.kernel.org/attachment.cgi?id=301060&action=edit
udevadm info --export-db log
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216037] Second MXC6655 accelerometer is not detected on transformer Aquarius NS483 laptop
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216037
--- Comment #4 from Nikolai ([email protected]) --- Created attachment 301061
--> https://bugzilla.kernel.org/attachment.cgi?id=301061&action=edit
gdbus introspect
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216037] Second MXC6655 accelerometer is not detected on transformer Aquarius NS483 laptop
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216037
Andy Shevchenko ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected], | |[email protected] | |g
--- Comment #5 from Andy Shevchenko ([email protected]) --- +Cc: Hans as he was working on similar issues in the past.
Btw, do you still experience this issue in a newest kernel?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216037] Second MXC6655 accelerometer is not detected on transformer Aquarius NS483 laptop
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216037
--- Comment #6 from Hans de Goede ([email protected]) --- Andy, thank you for the Cc.
Nikolai, thank you for reporting this and thank you for already doing some initial investigation and providing a DSDT.
Looking at the _CRS for the Device (ACMG) {} then it has 2 I2cSerialBusV2 resources, likely one for each accelerometer.
We have hit this case before with BOSC0200 ACPI devices describing bmc150 accelerometers, see:
I think we need to add a function like bmc150_acpi_dual_accel_probe() to drivers/iio/accel/mxc4005.c minus the extra special suspend/resume handling.
Nikolai, do you think you can write a patch for this yourself (mostly copy + pasting the bmc150_acpi_dual_accel_probe() function) ?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 216037] Second MXC6655 accelerometer is not detected on transformer Aquarius NS483 laptop
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=216037
Andy Shevchenko ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INSUFFICIENT_DATA--- Comment #7 from Andy Shevchenko ([email protected]) --- Seems no response from the reporter, close as inactive. Feel free to reopen when new information comes in (see the Q Hans asked, also we need an alive channel of communication to be able to test and confirm, we have no such HW at hands).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.