Message ID | 20200928042611.1696178-18-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=gSmhRgjO; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4C08h40NY9z9sSn for <incoming@patchwork.ozlabs.org>; Mon, 28 Sep 2020 14:30:11 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0E42F8247B; Mon, 28 Sep 2020 06:27:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (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=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="gSmhRgjO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 25FCF823B0; Mon, 28 Sep 2020 06:26:43 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,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-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) (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 2A6748234E for <u-boot@lists.denx.de>; Mon, 28 Sep 2020 06:26:40 +0200 (CEST) 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-ot1-x342.google.com with SMTP id q21so8393613ota.8 for <u-boot@lists.denx.de>; Sun, 27 Sep 2020 21:26:40 -0700 (PDT) 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=yrSw6I8mRnOKF32wfDgr8dJsaelseXourIvzNZAkbDo=; b=gSmhRgjOPY/QSFd5MmUqzytZwYEtJhgqqW5vy847v76DH3yDAniAewgidkSUEzxeQA e/E5Ws4sjIKfI5EOwsm/n5hXkY2aHCvoiMI5wwspDTgBbAwx+AKgIKfn6H/0Y01LJE0S 1Je5JB9aT75g9h6XxpPU1bFc46qwwqA+pipNc= 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=yrSw6I8mRnOKF32wfDgr8dJsaelseXourIvzNZAkbDo=; b=sOhsYKSG3N1gSsRaa9AL9jiCoLrZUth3IklCX3nttvbwqgeiKBW+RhTEO6OQ9uVejb 1fl1jZ5UnSSmKFRLFqRmFIu+dxRX2cbTNXzEg0Ux023TCk7p/mCmBxIOosmrpAgu/A7V zVSh4H6N7/4FEgZ1FiIYy/9dyMWryhXqiy8Isjz8nmsIfptNnGj+96uZaSDv5Yf43XSq s1j+4xqtMhYct79b7jbwxBMJM+KyPP3YTr9OlhZ1swn54m1M9YmYRgIGWnXk/aEgAyeg JDWarwjBuMKaNFnpBCj/NazZNJjhrGodYyLRkn9HH4m57u5fK2Hdpbw4akBXQmJGWl4w Fb1A== X-Gm-Message-State: AOAM532ykCLQQlKFzAPZqexu5W85rzTUqmLZq97+1BWoCuw1AZfTqfrG cgvudntofTl/ww4Wo1P42wGc+UE3WVb4Y3mO X-Google-Smtp-Source: ABdhPJxgcq0blIb9k4D/qRK1ibbPGkMGvAUkkbtyG6G2IzfDik86MdAZskX4Gh4oU6SMlCT5fdlZVw== X-Received: by 2002:a9d:65c8:: with SMTP id z8mr16142oth.5.1601267198932; Sun, 27 Sep 2020 21:26:38 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id k51sm2620579otc.46.2020.09.27.21.26.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2020 21:26:38 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>, Wolfgang Wallner <wolfgang.wallner@br-automation.com>, Walter Lozano <walter.lozano@collabora.com>, Simon Glass <sjg@chromium.org>, Bin Meng <bmeng.cn@gmail.com> Subject: [PATCH 19/32] acpi: Correct reset handling in acpi_device_add_power_res() Date: Sun, 27 Sep 2020 22:25:58 -0600 Message-Id: <20200928042611.1696178-18-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog In-Reply-To: <20200928042611.1696178-1-sjg@chromium.org> References: <20200928042611.1696178-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
x86: Allow Coral to boot into Chrome OS
|
expand
|
On Mon, Sep 28, 2020 at 12:26 PM Simon Glass <sjg@chromium.org> wrote: > > If there is no reset line, this still emits ACPI code for the reset GPIO. > Fix it by updating the check. > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > > lib/acpi/acpi_device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/lib/acpi/acpi_device.c b/lib/acpi/acpi_device.c index 95dfac583fc..c3439a59883 100644 --- a/lib/acpi/acpi_device.c +++ b/lib/acpi/acpi_device.c @@ -422,7 +422,7 @@ int acpi_device_add_power_res(struct acpi_ctx *ctx, u32 tx_state_val, /* Method (_ON, 0, Serialized) */ acpigen_write_method_serialized(ctx, "_ON", 0); - if (reset_gpio) { + if (has_reset) { ret = acpigen_set_enable_tx_gpio(ctx, tx_state_val, dw0_read, dw0_write, &reset, true); if (ret)
If there is no reset line, this still emits ACPI code for the reset GPIO. Fix it by updating the check. Signed-off-by: Simon Glass <sjg@chromium.org> --- lib/acpi/acpi_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)