dev: Fix draining for UFSHostDevice and FlashDevice
authorSascha Bischoff <sascha.bischoff@ARM.com>
Thu, 29 Oct 2015 12:48:24 +0000 (08:48 -0400)
committerSascha Bischoff <sascha.bischoff@ARM.com>
Thu, 29 Oct 2015 12:48:24 +0000 (08:48 -0400)
commit84b3452f67007ab46e0a59f8227b42b6ec6557f0
tree2236d0201c2459532c2bd26ed570c53a6a6fcad1
parent8427d05daa39d45598ff846fe4cf66b132b8cb78
dev: Fix draining for UFSHostDevice and FlashDevice

This patch fixes the drain logic for the UFSHostDevice and the
FlashDevice. In the case of the FlashDevice, the logic for CheckDrain
needed to be reversed, whilst in the case of the UFSHostDevice check
drain was never being called. In both cases the system would never
complete draining if the initial attampt to drain failed.
src/dev/arm/flash_device.cc
src/dev/arm/ufs_device.cc