I see following in my dmesg:
[655174.290234] rtsx_pci_sdmmc rtsx_pci_sdmmc.0: __mmc_blk_ioctl_cmd: cmd error -22
[655177.428399] mmcblk0: p1
It's printed after calling:
ret = ioctl(fd, MMC_IOC_CMD, &idata);
so I've added some debug printf:
printf("write ret: %d\n", ret);
and the value is:
Writing new CID: 5d53424c32424d31013917ca53010459
write ret: -1
Success! Remove and reinsert SD card to check new CID.
But my CID is not changed.
What is the correct ret val for that ioctl?
I see following in my dmesg:
It's printed after calling:
so I've added some debug printf:
and the value is:
But my CID is not changed.
What is the correct ret val for that ioctl?