I found that CS may be released too early, ie before Teoc is over.
This is caused in atahost_pio_tctrl.vhd by assigning done <= T4done;
When changing it to done <= Teoc_done, the problem goes away.
Marc