Message ID | 1516109659-1557-6-git-send-email-peter.maydell@linaro.org |
---|---|
State | Not Applicable |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1019175lje; Tue, 16 Jan 2018 05:46:44 -0800 (PST) X-Google-Smtp-Source: ACJfBouHD08Fj3+i+zzOJic57DujMJeRqrFUmhyD9zRh1I9NwlUXVQPoq246OpBAZiWJ5dmrA39x X-Received: by 10.37.5.150 with SMTP id 144mr30928598ybf.318.1516110403936; Tue, 16 Jan 2018 05:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516110403; cv=none; d=google.com; s=arc-20160816; b=GlQlMdAtYZgUCCsiI0ztnRqMw9EMqQgPN5BmQGOxyVsAOXIwLMMMlVq3nyvBhvXVn4 KYSYoR4to6fnbrYb5dfEy3BaFtSLLfXbTT7JvNGlV7o4L4QJ6Kfj4NCfSv6kgxVdCjPP LDIJWAv9+kKIQlXUVKeJwdkS7u5O5S1uWtlvjkVceIuPsKe8ENhedEnhw5uAvQOmmu/T S6oNLixq0wqE7Nzw4vzO2UNWG1INpSAiACkbrcTlEq+p5eS6eG2LAk8zGJ2cY5sRJH0K ASx7hIaZcWl+oDcZV0QHeSkqLkG0YDg9ckGCnJE4rgvb+WWzT/QZ9DtOgr24G+7e+isC AItA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:arc-authentication-results; bh=iv8wtOap2qt6cI6Z20oJYltXsBIXOs3nHrGA/36ePXw=; b=lZCSLQd+nKgWiNd+SMi7p4uNvYQ1Ss6LKw6/56yr7vxMfiPSPfSZyPVuHiO+uu0NPQ b/r7d/d/vyHGr2oYj89IUtXLiDxw0XKYoQFi7ZmD/CZ/lZf/X1gT3HELGeJhNzxLhdRv KdQhsND7TFQhF3P8RvPvKe/pmeqhfHSDXUHgQOxxZR9xFItijihWHXKIxGpccwGjByIn K8bGVHDe5FnzTUwmFoy5i+b/PnUlTRkc8PDl1RmSTlvsWJlMGJBrRz90FPwaAHLIJBAX hYqzoqPIZ3wuCVjp4qNAgoX8uofcfOLTxQlGwlwIFIJ9la+b1tpj8kbPy82vjUc3K/mE GfHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id l27si511563ybe.647.2018.01.16.05.46.43 for <patch@linaro.org> (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 16 Jan 2018 05:46:43 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patch=linaro.org@nongnu.org>) id 1ebRZb-0000aa-9p for patch@linaro.org; Tue, 16 Jan 2018 08:46:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1ebRNt-0008B0-Vg for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:34:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1ebRNs-0002oW-VN for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:34:38 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:45890) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <pm215@archaic.org.uk>) id 1ebRNs-0002my-P1 for qemu-devel@nongnu.org; Tue, 16 Jan 2018 08:34:36 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from <pm215@archaic.org.uk>) id 1ebRNl-0002r8-LN for qemu-devel@nongnu.org; Tue, 16 Jan 2018 13:34:29 +0000 From: Peter Maydell <peter.maydell@linaro.org> To: qemu-devel@nongnu.org Date: Tue, 16 Jan 2018 13:34:00 +0000 Message-Id: <1516109659-1557-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516109659-1557-1-git-send-email-peter.maydell@linaro.org> References: <1516109659-1557-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 05/24] hw/sd/pl181: Reset SD card on controller reset X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patch=linaro.org@nongnu.org> |
Series |
target-arm queue
|
expand
|
diff --git a/hw/sd/pl181.c b/hw/sd/pl181.c index 55c8098..3ba1f7d 100644 --- a/hw/sd/pl181.c +++ b/hw/sd/pl181.c @@ -480,6 +480,10 @@ static void pl181_reset(DeviceState *d) /* We can assume our GPIO outputs have been wired up now */ sd_set_cb(s->card, s->cardstatus[0], s->cardstatus[1]); + /* Since we're still using the legacy SD API the card is not plugged + * into any bus, and we must reset it manually. + */ + device_reset(DEVICE(s->card)); } static void pl181_init(Object *obj)