From: Frank Schaefer Date: Sun, 19 Jan 2014 21:48:35 +0000 (-0300) Subject: [media] em28xx-i2c: fix the error code for unknown errors X-Git-Tag: v3.15-rc1~85^2~388 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=123a17d1427a2d7ad9142df1f6543c578864a0dd;p=pandora-kernel.git [media] em28xx-i2c: fix the error code for unknown errors Commit e63b009d6e "em28xx-i2c: Fix error code for I2C error transfers" changed the code to return -ETIMEDOUT on all unknown errors. But the proper error code for unknown errors is -EIO. So only report -ETIMEDOUT in case of the errors 0x02 and 0x04, which are according to Mauro Carvalho Chehab's tests related to i2c clock stretching and return -EIO for the rest. Signed-off-by: Frank Schäfer Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed