def METHOD_NAME(do=lambda: ()):
    timeout = 0
    while True:
        timeout += 1
        self.assertLess(timeout, 20)
        idle = ((yield from dut.bus.read(I2C_XFER_ADDR)) & I2C_IDLE) != 0
        if idle:
            return
        yield