qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 00/18] SDCard: bugfixes, support UHS-I (part 5)
@ 2018-01-23  3:30 Philippe Mathieu-Daudé
  2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 01/18] sdcard: Don't always set the high capacity bit Philippe Mathieu-Daudé
                   ` (17 more replies)
  0 siblings, 18 replies; 36+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-01-23  3:30 UTC (permalink / raw)
  To: Alistair Francis, Peter Maydell, Igor Mitsyanko
  Cc: Philippe Mathieu-Daudé, qemu-devel, Edgar E . Iglesias,
	Prasad J Pandit, Peter Crosthwaite, Andrzej Zaborowski

Some refactors, few bugfixes, better SD/SPI support.

With this series apply, machines can use cards in UHS-I mode.
(mostly imported from Alistair Francis work)

MMC mode split out for another series.

Since v2:
- split again in 2... other part is cleanup/tracing

Since v1:
- rewrote mostly all patches to keep it simpler.

$ git backport-diff
001/18:[0003] [FC] 'sdcard: Don't always set the high capacity bit'
002/18:[down] 'sdcard: update the CSD CRC register regardless the CSD structure version'
003/18:[down] 'sdcard: fix the 'maximum data transfer rate' to 25MHz'
004/18:[down] 'sdcard: clean the SCR register and add few comments'
005/18:[down] 'sdcard: remove commands from unsupported old MMC specification'
006/18:[down] 'sdcard: simplify using the ldst API'
007/18:[down] 'sdcard: use the correct masked OCR in the R3 reply'
008/18:[down] 'sdcard: use the registerfields API for the CARD_STATUS register masks'
009/18:[down] 'sdcard: handles more commands in SPI mode'
010/18:[down] 'sdcard: handle CMD54 (SDIO)'
011/18:[down] 'sdcard: check the card is in correct state for APP CMD (CMD55)'
012/18:[down] 'sdcard: warn if host uses an incorrect address for APP CMD (CMD55)'
013/18:[down] 'sdcard: simplify SEND_IF_COND (CMD8)'
014/18:[down] 'sdcard: simplify SD_SEND_OP_COND (ACMD41)'
015/18:[down] 'sdcard: add SD SEND_TUNING_BLOCK (CMD19)'
016/18:[down] 'sdcard: add a 'uhs' property, update the OCR register ACCEPT_SWITCH_1V8 bit'
017/18:[down] 'sdcard: implement the UHS-I SWITCH_FUNCTION entries (Spec v3)'
018/18:[0006] [FC] 'sdcard: add an enum for the SD PHY Spec version'

Based-on: 20180123032135.28863-13-f4bug@amsat.org

Philippe Mathieu-Daudé (18):
  sdcard: Don't always set the high capacity bit
  sdcard: update the CSD CRC register regardless the CSD structure version
  sdcard: fix the 'maximum data transfer rate' to 25MHz
  sdcard: clean the SCR register and add few comments
  sdcard: remove commands from unsupported old MMC specification
  sdcard: simplify using the ldst API
  sdcard: use the correct masked OCR in the R3 reply
  sdcard: use the registerfields API for the CARD_STATUS register masks
  sdcard: handles more commands in SPI mode
  sdcard: handle CMD54 (SDIO)
  sdcard: check the card is in correct state for APP CMD (CMD55)
  sdcard: warn if host uses an incorrect address for APP CMD (CMD55)
  sdcard: simplify SEND_IF_COND (CMD8)
  sdcard: simplify SD_SEND_OP_COND (ACMD41)
  sdcard: add SD SEND_TUNING_BLOCK (CMD19)
  sdcard: add a 'uhs' property, update the OCR register ACCEPT_SWITCH_1V8 bit
  sdcard: implement the UHS-I SWITCH_FUNCTION entries (Spec v3)
  sdcard: add an enum for the SD PHY Spec version

 hw/sd/sd.c         | 501 +++++++++++++++++++++++++++++++++++++----------------
 hw/sd/trace-events |   1 +
 2 files changed, 354 insertions(+), 148 deletions(-)

-- 
2.15.1

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2018-02-08 23:46 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-23  3:30 [Qemu-devel] [PATCH v3 00/18] SDCard: bugfixes, support UHS-I (part 5) Philippe Mathieu-Daudé
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 01/18] sdcard: Don't always set the high capacity bit Philippe Mathieu-Daudé
2018-01-31 16:15   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 02/18] sdcard: update the CSD CRC register regardless the CSD structure version Philippe Mathieu-Daudé
2018-01-31 16:16   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 03/18] sdcard: fix the 'maximum data transfer rate' to 25MHz Philippe Mathieu-Daudé
2018-01-31 16:17   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 04/18] sdcard: clean the SCR register and add few comments Philippe Mathieu-Daudé
2018-01-31 16:18   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 05/18] sdcard: remove commands from unsupported old MMC specification Philippe Mathieu-Daudé
2018-01-31 16:59   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 06/18] sdcard: simplify using the ldst API Philippe Mathieu-Daudé
2018-02-08 23:46   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 07/18] sdcard: use the correct masked OCR in the R3 reply Philippe Mathieu-Daudé
2018-01-31 17:01   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 08/18] sdcard: use the registerfields API for the CARD_STATUS register masks Philippe Mathieu-Daudé
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 09/18] sdcard: handles more commands in SPI mode Philippe Mathieu-Daudé
2018-02-01  0:11   ` Alistair Francis
2018-02-01  7:39     ` Philippe Mathieu-Daudé
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 10/18] sdcard: handle CMD54 (SDIO) Philippe Mathieu-Daudé
2018-02-01  0:12   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 11/18] sdcard: check the card is in correct state for APP CMD (CMD55) Philippe Mathieu-Daudé
2018-02-01  0:27   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 12/18] sdcard: warn if host uses an incorrect address " Philippe Mathieu-Daudé
2018-02-01  0:27   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 13/18] sdcard: simplify SEND_IF_COND (CMD8) Philippe Mathieu-Daudé
2018-02-01  0:33   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 14/18] sdcard: simplify SD_SEND_OP_COND (ACMD41) Philippe Mathieu-Daudé
2018-02-02  0:55   ` Alistair Francis
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 15/18] sdcard: add SD SEND_TUNING_BLOCK (CMD19) Philippe Mathieu-Daudé
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 16/18] sdcard: add a 'uhs' property, update the OCR register ACCEPT_SWITCH_1V8 bit Philippe Mathieu-Daudé
2018-01-25 10:30   ` Philippe Mathieu-Daudé
2018-01-25 10:37     ` Philippe Mathieu-Daudé
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 17/18] sdcard: implement the UHS-I SWITCH_FUNCTION entries (Spec v3) Philippe Mathieu-Daudé
2018-01-23  3:30 ` [Qemu-devel] [PATCH v3 18/18] sdcard: add an enum for the SD PHY Spec version Philippe Mathieu-Daudé
2018-02-01  0:41   ` Alistair Francis

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).