]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
i2c: octeon: Enable High-Level Controller
authorDavid Daney <ddaney@caviumnetworks.com>
Mon, 25 Apr 2016 14:33:34 +0000 (16:33 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 20 Jun 2017 10:17:00 +0000 (12:17 +0200)
commitbd58fb158c9c0e9daef47f6b43c20253f116043a
tree10f19f7e04564b6976222c759c3fb75a3ee25078
parent506f62d7ee3f4e306cb3346c6721b71ee3c48592
i2c: octeon: Enable High-Level Controller

BugLink: https://bugs.launchpad.net/bugs/1688132
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>
(cherry picked from commit d1fbff8944bf88e449ae387abd498e5220a2ee10)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/i2c/busses/i2c-octeon.c