Re: [PATCH v2] mmc-utils: add eMMC 5.0 FFU support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Grant,

Still waiting on the remaining warning/error, and also noticed a
trivial typo:

On Thu, Jan 23 2014, Grant Grundler wrote:
> +	/* 2) Host send CMD6 to set MODE_CONFIG[30] = 0x01 */
> +	memset(&idata, 0, sizeof(idata));
> +	idata.opcode = MMC_SWITCH;
> +        idata.arg = (MMC_SWITCH_MODE_WRITE_BYTE << 24) |
> +			(30 << 16) |	/* index */
> +			(1 << 8) |	/* value */
> +			EXT_CSD_CMD_SET_NORMAL;
> +	idata.flags = MMC_RSP_R1B | MMC_CMD_AC;;
> +	ret = ioctl(fd, MMC_IOC_CMD, &idata);
> +	if (ret) {
> +		retcode = ret;
> +		printf("ioctl: MMC_SWITCH (eMMC 5.0 FW Update) %m\n");
> +		goto abort_update;
> +	}
> +
> +	/* 2) send CMD25 0x0000FFFF */

I think that first 2) should be a 1).  Thanks,

- Chris.
-- 
Chris Ball   <chris@xxxxxxxxxx>   <http://printf.net/>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux