summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2017-03-20 14:37:30 +0100
committerWolfram Sang <wsa@the-dreams.de>2017-03-22 09:45:00 +0100
commit78c43af2c1d79653e2e6fb9a05c8f3def7c87940 (patch)
tree14f7efa2cd37254339aae8fcab4d793e74bac620 /drivers/i2c
parenta528fab6cc66acdccb48552a79300bc1fbda6b5b (diff)
downloadblackbird-obmc-linux-78c43af2c1d79653e2e6fb9a05c8f3def7c87940.tar.gz
blackbird-obmc-linux-78c43af2c1d79653e2e6fb9a05c8f3def7c87940.zip
i2c-designware: increase timeout of semaphore transfer
Our testing shows the semaphore failing to be transferred on CherryTrail in about 0.5% of all cases. The existing timeout needs to be lengthened to accommodate the worst cases. V2: Rebased on https://cgit.freedesktop.org/drm-intel/commit/?h=topic/designware-baytrail Signed-off-by: Oliver Neukum <oneukum@suse.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-designware-baytrail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-designware-baytrail.c b/drivers/i2c/busses/i2c-designware-baytrail.c
index 1749a0f5a9fa..c0e7c8806342 100644
--- a/drivers/i2c/busses/i2c-designware-baytrail.c
+++ b/drivers/i2c/busses/i2c-designware-baytrail.c
@@ -22,7 +22,7 @@
#include "i2c-designware-core.h"
-#define SEMAPHORE_TIMEOUT 100
+#define SEMAPHORE_TIMEOUT 500
#define PUNIT_SEMAPHORE 0x7
#define PUNIT_SEMAPHORE_CHT 0x10e
#define PUNIT_SEMAPHORE_BIT BIT(0)
OpenPOWER on IntegriCloud