[PATCH v2 5/8] mfd: cros_ec: fail early if we cannot identify the EC

2017-08-11 Thread Thierry Escande
From: Vincent Palatin If we cannot communicate with the EC chip to detect the protocol version and its features, it's very likely useless to continue. Else we will commit all kind of uninformed mistakes (using the wrong protocol, the wrong buffer size, mixing the EC with

[PATCH v2 5/8] mfd: cros_ec: fail early if we cannot identify the EC

2017-08-11 Thread Thierry Escande
From: Vincent Palatin If we cannot communicate with the EC chip to detect the protocol version and its features, it's very likely useless to continue. Else we will commit all kind of uninformed mistakes (using the wrong protocol, the wrong buffer size, mixing the EC with other chips).