From 0682cf377ded5aee9b01b6e0ac2ff3427f9f4db2 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 30 Oct 2017 11:19:15 +0100 Subject: [PATCH] 4.4-stable patches added patches: regulator-fan53555-fix-i2c-device-ids.patch --- ...egulator-fan53555-fix-i2c-device-ids.patch | 41 +++++++++++++++++++ queue-4.4/series | 1 + 2 files changed, 42 insertions(+) create mode 100644 queue-4.4/regulator-fan53555-fix-i2c-device-ids.patch diff --git a/queue-4.4/regulator-fan53555-fix-i2c-device-ids.patch b/queue-4.4/regulator-fan53555-fix-i2c-device-ids.patch new file mode 100644 index 00000000000..4034ae4ebb4 --- /dev/null +++ b/queue-4.4/regulator-fan53555-fix-i2c-device-ids.patch @@ -0,0 +1,41 @@ +From fc1111b885437f374ed54aadda44d8b241ebd2a3 Mon Sep 17 00:00:00 2001 +From: Guillaume Tucker +Date: Mon, 21 Aug 2017 13:47:43 +0100 +Subject: regulator: fan53555: fix I2C device ids + +From: Guillaume Tucker + +commit fc1111b885437f374ed54aadda44d8b241ebd2a3 upstream. + +The device tree nodes all correctly describe the regulators as +syr827 or syr828, but the I2C device id is currently set to the +wildcard value of syr82x in the driver. This causes udev to fail +to match the driver module with the modalias data from sysfs. + +Fix this by replacing the I2C device ids with ones that match the +device tree descriptions, with syr827 and syr828. Tested on +Firefly rk3288 board. The syr82x id was not used anywhere. + +Fixes: e80c47bd738b (regulator: fan53555: Export I2C module alias information) +Signed-off-by: Guillaume Tucker +Signed-off-by: Mark Brown +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/regulator/fan53555.c | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +--- a/drivers/regulator/fan53555.c ++++ b/drivers/regulator/fan53555.c +@@ -434,7 +434,10 @@ static const struct i2c_device_id fan535 + .name = "fan53555", + .driver_data = FAN53555_VENDOR_FAIRCHILD + }, { +- .name = "syr82x", ++ .name = "syr827", ++ .driver_data = FAN53555_VENDOR_SILERGY ++ }, { ++ .name = "syr828", + .driver_data = FAN53555_VENDOR_SILERGY + }, + { }, diff --git a/queue-4.4/series b/queue-4.4/series index 8cf22ffa5df..4075013dbe0 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -14,3 +14,4 @@ scsi-sg-re-fix-off-by-one-in-sg_fill_request_table.patch can-sun4i-fix-loopback-mode.patch can-kvaser_usb-correct-return-value-in-printout.patch can-kvaser_usb-ignore-cmd_flush_queue_reply-messages.patch +regulator-fan53555-fix-i2c-device-ids.patch -- 2.47.2