Skip to content

What is the correct ret val? #14

Description

@danielkucera

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions