Skip to content

Commit 6e48604

Browse files
Loic Poulaindtor
authored andcommitted
Input: synaptics-rmi4 - Fix device hierarchy
The created rmi device is orphan, which breaks the real device hierarchy, and can cause some trouble, especially during suspend and resume sequences. E.g. in case of I2C, rmi dev should be child of the I2C client device. Fix this, assigning the transport device as parent of the rmi device. Signed-off-by: Loic Poulain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 16e28ab commit 6e48604

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/rmi4/rmi_bus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ int rmi_register_transport_device(struct rmi_transport_dev *xport)
9090

9191
rmi_dev->dev.bus = &rmi_bus_type;
9292
rmi_dev->dev.type = &rmi_device_type;
93+
rmi_dev->dev.parent = xport->dev;
9394

9495
xport->rmi_dev = rmi_dev;
9596

0 commit comments

Comments
 (0)