From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Support for read-only MMC cards
Date: Sat, 04 Jun 2005 22:24:14 +0200 [thread overview]
Message-ID: <42A20DEE.5040702@drzeus.cx> (raw)
In-Reply-To: <20050604211604.C23449@flint.arm.linux.org.uk>
Russell King wrote:
>Can't we set mmc_card_readonly status if !CCC_BLOCK_WRITE ? Would that
>not simplify the code in the open method as well?
>
>
>
Well, that depends on what we want mmc_card_readonly to signify. My
thought was that it meant the entire card was read only (as should be
the case with the external ro-switch on SD cards). This might not be the
same thing as that the card lacks block writes. E.g. there are cards
with combined I/O and storage functionality.
For most cases the lack of CCC_BLOCK_WRITE will mean read-only for
everything that the card can do. But I'm not convinced that's the case
for all cards. The fact that there are command classes for streamed
writes should indicate possible corner cases.
prev parent reply other threads:[~2005-06-04 20:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-04 19:54 [PATCH] Support for read-only MMC cards Pierre Ossman
2005-06-04 19:58 ` Russell King
2005-06-04 20:05 ` Pierre Ossman
2005-06-04 20:07 ` Russell King
2005-06-04 20:14 ` Pierre Ossman
2005-06-04 20:16 ` Russell King
2005-06-04 20:24 ` Pierre Ossman [this message]
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=42A20DEE.5040702@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox