Hot plugging system and method
AssigneesInventec (Pudong) Technology Corporation, Inventec Corporation
InventorTian-Chao ZHANG
Life of this patent
Estimating the term…
Abstract
A hot plugging system and method are disclosed, in which a pluggable device transmits a request to a host before the pluggable device is pulled out so that the host may select whether preserving a device status, and preserves the device status and then shuts down a power of the pluggable device directly when preserving is selected while shuts down directly the power of the pluggable device when no preserving is selected so that the pluggable device is selected to be recovered or initialized according to the device status, existing or non-existing, after being inserted onto the host again, whereby achieving in a technical efficacy of promoting the hot plugging recovery.
Claims10
A hot plugging system, comprising:
- a pluggable device, transmitting a request before being pulled out;
- and
- a host, comprising:
- a detection module, choosing whether to preserve a device status according to the request after detecting the request;
- a power control module, preserving the device status and shutting down a power of the pluggable device when choosing to preserve the device status, and directly shutting down the power of the pluggable device when choosing not to preserve the device status;
- a pulling-out module, prompting the pluggable device to be pulled out when the power of the pluggable device is shut down, continuously detecting a connection status of the pluggable device, and switching the connection status from an inserted status to a pulled-out status when the pluggable device is pulled out;
- an insertion module, turning on the power of the pluggable device when the connection status is the pulled-out status and the pluggable device is detected;
- a recovery module, recovering a status of the pluggable device according to the device status when the device status exists, and initializing the status of the pluggable device when the device status does not exist;
- and
- a driving module, driving and instantiating the pluggable device according to the recovery module recovers or initialize the status of the pluggable device.
A hot plugging method, applied on environment having a pluggable device and a host, comprising steps of:
- transmitting a request by the pluggable deice before the pluggable device is pulled out from the host;
- and
- choosing by the host whether preserving a device status according to the request after detecting the request;
- preserving the device status and shutting down a power of the pluggable device when choosing to preserve the device status, and directly shutting down the power of the pluggable device when choosing not to preserve the device status;
- prompting the pluggable device to be pulled out when the power of the pluggable device is shut down, continuously detecting a connection status of the pluggable device, and switching the connection status from an inserted status to a pulled-out status when the pluggable device is pulled out;
- turning on the power of the pluggable device by the host when the connection status is the pulled-out status and the pluggable device is detected;
- recovering a status of the pluggable device according to the device status when the device status exists, and initializing the sate of the pluggable device when the device sate does not exist;
- and
- driving and instantiating the pluggable device according to the status of the pluggable device by the host.
Dependencies are inferred from the claim text.