i2c-designware: increase timeout of semaphore transfer
authorOliver Neukum <[email protected]>
Mon, 20 Mar 2017 13:37:30 +0000 (14:37 +0100)
committerWolfram Sang <[email protected]>
Wed, 22 Mar 2017 08:45:00 +0000 (09:45 +0100)
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 <[email protected]>
Reviewed-by: Hans de Goede <[email protected]>
Acked-by: Jarkko Nikula <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
drivers/i2c/busses/i2c-designware-baytrail.c

index 1749a0f5a9fafada3a19b7bb73c62742a243301a..c0e7c8806342350ceab99b00c24aec17d0954132 100644 (file)
@@ -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)