Am Dienstag, den 21.03.2017, 15:48 +0100 schrieb Hans de Goede: > Hi, > > On 21-03-17 15:05, Oliver Neukum wrote: Hi, > > I am quite uncomfortable with code in the kernel that will crash > > the machine if it ever runs. Yet I am also uncomfortable with code > > that would run forever. > > That is exactly how I feel, I did not realize (yet) that taking > the error path would always cause a freeze later, I've been assuming > that the timeout was caused by the bus already being stuck, not > that the timeout would cause the bus to get stuck because a > semaphore request must be followed through on. Those options are not mutually exclusive. > If your theory is right we may well want to bump up the timeout > to say 2 or 3 seconds. We never saw a failure with 500ms. That is pretty solid. Yet a true error would likely have catastrophic results. It seems to me that the problem is not when to proceed to error handling, but how the error is handled. Do you have any documentation on that? Should we forcibly set the semaphore to the state that signifies a successful take over? Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html