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 data out message from a host, wherein the data out message is arranged to rewrite a first mode page setting among the plurality of mode page settings, the controller further determines, based on a reference array, whether the data out message will change the mode parameters which cannot be rewritten in the first mode page setting, and the reference array stores a rewriteable setting for each bit of the first mode page setting,
wherein when determining, based on the reference array, that the data out message will change the mode parameters which cannot be rewritten in the first mode page setting, the controller rejects to change the mode parameters which cannot be rewritten in the first mode page setting.
|