qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] sd: sdhci: correct transfer mode register usage
@ 2017-01-31 12:24 P J P
  2017-01-31 12:24 ` [Qemu-devel] [PATCH 1/2] sd: sdhci: check transfer mode register in multi block transfer P J P
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: P J P @ 2017-01-31 12:24 UTC (permalink / raw)
  To: Qemu Developers; +Cc: Peter Maydell, Wjjzhang, Jiang Xin, Prasad J Pandit

From: Prasad J Pandit <pjp@fedoraproject.org>

Hello,

In SDHCI emulation, the 'Block Count Enable' bit of the Transfer Mode
register is used to control 's->blkcnt' value. One, this bit is not
relevant in single block transfers. Second, Transfer Mode register
value could be set such that 's->blkcnt' would not see an update
during multi block transfers. Thus leading to an infinite loop.

This patch set attempts to correct 'Block Count Enable' bit usage.

Thank you.
--
Prasad J Pandit (2):
  sd: sdhci: check transfer mode register in multi block transfer
  sd: sdhci: block count enable not relevant in single block transfer

 hw/sd/sdhci.c | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

--
2.9.3

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

end of thread, other threads:[~2017-02-08  5:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-31 12:24 [Qemu-devel] [PATCH 0/2] sd: sdhci: correct transfer mode register usage P J P
2017-01-31 12:24 ` [Qemu-devel] [PATCH 1/2] sd: sdhci: check transfer mode register in multi block transfer P J P
2017-02-07 23:12   ` Alistair Francis
2017-02-08  5:17     ` P J P
2017-01-31 12:24 ` [Qemu-devel] [PATCH 2/2] sd: sdhci: block count enable not relevant in single " P J P
2017-02-07 23:15   ` Alistair Francis
2017-02-06  7:55 ` [Qemu-devel] [PATCH 0/2] sd: sdhci: correct transfer mode register usage P J P
2017-02-07 17:29 ` Peter Maydell
2017-02-07 19:12   ` P J P
2017-02-07 21:57     ` Alistair Francis
2017-02-08  5:06       ` P J P

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