Message ID | 20200503135855.11484-3-peng.fan@nxp.com |
---|---|
State | Accepted |
Commit | 143f0eeddda915bfbd6c8024a667c37084d4bdc2 |
Delegated to: | Stefano Babic |
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=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=iNVPpfca; 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 49FRpx4r91z9sSc for <incoming@patchwork.ozlabs.org>; Sun, 3 May 2020 23:36:41 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EDA3481ECF; Sun, 3 May 2020 15:36:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com 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=nxp.com header.i=@nxp.com header.b="iNVPpfca"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3062881EB6; Sun, 3 May 2020 15:36:13 +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=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0615.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::615]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 84B5481EA8 for <u-boot@lists.denx.de>; Sun, 3 May 2020 15:36:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cJGzQVzYUyNhBstiasW1L6mLdH0qyXEqGbcyEMX7xUf9K3BweLqYCpAXJrQGhKYmzjxbtW8aa8Ee/kqOa61EEKVGg7VmNRAW5VRXs2ZETcAWom4CFEnN34tF/ysV45w6t7iNKkxj0h1nDAjiOuNVXk5hyJdsKH5dIoExKQ0/jqsLrffOPwnNoSIqNA7NSer6yDgcv+sMdjJU0+RJg0X8W+2fczMkULohuHWSH6z73zjvH95d3PsobYqnT9Fktv5HxFiNiFbeZd1AQPpwa6rI61tNzryaCOf6laVOgCbHANmQeEEWg0/w8Q+gqs4DfR5o9PFtxHvVpZl3bsAsAfT88A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=35boemrJ/hXwoZwc2TdRlvamAcR75VpDfZD6CUFu5Xg=; b=JP8yXjc2B8zQjLg19jRgGgLn2E0ljJToD7p0VvNbt6zGlKRz1t0c/H3AdGVbMQr2A7JxduATqeNY/SouvEEJ1Nd85ymgl6/eTrmE9bJtv8SsUPvlAA59lZuvL8imASzw9fBjKjvEAnCBJIz71dLkYfQNK3Vq3j8UIWemDTTNgj5RmA0OD0ja5FKLlxjdudFo62hhqGgJOi5CE6H+9FFR+psz4oQSlyXxWJJgWU5YmzEQOTpuzzz4XJ4uAGORd+X0N9HAipIUjS6UbEJXwkvb7qOrK6gY9fAiUmrwlrCtBuy5EWxjeYXw/Lud3M9Bu30HrS1PG1L3+iVb5hFxzURqOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=35boemrJ/hXwoZwc2TdRlvamAcR75VpDfZD6CUFu5Xg=; b=iNVPpfcaXZFUA6LZBZXJWFQ+Gq56iravaKGRF1XABwY+WpR9u8RhEKSmxDHOFk//LFJ0Njiyy1h/6Uo3S99OVpq0IvxYpXRdtzQfhfmiou6URNGwVCS9qLXhQ1k3nGmxz6XDDhTHeqLXWDcS3FPf5yr6KF300NofwfLW91lpk3A= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR0402MB2855.eurprd04.prod.outlook.com (2603:10a6:4:98::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.29; Sun, 3 May 2020 13:36:07 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d17b:d767:19c3:b871%6]) with mapi id 15.20.2958.029; Sun, 3 May 2020 13:36:07 +0000 From: Peng Fan <peng.fan@nxp.com> To: sbabic@denx.de, festevam@gmail.com, sjg@chromium.org Cc: ovpanait@gmail.com, patrick.delaunay@st.com, joe.hershberger@ni.com, uboot-imx@nxp.com, u-boot@lists.denx.de, Peng Fan <peng.fan@nxp.com> Subject: [PATCH V3 3/9] test: cpu: test current cpu Date: Sun, 3 May 2020 21:58:49 +0800 Message-Id: <20200503135855.11484-3-peng.fan@nxp.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200503135855.11484-1-peng.fan@nxp.com> References: <20200503135855.11484-1-peng.fan@nxp.com> Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0145.apcprd04.prod.outlook.com (2603:1096:3:16::29) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR04CA0145.apcprd04.prod.outlook.com (2603:1096:3:16::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20 via Frontend Transport; Sun, 3 May 2020 13:36:04 +0000 X-Mailer: git-send-email 2.16.4 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5c4b3211-422d-4501-3823-08d7ef66eed3 X-MS-TrafficTypeDiagnostic: DB6PR0402MB2855:|DB6PR0402MB2855: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DB6PR0402MB28559398DB41A4EA37F65A9E88A90@DB6PR0402MB2855.eurprd04.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:126; X-Forefront-PRVS: 0392679D18 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nhUy1jS+sOkULES7nry9NY1cbGl8ym2DVz0kdTwJUAZ3IMSlWZWeER+UC+wCYpkH/q8/ZKZPsAq9HdIQ8wJVIsmo1CGjEDikYmjVe1WGo3GPdt9VRh2BX/iuH1ezlJq75eci6pwcsyeQfPOutR7+1T/CgXjEI3TZofooLlEdpgy76QJNh3lz3KedVyKC4OR2dV82EZs9KevSeHjQEpqgAP/pE7XgQJ0pKd1/c1c9z3KBQAqXFSgoyCUP/UrzsD7hzXP15Nfw/dBAyo1MLTo9pi3s2xdY6nQS0TBifmuUO0vdLu8dDbEpnTMw9Qi4YkLnH4u/EMXvasfzgLhpD7kZfFLdEgrms+8d/t6VjXwQzinn+Qtq2QsCr4nqy3O4/tHBZMuLYpYzLtHkSdy2nYEpmSw1ifsZbmxRX2mGj4qsukYn/Iim9UxrKYzm2I+Rax+e X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(39860400002)(376002)(136003)(346002)(396003)(6486002)(6506007)(66946007)(4326008)(66556008)(66476007)(5660300002)(1076003)(4744005)(186003)(16526019)(26005)(8676002)(8936002)(6666004)(2616005)(956004)(52116002)(36756003)(6512007)(44832011)(316002)(86362001)(478600001)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: v+VbwRvxL5dui20dweN7/YljXAHQZ34mZCeF7p/5pTMovfWhP7hQJ9bIe6DQZ5yk5XrJhncKgkiTDMLvJO1ubMA3rQpEm4NTnN1KPdQLmbOseWPJ0SFP6bhqkKJ++RdVeU+YvmJK3mY96FQ17idqUHR2P6DMu50eo0wbW6YwRd4Fzli+N+3M9upbAWcdll2zYwSGt2iC8M7/tZhAr1XH1nB/aqNQxMDImdsG9++oSDa50wQVlLJACg7Xykxc6U1IRPGYCrXM5AEsHe7crONEaW2x0doJiwjSxPCwB/TqOfVqHTftmlPCRco2eWUazFJT1zcOgikJ3J5qA0L9pstfhi0ZHVBscW902bajUXhW17qYKovGroPaNINEkxfIqRAnLaNTaMx9nDMM8bBN64dU4iduTWD7nQ/zzxZ/U46mLhFd/8alM+amUxnGGyvwH+pAEA09GpTRjNx9EiHEKkMkP1bTdX2Erel0otnDhbcPdZus5oQmwTSoBjiiyabyiHfwWjEY2zsYsNUGhIggoXm9zkZb70vOILwQDAmUfU1BAO4kjWkfxrJ4ibjFA9rE/0m55GKzC2JI4Fo5taYgBY96RQ+z7OKD92/zEwMsTTNFLsCJmuqytgzejJ/j2SbNO4qEx8GArZRlC6TxS72Og68jW2Pl4Mdp/81NW/Jt7cc0a/Ort1V+ick4PrXKYoM7IX2yDk+9g7eThkLwv78F7eX8Dbb6CLFHMGQNVgvRfloTDReLV5U6IYwkvJhy0ATCy98LMOk0b/2V1dbydVps+Lvw/AXp++jHXLnZSVmoZqyZwm0= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c4b3211-422d-4501-3823-08d7ef66eed3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2020 13:36:07.2495 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yiOYz5sCOMRLNPrzr+5ZQAZ/MmaemHYK6DIFKVS383gzcGSUcs8E+K+jSTbsqG8nMY8S31sQj19g9i0rRVWLJw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2855 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
[V3,1/9] uclass: cpu: Add new API to get udevice for current CPU
|
expand
|
> Add test whether the CPU is U-Boot is running from. > Reviewed-by: Simon Glass <sjg@chromium.org> > Signed-off-by: Peng Fan <peng.fan@nxp.com> Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic
diff --git a/test/dm/cpu.c b/test/dm/cpu.c index e6dc576ea3..def9b64a28 100644 --- a/test/dm/cpu.c +++ b/test/dm/cpu.c @@ -26,6 +26,8 @@ static int dm_test_cpu(struct unit_test_state *uts) ut_assert(dev->flags & DM_FLAG_ACTIVATED); ut_assertok(uclass_get_device_by_name(UCLASS_CPU, "cpu-test1", &dev)); + ut_asserteq_ptr(cpu_get_current_dev(), dev); + ut_asserteq(cpu_is_current(dev), 1); ut_assertok(cpu_get_desc(dev, text, sizeof(text))); ut_assertok(strcmp(text, "LEG Inc. SuperMegaUltraTurbo CPU No. 1"));