Added a device flag which can be used to avoid auto detach at device attach time.