From: Holger Schurig <holgerschurig@gmail.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org,
avi.shchislowski@sandisk.com, alex.lemberg@sandisk.com
Cc: Holger Schurig <holgerschurig@gmail.com>
Subject: [RFC 0/6] mmc: Field Firmware Update
Date: Fri, 13 Nov 2015 15:56:06 +0100 [thread overview]
Message-ID: <1447426572-11756-1-git-send-email-holgerschurig@gmail.com> (raw)
There have been some attempts to add FFU (field firmware update). The last
AFAIK in Nov 2014, http://www.spinics.net/lists/linux-mmc/msg29324.html
But it seems that the committers weren't persistent enought.
I took the liberty to take Avi's patch and make it hopefully
maintainer-review friendly.
The first 5 patches just move functions out of mmc_test.c into core.c. Those
functions will later be used by both mmc_test.c and mmc_ffu.c. Contrary to
Avi's patch I didn't add static helper functions to mmc_test.c, e.g.
there's no mmc_test_prepare_mrq() that calls mmc_prepare_mrq(). It's
simpler to call mmc_prepare_mrq() directly. It's just one more dereference
from *mmc_card to *mmc_test_card anyway.
The patch [6/6] is http://www.spinics.net/lists/linux-mmc/msg29326.html, but
with less checkpatch warnings. And it doesn't use mmc_send_ext_csd()
anymore, which has been deleted since November.
I'm sending this patch as RFC now. It compiles (for me). But I get the
firmware update file from Kingston only next Tuesday. That means that so
far I haven't been testing it. It won't do anything without the proper
user-space command in mmc-utils anyway :-)
Comments welcome (I intent to get this patch into the kernel)
The patch is against Linux GIT (v4.3-11748-g46d862b).
Holger
drivers/mmc/card/Kconfig | 11 +
drivers/mmc/card/Makefile | 1 +
drivers/mmc/card/block.c | 5 +
drivers/mmc/card/mmc_ffu.c | 489 ++++++++++++++++++++++++++++++++++++++++++++
drivers/mmc/card/mmc_test.c | 235 +++++----------------
drivers/mmc/core/core.c | 134 ++++++++++++
drivers/mmc/core/mmc_ops.c | 4 +-
include/linux/mmc/card.h | 1 +
include/linux/mmc/core.h | 41 ++++
include/linux/mmc/mmc.h | 6 +
10 files changed, 739 insertions(+), 188 deletions(-)
create mode 100644 drivers/mmc/card/mmc_ffu.c
--
2.1.4
next reply other threads:[~2015-11-13 14:56 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-13 14:56 Holger Schurig [this message]
2015-11-13 14:56 ` [PATCH 1/6] mmc: move mmc_prepare_mrq() to core.c Holger Schurig
2015-11-13 14:56 ` [PATCH 2/6] mmc: move mmc_wait_busy() to core Holger Schurig
2015-11-13 14:56 ` [PATCH 3/6] mmc: move mmc_check_result() to core.c Holger Schurig
2015-11-13 14:56 ` [PATCH 4/6] mmc: move mmc_simple_transfer() " Holger Schurig
2015-11-13 14:56 ` [PATCH 5/6] mmc: move mmc_send_cxd_data() " Holger Schurig
2015-11-13 14:56 ` [PATCH 6/6] mmc: eMMC Field Firmware Update support Holger Schurig
2015-11-20 14:20 ` [RFC 0/6] mmc: Field Firmware Update Alan Cooper
2015-11-23 11:40 ` Avi Shchislowski
[not found] ` <CAOpc7mHbM8EYYNRKR+pKnzc0wf1DR1ojX-iFuDWDYyquC3EVZg@mail.gmail.com>
2015-12-15 15:35 ` Ulf Hansson
2015-12-22 8:15 ` Holger Schurig
2015-12-22 8:55 ` Ulf Hansson
2015-12-22 8:57 ` Ulf Hansson
2015-12-22 18:44 ` Olof Johansson
[not found] ` <CAG=SpYGf7czPwLrJVrq49n_Lhph33fmyKq-Nkm6=c0fB1Gn9_w@mail.gmail.com>
2016-01-14 12:50 ` Ulf Hansson
2015-12-28 14:12 ` Alex Lemberg
2016-01-14 13:16 ` Ulf Hansson
2016-04-02 0:23 ` Gwendal Grignou
2016-04-04 11:50 ` Ulf Hansson
2016-04-13 22:33 ` Gwendal Grignou
2016-04-14 8:35 ` Ulf Hansson
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=1447426572-11756-1-git-send-email-holgerschurig@gmail.com \
--to=holgerschurig@gmail.com \
--cc=alex.lemberg@sandisk.com \
--cc=avi.shchislowski@sandisk.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).