I tried, but I got that: [73462.880814] mmcblk0: error -110 sending status command, retrying [73462.880875] mmcblk0: timed out sending r/w cmd command, card status 0xe00 [73462.908904] mmcblk0: timed out sending r/w cmd command, card status 0x400e00 [73462.999342] mmcblk0: timed out sending r/w cmd command, card status 0x400e00 [73463.026402] mmcblk0: timed out sending r/w cmd command, card status 0x400e00 [73463.052944] mmcblk0: timed out sending r/w cmd command, card status 0x400e00 [73463.119002] mmc0: tried to reset card [73497.951175] omap_hsmmc 48060000.mmc: __mmc_blk_ioctl_cmd: data error -110 [73499.171563] mmcblk0: timed out sending r/w cmd command, card status 0x400b00 Le mar. 30 mai 2017 à 17:19, Micka <mickamusset@xxxxxxxxx> a écrit : > > Hi, > > > I wanted to know if it's possible to send the CMD56 with the argument: > > > [0] “1” (Read Mode) > [1:7] “0010 000” > (Index = 0x10) > [8:31] All ‘0’ (Reserved) > > > > > The code: > > > int ret = 0; > struct mmc_ioc_cmd idata; > memset(&idata, 0, sizeof(idata)); > memset(ext_csd, 0, sizeof(__u8) * 512); > idata.write_flag = 0; > idata.opcode = 56; > idata.arg = 0x21; > idata.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | MMC_CMD_ADTC; > idata.blksz = 512; > idata.blocks = 1; > mmc_ioc_cmd_set_data(idata, ext_csd); > > > > I want to get: > > > byte[96-97] Endurance (Remain Life) (%) > > > > > is it possible ? -- 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