mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anderson Lizardo <anderson.lizardo@gmail.com>
To: Pierre Ossman <drzeus-list@drzeus.cx>,
	Anderson Lizardo <anderson.lizardo@gmail.com>,
	Anderson Briglia <anderson.briglia@indt.org.br>,
	Anderson Lizardo <anderson.lizardo@indt.org.br>,
	linux-omap-open-source@linux.omap.com,
	linux-kernel@vger.kernel.org,
	Carlos Eduardo Aguiar <carlos.aguiar@indt.org.br>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Tony Lindgren <tony@atomide.com>,
	David Brownell <david-b@pacbell.net>
Subject: Re: [patch 0/5] Add MMC password protection (lock/unlock) support
Date: Thu, 29 Dec 2005 15:06:15 -0400	[thread overview]
Message-ID: <5b5833aa0512291106m5142acd5pfb12c4831b60e96b@mail.gmail.com> (raw)
In-Reply-To: <20051215134436.GB6211@flint.arm.linux.org.uk>

On 12/15/05, Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> Reading through the specs I have here, block sizes seem to be all over
> the place.  The MMC card specs seem to imply that any block size can
> be set, from 0 bytes to 2^32-1 bytes.
>
> The PXA MMC interface specification allows the block size to be anything
> from 1 to 1023 bytes, excluding CRC.  It is unclear whether a value of 0
> means 1024.
>
> The MMCI specification allows the block size to be specified as a power
> of two, from 1 to 2048 bytes, excluding CRC.

By "allows" do you mean we can set the block size to arbitrary values
on MMCI too?

The MMC specification v4.1 is clear in one thing: the SET_BLOCKLEN
command should be issued prior to the actual LOCK_UNLOCK command with
*exactly* the password length + 2 bytes (which contains the operation
mode bits and the password length in bytes). The MMC password
unlocking (and other password operations, FWIW) doesn't work on the
OMAP host if the SET_BLOCKLEN command argument and the block size of
the data transfer itself do not match.

--
Anderson Lizardo
Embedded Linux Lab - 10LE
Nokia Institute of Technology - INdT
Manaus - Brazil

  parent reply	other threads:[~2005-12-29 19:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20051213213208.303580000@localhost.localdomain>
2005-12-13 22:03 ` David Brownell
2005-12-14 22:48   ` Anderson Lizardo
2005-12-27 18:48     ` Carlos Aguiar
2005-12-13 22:27 ` Anderson Briglia
2005-12-14  7:07   ` Pierre Ossman
2005-12-14 23:51     ` Anderson Lizardo
2005-12-15  6:49       ` Pierre Ossman
2005-12-15  9:12         ` Russell King
2005-12-15  9:27           ` Pierre Ossman
2005-12-15 10:06             ` Russell King
2005-12-15 13:44               ` Russell King
2005-12-15 16:01                 ` Pierre Ossman
2005-12-29 19:06                 ` Anderson Lizardo [this message]
2005-12-29 20:09                   ` Russell King
2005-12-29 21:23                     ` Anderson Lizardo
2005-12-29 21:37                       ` Russell King
2005-12-29 19:17                 ` Anderson Lizardo

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=5b5833aa0512291106m5142acd5pfb12c4831b60e96b@mail.gmail.com \
    --to=anderson.lizardo@gmail.com \
    --cc=anderson.briglia@indt.org.br \
    --cc=anderson.lizardo@indt.org.br \
    --cc=carlos.aguiar@indt.org.br \
    --cc=david-b@pacbell.net \
    --cc=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap-open-source@linux.omap.com \
    --cc=linux@arm.linux.org.uk \
    --cc=tony@atomide.com \
    /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

all inboxes | Powered by JetHome®