i2c: mxs: fix error message in pio transfer
authorJanusz Użycki <j.uzycki@elproma.com.pl>
Tue, 9 Sep 2014 16:19:30 +0000 (18:19 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 20 Sep 2014 12:58:19 +0000 (14:58 +0200)
commita4780d039ca5c3ef318db084f1bfc6ebed6876c8
treec566a90b04f75683b249a9a96821132eb261ab5b
parent979bbf7b7ae75cfc06e09d09eda38009a3bdc4a4
i2c: mxs: fix error message in pio transfer

If I2C_M_RD flag is set SELECT command is sent and afterward READ
command. The patch fixes READ command to return READ failure error
message instead of SELECT failure error message.

Signed-off-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mxs.c