/* This function is used to change the eMMC bus speed.  */
s32 XSdPs_Change_MmcBusSpeed(XSdPs *InstancePtr)
/* This function is used to change the eMMC bus speed.  */
s32 XSdPs_Change_MmcBusSpeed(XSdPs *InstancePtr)
{
    s32 Status;
    u32 Arg;
    Status = XSdPs_CalcBusSpeed(InstancePtr, &Arg);
    if (Status != XST_SUCCESS) {
        Status = XST_FAILURE;
        goto RETURN_PATH;
    }
    Status = XSdPs_CmdTransfer(InstancePtr, CMD6, Arg, 0U);
    if (Status != XST_SUCCESS) {
        Status = XST_FAILURE;
        goto RETURN_PATH;
    }
    Status = XSdps_CheckTransferDone(InstancePtr);
    if (Status != XST_SUCCESS) {
        Status = XST_FAILURE;
    }
    Status = XST_SUCCESS;
RETURN_PATH:
    return Status;
}