sd: sdhci: mask transfer mode register value
commit8b20aefac4ee8874bb9c8826e4b30e1dc8cd7511
authorPrasad J Pandit <pjp@fedoraproject.org>
Tue, 28 Feb 2017 12:08:14 +0000 (28 12:08 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 12:08:14 +0000 (28 12:08 +0000)
treea36c4b71c44afb871ffe1b87acea92e9d35f2eb9
parent373442ea3a96249991cfad3fc0e83fca5f8558d5
sd: sdhci: mask transfer mode register value

In SDHCI protocol, the transfer mode register is defined
to be of 6 bits. Mask its value with '0x0037' so that an
invalid value could not be assigned.

Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Message-id: 20170214185225.7994-2-ppandit@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/sd/sdhci.c