mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
The FSI protocol defines two modes of recovery from CRC errors, this implements both: - If the device returns an ECRC (it detected a CRC error in the command), then we simply issue the command again. - If the master detects a CRC error in the response, we send an E_POLL command which requests a resend of the response without actually re-executing the command (which could otherwise have unwanted side effects such as dequeuing a FIFO twice). Signed-off-by: Benjamin Herrenschmidt <[email protected]> Reviewed-by: Christopher Bostic <[email protected]> Tested-by: Joel Stanley <[email protected]> --- Note: This was actually tested by removing some of my fixes, thus causing us to hit occasional CRC errors during high LPC activity.