From patchwork Thu Mar 16 14:26:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 739855 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3vkW6w4b7Pz9rvt for ; Fri, 17 Mar 2017 01:28:40 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sA1ixFO0"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id 60A44C21C64; Thu, 16 Mar 2017 14:24:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E62FAC21C74; Thu, 16 Mar 2017 14:22:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 93052C21C4F; Thu, 16 Mar 2017 14:22:30 +0000 (UTC) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by lists.denx.de (Postfix) with ESMTPS id 13943C21C68 for ; Thu, 16 Mar 2017 14:22:27 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id m5so6279010pgk.3 for ; Thu, 16 Mar 2017 07:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=k8hDkwSiA5SSKG6xQ6O//udZ0mBnmi8qSnrcNInAtN8=; b=sA1ixFO07KlKywVuI1w6omGcPM29xuItYLk3sdBemvCGI0+ZlkPPQooKRqawFasFBZ SCGW/w5gjdRJSzNr27X+u9E1aR7s4h9OWR9tyOF4b2QyC4aBYJ3u0fVhK2CmtcEF6Qz7 xorAevtLL/mNn3La1A6d8yWl0GovakWu7P29oEyN0v3n2FD9DFoJekplzl7J0wi9nWU3 jf92ffj6scLag1F2mkWDnIQhrkyJqZFb+xHktdlFQsD2fst6gISs1CLqp/KexpLwnxI1 S7Z/hxOdPbpA8qQTcD2G8fHruXnWvD5BAGGvEo4lRQfTLCpmTSiHVg50RUnMHQsS8lcg dlDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=k8hDkwSiA5SSKG6xQ6O//udZ0mBnmi8qSnrcNInAtN8=; b=VJugUKmtsAiF6vGq0p0Jo48uhhcajBSCA7oUvrvmKccebbkZcnMSOxLPKFxlV5/MFN 4SSTehHv8bG4bYeRArK+6s9Q1FmnlQD/Exh11empkYwx4kM0L9+qTrAMyEvoDrYEgV5Z 7l/pDDuD0gwkxGRDdopsxnflPRFoNDdXhINsfjrfnnxF68Eq4oY9XAk72hl0AUGRcRtm NQNje0deW1Zcs8xcfwFzVjWKmn9pNzB6HTY4LJdvB16sJvga5IRh4aM7bX6mkAhbOYy+ yTEI6mjxRJz7YIFFYqv7+QkeLkydD0e7fCWSekOi3a8JL1p1R38WfyMreqcj0nmOD9Zg 8Gbg== X-Gm-Message-State: AFeK/H1RkeI35wH/1Fv0KuAnFyf4k/4QoPj/YUT4Pz2vDpsdM5LvSL8/R2mgDB7mZT3hSw== X-Received: by 10.84.231.133 with SMTP id g5mr12663177plk.59.1489674145775; Thu, 16 Mar 2017 07:22:25 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-157-139.windriver.com. [147.11.157.139]) by smtp.gmail.com with ESMTPSA id c64sm11039959pfa.45.2017.03.16.07.22.24 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Mar 2017 07:22:24 -0700 (PDT) From: Bin Meng To: Simon Glass , Stefan Roese , U-Boot Mailing List Date: Thu, 16 Mar 2017 07:26:33 -0700 Message-Id: <1489674408-17498-8-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1489674408-17498-1-git-send-email-bmeng.cn@gmail.com> References: <1489674408-17498-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH 07/22] x86: baytrail: Conditionally report S3 in the ACPI table X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" When U-Boot is built without ACPI S3 support, it should not report S3 in the ACPI table otherwise when kernel does STR it won't work. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl b/arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl index eb5ae76..5600723 100644 --- a/arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl +++ b/arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl @@ -8,6 +8,8 @@ */ Name(\_S0, Package() {0x0, 0x0, 0x0, 0x0}) +#ifdef CONFIG_HAVE_ACPI_RESUME Name(\_S3, Package() {0x5, 0x0, 0x0, 0x0}) +#endif Name(\_S4, Package() {0x6, 0x0, 0x0, 0x0}) Name(\_S5, Package() {0x7, 0x0, 0x0, 0x0})