move wait_queue initialization to zynq open