[stgt] [PATCH] MMC: add a dedicated backend for MMC so that supported-opcode map works

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Fri Aug 22 12:16:17 CEST 2014


On Wed, 20 Aug 2014 16:45:38 -0700
Ronnie Sahlberg <ronniesahlberg at gmail.com> wrote:

> MMC has been broken for a while since some of the vital opcodes
> (GET_CONFIGURATION) and friends are not in the supported opcode
> whitelist in bs_rdwr.c.
> The real problem is that we have a bs_rdwr.c backend for SBC and we
> piggyback on this SBC backend also for the MMC emulation.
> 
> Add defines for the missing MMC opcodes and create a new backend
> dedicated for MMC that has the proper whitelist for MMC opcodes.
> This new backend is actually part of bs_rdwr.c and shares all the
> code with the SBC based backend.
> However the new MMC backend will have a different name "mmc" to indicate
> it is for the MMC emulation and it comes with a supported opcode
> whitelist that is appropriate for MMC devices.
> 
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg at gmail.com>
> ---
>  usr/bs_rdwr.c |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++----
>  usr/mmc.c     |    6 +++---
>  usr/scsi.h    |    9 +++++++++
>  3 files changed, 62 insertions(+), 7 deletions(-)

Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list