US 12,008,235 B2
Data storage device and method for rewriting parameters thereof
Te-Kai Wang, New Taipei (TW); and Yu-Da Chen, Taipei (TW)
Assigned to SILICON MOTION, INC., Jhubei (TW)
Filed by Silicon Motion, Inc., Jhubei (TW)
Filed on Jun. 16, 2023, as Appl. No. 18/336,316.
Application 18/336,316 is a continuation of application No. 18/062,075, filed on Dec. 6, 2022, granted, now 11,720,249.
Application 18/062,075 is a continuation of application No. 17/524,914, filed on Nov. 12, 2021, granted, now 11,550,474, issued on Jan. 10, 2023.
Application 17/524,914 is a continuation of application No. 16/929,326, filed on Jul. 15, 2020, granted, now 11,199,970, issued on Dec. 14, 2021.
Application 16/929,326 is a continuation of application No. 16/432,015, filed on Jun. 5, 2019, granted, now 10,754,548, issued on Aug. 25, 2020.
Application 16/432,015 is a continuation of application No. 15/886,012, filed on Feb. 1, 2018, granted, now 10,353,584, issued on Jul. 16, 2019.
Claims priority of provisional application 62/453,567, filed on Feb. 2, 2017.
Claims priority of application No. 107101540 (TW), filed on Jan. 16, 2018.
Prior Publication US 2023/0325079 A1, Oct. 12, 2023
Int. Cl. G06F 12/00 (2006.01); G06F 3/06 (2006.01); G06F 12/02 (2006.01); G11C 16/10 (2006.01); G11C 16/22 (2006.01); G11C 16/26 (2006.01)
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
OG exemplary drawing
 
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.