Date:2011-06-13 17:37:42 (8 years 1 month ago)
Author:Werner Almesberger
Commit:8c008335429f8053b16dc0522c4702ba41427a61
Message:lib/cwtest.c (start_test_mode_231): don't insist on IRQ_PLL_LOCK

We seem to have a path where the PLL is already locked when we get
there. We thus never get an interrupt and hang.

Pending further investigation, just use a timeout that is longer
than the worst-case PLL lock time.
Files: tools/lib/cwtest.c (1 diff)

Change Details

tools/lib/cwtest.c
9090{
9191    atrf_reg_write(dsc, REG_PART_NUM, 0x54); /*13 */
9292    atrf_reg_write(dsc, REG_PART_NUM, 0x46); /*14 */
93
93
9494    atrf_reg_write(dsc, REG_TRX_STATE, TRX_CMD_PLL_ON); /*15 */
95    wait_for_interrupt(dsc, IRQ_PLL_LOCK, IRQ_PLL_LOCK, 10, 0); /*16 */
95    wait_for_interrupt(dsc, IRQ_PLL_LOCK, IRQ_PLL_LOCK, 10, 20); /*16 */
9696
9797    atrf_reg_write(dsc, REG_TRX_STATE, TRX_CMD_TX_START); /*17 */
9898}

Archive Download the corresponding diff file



interactive