ide: move request type specific code from ide_end_drive_cmd() to callers (v3)