Skip to content

Commit 8fa9c93

Browse files
Shubhrajyoti Dattawsakernel
authored andcommitted
i2c: xiic: return value of xiic_reinit
Check the return value of xiic_reinit. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> Acked-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 96789dc commit 8fa9c93

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/i2c/busses/i2c-xiic.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
381381
int xfer_more = 0;
382382
int wakeup_req = 0;
383383
int wakeup_code = 0;
384+
int ret;
384385

385386
/* Get the interrupt Status from the IPIF. There is no clearing of
386387
* interrupts in the IPIF. Interrupts must be cleared at the source.
@@ -415,7 +416,9 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
415416
* fifos and the next message is a TX with len 0 (only addr)
416417
* reset the IP instead of just flush fifos
417418
*/
418-
xiic_reinit(i2c);
419+
ret = xiic_reinit(i2c);
420+
if (!ret)
421+
dev_dbg(i2c->adap.dev.parent, "reinit failed\n");
419422

420423
if (i2c->rx_msg) {
421424
wakeup_req = 1;

0 commit comments

Comments
 (0)