Skip to content

Commit 8d263be

Browse files
Daniel WagnerWolfram Sang
authored andcommitted
i2c: bcm-iproc: Use complete() instead of complete_all()
There is only one waiter for the completion, therefore there is no need to use complete_all(). Let's make that clear by using complete() instead of complete_all(). The usage pattern of the completion is: bcm_iproc_i2c_xfer_single_msg() reinit_completion() ... (activate the transfer) ... wait_for_completion_timeout() Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de> Acked-by: Ray Jui <ray.jui@broadcom.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent 434f14e commit 8d263be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-bcm-iproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static irqreturn_t bcm_iproc_i2c_isr(int irq, void *data)
158158

159159
if (status & BIT(IS_M_START_BUSY_SHIFT)) {
160160
iproc_i2c->xfer_is_done = 1;
161-
complete_all(&iproc_i2c->done);
161+
complete(&iproc_i2c->done);
162162
}
163163

164164
writel(status, iproc_i2c->base + IS_OFFSET);

0 commit comments

Comments
 (0)