* Patch "i2c: designware: Some broken DSTDs use 1MiHz instead of 1MHz" has been added to the 4.12-stable tree
@ 2017-08-13 22:18 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-08-13 22:18 UTC (permalink / raw)
To: hdegoede, andriy.shevchenko, gregkh, wsa; +Cc: stable, stable-commits
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 <stable@vger.kernel.org> know about it.
>From 682c6c2188f39d13548ccdc89c9888fbcb547889 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Thu, 13 Jul 2017 15:45:02 +0200
Subject: i2c: designware: Some broken DSTDs use 1MiHz instead of 1MHz
From: Hans de Goede <hdegoede@redhat.com>
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.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/i2c/busses/i2c-designware-platdrv.c | 3 +++
1 file changed, 3 insertions(+)
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -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 hdegoede@redhat.com 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-14 0:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-13 22:18 Patch "i2c: designware: Some broken DSTDs use 1MiHz instead of 1MHz" has been added to the 4.12-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).