CPC G06F 3/0605 (2013.01) [G06F 3/0619 (2013.01); G06F 3/0634 (2013.01); G06F 3/0679 (2013.01); G06F 12/0246 (2013.01); G11C 16/10 (2013.01); G11C 16/22 (2013.01); G11C 16/26 (2013.01); G06F 2212/72 (2013.01); G06F 2212/7206 (2013.01); G06F 2212/7207 (2013.01); G06F 2212/7209 (2013.01)] | 20 Claims |
1. A data storage device comprising:
a flash memory storing a firmware, wherein the firmware comprises a plurality of mode page settings, and each mode page setting comprises a plurality of mode parameters; and
a controller receiving a mode selection command from a host, wherein, in response to the mode selection command, the controller sends a ready-to-transfer message to the host, to further receive a data out message from the host that is sent by the host in response to the ready-to-transfer message:
wherein:
the ready-to-transfer message and the data out message are universal flash storage (UFS) protocol information unit (UPIU) messages;
the data out message is arranged to rewrite a first mode page setting among the plurality of mode page settings;
in response to the data out message, the controller determines whether the data out message will change mode parameters which cannot be rewritten in the first mode page setting;
when determining that the data out message will not change the mode parameters which cannot be rewritten in the first mode page setting, the controller adopts new mode parameters issued through the data out message for the first mode page setting; and
when determining that the data out message will change the mode parameters which cannot be rewritten in the first mode page setting, the controller refuses to adopt the new mode parameters issued through the data out message for the first mode page setting.
|