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

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

 



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--
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