Skip to contentSkip to conversation

Patch "i2c: designware: Some broken DSTDs use 1MiHz instead of 1MHz" has been added to the 4.12-stable tree

PATCH [email protected] 1 participant 1 message Aug 14, 2017

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

i2c: designware: Some broken DSTDs use 1MiHz instead of 1MHz

to the 4.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
i2c-designware-some-broken-dstds-use-1mihz-instead-of-1mhz.patch
and it can be found in the queue-4.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 682c6c2188f39d13548ccdc89c9888fbcb547889 Mon Sep 17 00:00:00 2001

From: Hans de Goede <[email protected]>
Date: Thu, 13 Jul 2017 15:45:02 +0200
Subject: i2c: designware: Some broken DSTDs use 1MiHz instead of 1MHz

From: Hans de Goede <[email protected]>

commit 682c6c2188f39d13548ccdc89c9888fbcb547889 upstream.

At least the Acer Iconia Tab8 / aka W1-810 uses 1MiHz instead of 1MHz for one of its busses, fix this up to 1MHz instead of failing the probe of that bus.

This fixes the accelerometer on the Acer Iconia Tab8 not working.

---
 drivers/i2c/busses/i2c-designware-platdrv.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/i2c/busses/i2c-designware-platdrv.c +3 -0
@@ -254,6 +254,9 @@ static int dw_i2c_plat_probe(struct plat
 	}
 
 	acpi_speed = i2c_acpi_find_bus_speed(&pdev->dev);
+	/* Some broken DSTDs use 1MiHz instead of 1MHz */
+	if (acpi_speed == 1048576)
+		acpi_speed = 1000000;
 	/*
 	 * Find bus speed from the "clock-frequency" device property, ACPI
 	 * or by using fast mode if neither is set.

Patches currently in stable-queue which might be from [email protected] are

queue-4.12/iio-accel-bmc150-always-restore-device-to-normal-mode-after-suspend-resume.patch queue-4.12/iio-adc-revert-axp288-drop-bogus-axp288_adc_ts_pin_ctrl-register-modifications.patch queue-4.12/i2c-designware-some-broken-dstds-use-1mihz-instead-of-1mhz.patch