From patchwork Wed Jul 8 01:34:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1324818 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) 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=Ognh6/Kz; 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 4B1hkr5BK3z9sQt for ; Wed, 8 Jul 2020 11:37:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8E9F781F04; Wed, 8 Jul 2020 03:37:34 +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="Ognh6/Kz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8349981EFC; Wed, 8 Jul 2020 03:37:33 +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.0 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-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 E462B81EEB for ; Wed, 8 Jul 2020 03:37:30 +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-il1-x142.google.com with SMTP id a6so20980142ilq.13 for ; Tue, 07 Jul 2020 18:37:30 -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=+GhspgILAmy1wjsr2POO8Gip+8pgahBebOE7ld9tQVM=; b=Ognh6/KzvaVG62v6idxsimt0/QmawAYlHdvNRF59uOcrI5NUrCr6PAKFZprcQTwCQw iOQ8VoDVaw1JFg4wFR9o17KUJFgG0NGJGanIfPA3n+NWwlqVCTbJF56qDFDdSJkZIFoK aOD2Rvv9GuCS/YcmM0Isva6+f0S0BGKCHI+Hs= 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=+GhspgILAmy1wjsr2POO8Gip+8pgahBebOE7ld9tQVM=; b=PXbJl2J5AbWxVVST0PwUkTzMqDMZlZuTcdth9WBOHAecgY4dUtdNU86kwrsjZvogDb A+osfvkoooDv8rjYmT2EEjsJ1WB4U2uQS9KuJ0r5K1h/IUgKQkIQYfg7ZTAifByMWynB exeE72N6sxf8iH1vsyLxNTyIV0lKJwcZCmcrPV6FKBWtYVGE5RgeZOgDL2lLW+PRgQaa yi78cGPFm8DZRU3msE8/b/jYlHNlpoZh5TErChJB0qy7Fv5oiQW4Rf2zVAJ5mLnH6wTR woXAMVDlxqve4c37vomd1uyuzcx6aw7r5fyV9XAmQ64whrOYqanRuDffm2dE7clFNnMU kpwg== X-Gm-Message-State: AOAM530E6kQ9h5l89oPIaSNyH2/lmoN7Y3GAKl8v4i6k177+NNbLKk4v 9JdT9skjkicmC4fDhIsoLomNq05MtESMFA== X-Google-Smtp-Source: ABdhPJz2qdRAms/BD9AlmlvIYx/e9sL3BmtYY151D9Ro5q+Uc/omJkGiQJO5wGbx7XyKimSEVJiHBw== X-Received: by 2002:a92:dc01:: with SMTP id t1mr24312638iln.194.1594172249573; Tue, 07 Jul 2020 18:37:29 -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 d6sm12538047ioo.9.2020.07.07.18.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 18:37:29 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Wolfgang Wallner , Andy Shevchenko , Simon Glass Subject: [PATCH v4 01/25] x86: mp_init: Switch to livetree Date: Tue, 7 Jul 2020 19:34:21 -0600 Message-Id: <20200708013446.2600256-2-sjg@chromium.org> X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog In-Reply-To: <20200708013446.2600256-1-sjg@chromium.org> References: <20200708013446.2600256-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Update this code to use livetree calls instead of flat-tree. Signed-off-by: Simon Glass Reviewed-by: Wolfgang Wallner Reviewed-by: Bin Meng --- (no changes since v1) arch/x86/cpu/mp_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/cpu/mp_init.c b/arch/x86/cpu/mp_init.c index 7fde4ff7e1..c25d17c647 100644 --- a/arch/x86/cpu/mp_init.c +++ b/arch/x86/cpu/mp_init.c @@ -507,8 +507,7 @@ int mp_init_cpu(struct udevice *cpu, void *unused) * seq num in the uclass_resolve_seq() during device_probe(). To avoid * this, set req_seq to the reg number in the device tree in advance. */ - cpu->req_seq = fdtdec_get_int(gd->fdt_blob, dev_of_offset(cpu), "reg", - -1); + cpu->req_seq = dev_read_u32_default(cpu, "reg", -1); plat->ucode_version = microcode_read_rev(); plat->device_id = gd->arch.x86_device;