-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
SITSW-9896
-
11.02.00
-
12.00.00
-
am62p-sk
In the MMCSD driver, the CMD6 timeout is set to the value read from the GENERIC_CMD6_TIME field of the EXTCSD register
/* Get Generic Switch Command Timeout value */
obj->switchCmdTimeout = (obj->tempDataBuf[MMCSD_GENERIC_CMD6_TIME_INDEX]) * 10;
This is incorrect as the JEDEC spec mentions that the timeout values could be different for specific operations.
For instance, the partition switch operation has different timeout value
![]()
In case the PARTITION_SWITCH_TIME value is greater than the GENERIC_CMD6_TIME, there is a possibility that the driver times out before the partition switch operation is completed resulting in failure.