From patchwork Sat Dec 7 04:41:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1205356 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="n6H+UBb+"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47VH7n1rp6z9sPL for ; Sat, 7 Dec 2019 15:50:13 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8CAAB81682; Sat, 7 Dec 2019 05:47:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="n6H+UBb+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 72DED81681; Sat, 7 Dec 2019 05:47:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BE7F381662 for ; Sat, 7 Dec 2019 05:47:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x143.google.com with SMTP id w13so8147931ilo.1 for ; Fri, 06 Dec 2019 20:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ORP3VUmnXc0mv/h+wjolJlZPn9Ixz5t4ricI84oW/4c=; b=n6H+UBb+8jG6A55BEI1GxVXe41foDpjuqUxInwhe20RwxLBvweXZFG/sWZm73xkd0N fis1COvSUZap2je0pnUkyFFmjKc7+idfL4ojKhiyTqmrVJZCVVMSZbUcTf1PyMKcGay+ NmiFSM3SzOtBWlSuycceahp1K0m9BEus/SBOo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ORP3VUmnXc0mv/h+wjolJlZPn9Ixz5t4ricI84oW/4c=; b=N4LK5LbtsWwRONHeCPI6sQhqlagcDFSiNG/WmCUKsDJR1pX1aMyI14Of7pvTeE+pJL oNuV5Ai6q8LfyUgyM5+tnvIv/yxOaMAXLxOR1wreoAKQwiN3X1zljDxhxxzF1yUuMa2i thbTj5PN/jx6WAslM+0MnVEIMhCp/mQ0OcYqbUJ+LTTmi0CHqEO+yRD33jSYojoZ1I+G BSfOZCpCR+Hs75zJ0dhrLdjdFSUADxo8u6J4yUWyqK5EJV6bMhOXvovOtXWNR8ikbGr8 RRad1jeE9VxRCCNF16O9OrhFP6x1lUjgPs4/i/rhKTKmW9Tr0OB5mgnph4YvDyDXVYgD WbGg== X-Gm-Message-State: APjAAAX0I+1X5oRUXImMDB+WFrDB7/tvUJtpW7jJTRFvaCW9lVykznul iQJe0xBkDxHq21QyzIGICKhR789JXL4= X-Google-Smtp-Source: APXvYqwgXJp1HUQXJxZE3V9qHiWwGJjny2HQqNWW+iJiKNosHC9+yuaCrfpdFwj9mFWSiHByH1qrcA== X-Received: by 2002:a92:6f03:: with SMTP id k3mr17149394ilc.188.1575694051613; Fri, 06 Dec 2019 20:47:31 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id o7sm4549410ilo.58.2019.12.06.20.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 20:47:31 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Subject: [PATCH v6 023/102] sandbox: Disable mmio by default in tests Date: Fri, 6 Dec 2019 21:41:56 -0700 Message-Id: <20191206213936.v6.23.Icd184cdd6d57d04a88f86f25b5ea7357b139ee81@changeid> X-Mailer: git-send-email 2.24.0.393.g34dc348eaf-goog In-Reply-To: <20191207044315.51770-1-sjg@chromium.org> References: <20191207044315.51770-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean When reseting sandbox for tests, disable mmio support since that is the default state. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v6: None Changes in v5: None Changes in v4: - Split out into a separate patch Changes in v3: None Changes in v2: None arch/sandbox/cpu/state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c index dee5fde4f7..cd46e000f5 100644 --- a/arch/sandbox/cpu/state.c +++ b/arch/sandbox/cpu/state.c @@ -356,6 +356,7 @@ void state_reset_for_test(struct sandbox_state *state) /* No reset yet, so mark it as such. Always allow power reset */ state->last_sysreset = SYSRESET_COUNT; state->sysreset_allowed[SYSRESET_POWER_OFF] = true; + state->allow_memio = false; memset(&state->wdt, '\0', sizeof(state->wdt)); memset(state->spi, '\0', sizeof(state->spi));