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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to