Message ID | 20171213232025.24503-6-f4bug@amsat.org |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GyAJgMen"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yxt8W44Tlz9t3r for <incoming@patchwork.ozlabs.org>; Thu, 14 Dec 2017 10:25:15 +1100 (AEDT) Received: from localhost ([::1]:38240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1ePGOn-0007QU-Ek for incoming@patchwork.ozlabs.org; Wed, 13 Dec 2017 18:25:13 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1ePGLk-0005KG-2x for qemu-devel@nongnu.org; Wed, 13 Dec 2017 18:22:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1ePGLi-0007Q8-3i for qemu-devel@nongnu.org; Wed, 13 Dec 2017 18:22:04 -0500 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:46523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) id 1ePGLh-0007PZ-Vs for qemu-devel@nongnu.org; Wed, 13 Dec 2017 18:22:02 -0500 Received: by mail-qt0-x241.google.com with SMTP id r39so5823261qtr.13 for <qemu-devel@nongnu.org>; Wed, 13 Dec 2017 15:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mViIVDSk5Y9j270iZL+3Q9Iqu+XiE53xwMKRYX4d+w0=; b=GyAJgMenTbn0NtjL3//m9SyC0dhlPvH8j1fx1nUxScZU3ezv8ifEg1QTF8dyWAze1M mmBqmqX9zVOiU2bswJryDTNGv5Vd6bV6thVHmvLEykK/0ivm0TBIcOqNKLh/pJVXNa86 6nlg30df05GgDCJBVkEN5JjDSX6OqBLHHgNCbvLiO1nRJyCQyk08UEV3P14FsMgaNYJ/ hdUzVbFBFuyKd8DWkCeyPM8OfiGdgGn7bXWKhaW5Ubx+1+cMydmuChSzHpCwbLLFEYDt HNFOjExNg5URtrytqDSQbWeutk2CJlKUNYViJ4L9KJOYQ6d885WI7ILSCVaaUNVOlTec GY0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=mViIVDSk5Y9j270iZL+3Q9Iqu+XiE53xwMKRYX4d+w0=; b=oCDif6RGGE21KtNLDF6RAddGenfzoFPj8wSRXd/ldj/ZWiMPzybK1XjWeHch8Wqq/R 7JXrq1E4Dv9hFsWN61+mwtvfeEI/BuqT3BpGTrFoqrAbLmXCRgz2G+oE43ykxvi2lHov ozAXACFvWYA3RVBioSpKiqEDabtjVDydry2uCCxld/vpouA7egBAL8D7YK+7exZQHX0g OeGx6l3QriYrCDhJ9aHiPfIjEtr85AmTuSYujnql+Jt+2j7+c41igg6a9s0MneXxek5N qBAR22ZC8PC863xNTZn9Ux2P2br183SLW5QAjDDb4lJHt18GYFpfzHWvXiO8QG8tNsyR lraA== X-Gm-Message-State: AKGB3mJjrKU7u+r3NL5QIxfIEqPWPXEF6iLIj1HtWtP2GEpChy9gmWin Rr4+orGaawT+5C+FYD/KpTU= X-Google-Smtp-Source: ACJfBovi0cWkCz8c1AQIhNoaOAy+YjHgyFi5lbRy4oGRabETd7h1w87fjqQIRXjdhhjil4ejZJbiGA== X-Received: by 10.200.38.6 with SMTP id u6mr13290185qtu.1.1513207321618; Wed, 13 Dec 2017 15:22:01 -0800 (PST) Received: from x1.local ([181.91.222.165]) by smtp.gmail.com with ESMTPSA id l1sm1666918qkk.74.2017.12.13.15.21.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 15:22:01 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> To: Alistair Francis <alistair.francis@xilinx.com>, "Edgar E . Iglesias" <edgar.iglesias@xilinx.com>, Peter Maydell <peter.maydell@linaro.org>, Andrew Baumann <Andrew.Baumann@microsoft.com>, Prasad J Pandit <pjp@fedoraproject.org>, Clement Deschamps <clement.deschamps@antfield.fr> Date: Wed, 13 Dec 2017 20:20:04 -0300 Message-Id: <20171213232025.24503-6-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171213232025.24503-1-f4bug@amsat.org> References: <20171213232025.24503-1-f4bug@amsat.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: 2607:f8b0:400d:c0d::241 Subject: [Qemu-devel] [PATCH 05/26] sdcard: rename sd_set_mode() -> sd_update_mode() 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> Cc: Sai Pavan Boddu <saipava@xilinx.com>, Peter Crosthwaite <crosthwaite.peter@gmail.com>, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
SDCard housekeeping
|
expand
|
diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 6227a3518b..f63459d2c0 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -128,7 +128,7 @@ struct SDState { bool enable; }; -static void sd_set_mode(SDState *sd) +static void sd_update_mode(SDState *sd) { switch (sd->state) { case sd_inactive_state: @@ -1470,7 +1470,7 @@ int sd_do_command(SDState *sd, SDRequest *req, uint8_t *response) } last_state = sd->state; - sd_set_mode(sd); + sd_update_mode(sd); if (sd->expecting_acmd) { sd->expecting_acmd = false;
This will ease to trace mode changes (in the following patchs). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- hw/sd/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)