Patent attributes
Techniques for reducing dismount time for a peripheral device connected to an external host device are presented. Instead of waiting for a dismount procedure to complete, a reply message indicating that dismount operations have been completed is sent to the external host device. This triggers a message from the external host device that the peripheral device is ready to be safely removed. The peripheral device completes the dismount operations including cache and memory cleanup after the reply message indicating that dismount operations have been completed is sent to the external host device. The dismount operations may be completed under battery power if necessary. This enables quicker unplugging of the peripheral device from the external host device and can allow the peripheral device to transition from a first mode into a second mode faster.