le: test for transfer doneness based on DMA registers

This works around an issue in which the firmware was hanging partly due
to rx_tc not being incremented under certain circumstances. With my
limited testing, this fixes #15.