i2c: octeon: Enable High-Level Controller
authorDavid Daney <ddaney@caviumnetworks.com>
Mon, 25 Apr 2016 14:33:34 +0000 (16:33 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 25 Apr 2016 21:41:13 +0000 (23:41 +0200)
commitd1fbff8944bf88e449ae387abd498e5220a2ee10
tree3202abe91ac094a5e8494ef6f5e8c0d7da4bcc2c
parent30c24b25142a9171d38e8074758b3a370906fc7d
i2c: octeon: Enable High-Level Controller

Use High-Level Controller (HLC) when possible. The HLC can read/write
up to 8 bytes and is completely optional. The most important difference
of the HLC is that it only requires one interrupt for a transfer
(up to 8 bytes) where the low-level read/write requires 2 interrupts
plus one interrupt per transferred byte. Since the interrupts are costly
using the HLC improves the performance. Also, the HLC provides improved
error handling.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Jan Glauber <jglauber@cavium.com>
[wsa: fixed trivial checkpatch warnings]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon.c