Browse Source

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>
Oliver Neukum 8 years ago
parent
commit
78c43af2c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/i2c/busses/i2c-designware-baytrail.c

+ 1 - 1
drivers/i2c/busses/i2c-designware-baytrail.c

@@ -22,7 +22,7 @@
 
 
 #include "i2c-designware-core.h"
 #include "i2c-designware-core.h"
 
 
-#define SEMAPHORE_TIMEOUT	100
+#define SEMAPHORE_TIMEOUT	500
 #define PUNIT_SEMAPHORE		0x7
 #define PUNIT_SEMAPHORE		0x7
 #define PUNIT_SEMAPHORE_CHT	0x10e
 #define PUNIT_SEMAPHORE_CHT	0x10e
 #define PUNIT_SEMAPHORE_BIT	BIT(0)
 #define PUNIT_SEMAPHORE_BIT	BIT(0)