Several fixes for the AVR32 PATA driver