diff options
author | Loic Poulain <loic.poulain@linaro.org> | 2021-10-29 15:42:51 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2021-11-05 19:46:21 -0700 |
commit | 6e4860410b828f8576c0c003d412fcf8a7d433f9 (patch) | |
tree | 8f3325fb1e9bc92b397649b53f8a697d68f37805 /drivers/input/rmi4 | |
parent | 16e28abb7290c4ca3b3a0f333ba067f34bb18c86 (diff) | |
download | lwn-6e4860410b828f8576c0c003d412fcf8a7d433f9.tar.gz lwn-6e4860410b828f8576c0c003d412fcf8a7d433f9.zip |
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 <loic.poulain@linaro.org>
Link: https://lore.kernel.org/r/1635514971-18415-1-git-send-email-loic.poulain@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/rmi4')
-rw-r--r-- | drivers/input/rmi4/rmi_bus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/rmi4/rmi_bus.c b/drivers/input/rmi4/rmi_bus.c index 24f31a5c0e04..50a0134b6901 100644 --- a/drivers/input/rmi4/rmi_bus.c +++ b/drivers/input/rmi4/rmi_bus.c @@ -90,6 +90,7 @@ int rmi_register_transport_device(struct rmi_transport_dev *xport) rmi_dev->dev.bus = &rmi_bus_type; rmi_dev->dev.type = &rmi_device_type; + rmi_dev->dev.parent = xport->dev; xport->rmi_dev = rmi_dev; |