Re: [RFC/PATCH V2b]: mmc: card/core: support password locked cards

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

 



Sorry, forgot to attach the patch file.

Thanks Arnd for the input.

I've prepared a RFC-Version of the patch.

I'm not quite happy calling mmc_sd_resume() from the rescan ioctl. Unfortunately the rescan needed it twofold:
1. Force the SD layer to reread scr, ssr, etc. by somehow reaching mmc_sd_setup_card()
2. Remove GENHD_FL_NO_PART_SCAN from the disks flags and trigger a ioctl BLKRRPART on the block device. Which I would prefer to happen within the kernel.

Either one should introduce a flag in the mmc_card struct that forces a rescan of the sd card or even remove it completely and probe it again. Or there should be a command like mmc_card_reinit() which restarts mmc_sd_setup_card() along the way.
What is your opinion?

Regards,
 Peter

Attachment: 0001-Add-basic-support-for-password-protected-locked-SD-c.patch
Description: Binary data


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

  Powered by Linux