* Question about GENHD_FL_REMOVABLE flag for eMMC cards...
@ 2010-06-07 6:39 aparna m
2010-06-07 7:13 ` Adrian Hunter
0 siblings, 1 reply; 2+ messages in thread
From: aparna m @ 2010-06-07 6:39 UTC (permalink / raw)
To: linux-mmc
Hello,
I see a comment in the MMC block layer drivers/mmc/card/block.c that
GENHD_FL_REMOVABLE should not be set for MMC block devices.
How about the case of eMMC cards that are embedded on the chip.
In that case, the eMMC card cannot be removed nor inserted and so the
block device also cannot be removed.
I guess eMMC falls under the case that it is a permanent block device
and a permanent media.
How should this be set for this case? Please correct me if I am wrong.
Thanks,
Aparna.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Question about GENHD_FL_REMOVABLE flag for eMMC cards...
2010-06-07 6:39 Question about GENHD_FL_REMOVABLE flag for eMMC cards aparna m
@ 2010-06-07 7:13 ` Adrian Hunter
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Hunter @ 2010-06-07 7:13 UTC (permalink / raw)
To: aparna m; +Cc: linux-mmc@vger.kernel.org
aparna m wrote:
> Hello,
>
> I see a comment in the MMC block layer drivers/mmc/card/block.c that
> GENHD_FL_REMOVABLE should not be set for MMC block devices.
> How about the case of eMMC cards that are embedded on the chip.
> In that case, the eMMC card cannot be removed nor inserted and so the
> block device also cannot be removed.
> I guess eMMC falls under the case that it is a permanent block device
> and a permanent media.
>
> How should this be set for this case? Please correct me if I am wrong.
Mostly it is an issue with unsafe resume (see CONFIG_MMC_UNSAFE_RESUME)
There is mmc_assume_removable module parameter (see drivers/mmc/core/core.c)
And there is the mmc_host capability flag MMC_CAP_NONREMOVABLE (see
include/linux/mmc/host.h)
> Thanks,
> Aparna.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-07 7:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-07 6:39 Question about GENHD_FL_REMOVABLE flag for eMMC cards aparna m
2010-06-07 7:13 ` Adrian Hunter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.