From: Pierre Ossman <drzeus-list@drzeus.cx>
To: LKML <linux-kernel@vger.kernel.org>,
Russell King <rmk+lkml@arm.linux.org.uk>
Subject: [PATCH] MMC block removable flag
Date: Thu, 30 Dec 2004 03:14:07 +0100 [thread overview]
Message-ID: <41D3646F.5050408@drzeus.cx> (raw)
[-- Attachment #1: Type: text/plain, Size: 132 bytes --]
A MMC card is a highly removable device. This patch makes the block
layer part of the MMC layer set the removable flag.
--
Pierre
[-- Attachment #2: mmc-removable.patch --]
[-- Type: text/x-patch, Size: 499 bytes --]
Index: linux-wbsd/drivers/mmc/mmc_block.c
===================================================================
--- linux-wbsd/drivers/mmc/mmc_block.c (revision 99)
+++ linux-wbsd/drivers/mmc/mmc_block.c (revision 100)
@@ -384,6 +384,7 @@
md->disk->private_data = md;
md->disk->queue = md->queue.queue;
md->disk->driverfs_dev = &card->dev;
+ md->disk->flags |= GENHD_FL_REMOVABLE;
sprintf(md->disk->disk_name, "mmcblk%d", devidx);
sprintf(md->disk->devfs_name, "mmc/blk%d", devidx);
next reply other threads:[~2004-12-30 2:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-30 2:14 Pierre Ossman [this message]
2004-12-30 9:54 ` [PATCH] MMC block removable flag Russell King
2004-12-30 15:56 ` Pierre Ossman
2005-01-07 12:39 ` Russell King
2005-01-07 14:00 ` Andries Brouwer
2005-01-08 11:09 ` Russell King
2005-01-08 12:05 ` Christoph Hellwig
2005-01-08 12:45 ` Russell King
2005-01-08 13:07 ` Andries Brouwer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41D3646F.5050408@drzeus.cx \
--to=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+lkml@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.