From: Pierre Ossman <drzeus-list@drzeus.cx>
To: "Winkler, Tomas" <tomas.winkler@intel.com>
Cc: marcel@holtmann.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2 V2] MMC: cleanup endianity conversions and style problems
Date: Sun, 6 Jul 2008 20:13:26 +0200 [thread overview]
Message-ID: <20080706201326.5a9feda1@mjolnir.drzeus.cx> (raw)
In-Reply-To: <C07C4589BE74A34981C3C3525EE1F80104198D56@hasmsx412.ger.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]
On Sun, 6 Jul 2008 02:54:56 +0300
"Winkler, Tomas" <tomas.winkler@intel.com> wrote:
> >
> >NAK in its current form. The data needs to be DMA:able, which means
> >that the stack cannot be used.
> >
> I see, anyway only the last hunk is problematic in this matter.
>
All of them actually. The other registers are possible DMA victims when
on an SPI host (which is also the only code path your patch modifies).
> So we need to define raw_src as __be32 and translate it in
> mmc_decode_src
I'd prefer if raw_scr is in native endian. The conversions should be
done at the entry/exit points IMO.
> I will get to the MMC spec only tomorrow but it sound strange that SDIO
> registers are in little endian and these are in big.
I'd say that it's SDIO that's the odd man. Protocols tend to use big
endian after all. A reason for the difference is probably that SDIO
should be regarded as a register interface, not as a bus protocol.
Different worlds, different norms...
Rgds
--
-- Pierre Ossman
Linux kernel, MMC maintainer http://www.kernel.org
rdesktop, core developer http://www.rdesktop.org
WARNING: This correspondence is being monitored by the
Swedish government. Make sure your server uses encryption
for SMTP traffic and consider using PGP for end-to-end
encryption.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-07-06 18:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-05 16:52 [PATCH 1/2 V2] MMC: fix spares errors of sdhci.c Tomas Winkler
2008-07-05 16:52 ` [PATCH 2/2 V2] MMC: cleanup endianity conversions and style problems Tomas Winkler
2008-07-05 23:26 ` Pierre Ossman
2008-07-05 23:54 ` Winkler, Tomas
2008-07-06 18:13 ` Pierre Ossman [this message]
2008-07-05 23:30 ` [PATCH 1/2 V2] MMC: fix spares errors of sdhci.c Pierre Ossman
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=20080706201326.5a9feda1@mjolnir.drzeus.cx \
--to=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=tomas.winkler@intel.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®