From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPuBj-0000bs-TO for qemu-devel@nongnu.org; Mon, 04 Jun 2018 14:26:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPuBj-00028h-3h for qemu-devel@nongnu.org; Mon, 04 Jun 2018 14:26:39 -0400 MIME-Version: 1.0 In-Reply-To: <20180603000827.30872-6-f4bug@amsat.org> References: <20180603000827.30872-1-f4bug@amsat.org> <20180603000827.30872-6-f4bug@amsat.org> From: Alistair Francis Date: Mon, 4 Jun 2018 11:26:05 -0700 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 5/8] hw/sd/ssi-sd: Force cards connected in SPI mode to use Spec v1.10 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= Cc: Alistair Francis , Peter Maydell , Paolo Bonzini , Peter Crosthwaite , qemu-arm , "qemu-devel@nongnu.org Developers" On Sat, Jun 2, 2018 at 5:08 PM, Philippe Mathieu-Daud=C3=A9 wrote: > Signed-off-by: Philippe Mathieu-Daud=C3=A9 Can you add a justification for this in the commit message? Alistair > --- > hw/sd/ssi-sd.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/sd/ssi-sd.c b/hw/sd/ssi-sd.c > index ae04b6641b..c62fdc871c 100644 > --- a/hw/sd/ssi-sd.c > +++ b/hw/sd/ssi-sd.c > @@ -253,6 +253,8 @@ static void ssi_sd_realize(SSISlave *d, Error **errp) > /* FIXME use a qdev drive property instead of drive_get_next() */ > dinfo =3D drive_get_next(IF_SD); > carddev =3D qdev_create(&s->sdbus.qbus, TYPE_SD_CARD); > + object_property_set_uint(OBJECT(carddev), > + SD_PHY_SPECv1_10_VERS, "spec_version", &err= ); > if (dinfo) { > qdev_prop_set_drive(carddev, "drive", blk_by_legacy_dinfo(dinfo)= , &err); > } > -- > 2.17.1 > >