[openEuler-5.10 104/557] libata: fix checking of DMA state