Guenter Roeck
261d7794c4
Input: synaptics-rmi4 - fix error handling in I2C transport driver
...
Instantiating the rmi4 I2C transport driver without interrupts assigned
(for example using manual i2c instantiation from the command line)
caused the driver to fail to load, but it does not clean up its regulator
or transport device registrations. Result is a crash at a later time,
for example when rebooting the system.
Fixes: 946c8432aa
("Input: synaptics-rmi4 - support regulator supplies")
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2016-10-04 11:52:24 -07:00
Bjorn Andersson
946c8432aa
Input: synaptics-rmi4 - support regulator supplies
...
Support the two supplies - vdd and vio - to make it possible to control
power to the Synaptics chip.
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com >
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Acked-by: Rob Herring <robh@kernel.org >
Reviewed-by: Andrew Duggan <aduggan@synaptics.com >
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2016-07-13 17:27:24 -07:00
Andrew Duggan
d8a8b3edfd
Input: synaptics-rmi4 - add device tree support for RMI4 I2C devices
...
Add devicetree binding for I2C devices and add bindings for optional
parameters in the function drivers. Parameters for function drivers are
defined in child nodes for each of the functions.
Signed-off-by: Andrew Duggan <aduggan@synaptics.com >
Acked-by: Rob Herring <robh@kernel.org >
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com >
Tested-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2016-03-10 16:02:41 -08:00
Andrew Duggan
fdf51604f1
Input: synaptics-rmi4 - add I2C transport driver
...
Add the transport driver for devices using RMI4 over I2C.
Signed-off-by: Andrew Duggan <aduggan@synaptics.com >
Signed-off-by: Christopher Heiny <cheiny@synaptics.com >
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com >
Tested-by: Linus Walleij <linus.walleij@linaro.org >
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2016-03-10 16:02:40 -08:00