lkml.org 
[lkml]   [2004]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] MMC block removable flag
On Thu, Dec 30, 2004 at 03:14:07AM +0100, Pierre Ossman wrote:
> A MMC card is a highly removable device. This patch makes the block
> layer part of the MMC layer set the removable flag.

I have this patch also floating around, but I've decided it isn't needed.
I believe this flag is to indicate that we have removable media for a
block device rather than to indicate that the block device can be removed.

However, when we insert and remove a MMC card, we create and destroy the
block device itself. Therefore, as far as the block layer is concerned,
the device itself is being inserted and removed, so telling the block
layer that the media is removable is just silly - you can't separate the
flash media from the on-board MMC controller.

(Note: any block device can be removed - you just rmmod the module
supplying the block device driver, but this doesn't mean we mark all
block devices with GENHD_FL_REMOVABLE.)

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.782 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site