]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
i2c: octeon: Prevent error message on bus error
authorJan Glauber <jglauber@cavium.com>
Wed, 7 Mar 2018 16:11:33 +0000 (17:11 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:29:07 +0000 (08:29 -0500)
commit2d335011f7fae859ab4c6284364f3f4046a97c79
tree7796e0d376ca6504f61a5447be85b018f48688bf
parent08e05b6bc87e20f5c42746ec170e39479caecb95
i2c: octeon: Prevent error message on bus error

BugLink: https://bugs.launchpad.net/bugs/1754076
The error message:

[Fri Feb 16 13:42:13 2018] i2c-thunderx 0000:01:09.4: unhandled state: 0

is mis-leading as state 0 (bus error) is not an unknown state.

Return -EIO as before but avoid printing the message. Also rename
STAT_ERROR to STATE_BUS_ERROR.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
(cherry picked from commit 7c4246797b84e55e2dfaaf8a18033de9df7c18c1)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/i2c/busses/i2c-octeon-core.c
drivers/i2c/busses/i2c-octeon-core.h