40 lines
1.5 KiB
Diff
40 lines
1.5 KiB
Diff
|
|
From 00edc3a590c95bce8c4fa96dd682edd533280c3e Mon Sep 17 00:00:00 2001
|
||
|
|
From: tangbinzy <tangbin_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Mon, 9 Sep 2024 08:15:19 +0000
|
||
|
|
Subject: [PATCH] tests/qtest: npcm7xx-emc-test: Skip checking MAC mainline
|
||
|
|
inclusion commit d1592cbe07fa7b653aa9dde2eb8dafbe1de16885 category: bugfix
|
||
|
|
|
||
|
|
---------------------------------------------------------------
|
||
|
|
|
||
|
|
The register tests walks all the registers to verify they are initially
|
||
|
|
0 when appropriate. However, if the MAC address is set in the register
|
||
|
|
space, this should not be checked against 0.
|
||
|
|
|
||
|
|
Reviewed-by: Hao Wu <wuhaotsh@google.com>
|
||
|
|
Signed-off-by: Patrick Venture <venture@google.com>
|
||
|
|
Message-Id: <20220906163138.2831353-1-venture@google.com>
|
||
|
|
Signed-off-by: Thomas Huth <thuth@redhat.com>
|
||
|
|
|
||
|
|
Signed-off-by: tangbinzy <tangbin_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
tests/qtest/npcm7xx_emc-test.c | 3 ++-
|
||
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/tests/qtest/npcm7xx_emc-test.c b/tests/qtest/npcm7xx_emc-test.c
|
||
|
|
index 9eec71d87c..1bc1d821c5 100644
|
||
|
|
--- a/tests/qtest/npcm7xx_emc-test.c
|
||
|
|
+++ b/tests/qtest/npcm7xx_emc-test.c
|
||
|
|
@@ -378,7 +378,8 @@ static void test_init(gconstpointer test_data)
|
||
|
|
|
||
|
|
#undef CHECK_REG
|
||
|
|
|
||
|
|
- for (i = 0; i < NUM_CAMML_REGS; ++i) {
|
||
|
|
+ /* Skip over the MAC address registers, which is BASE+0 */
|
||
|
|
+ for (i = 1; i < NUM_CAMML_REGS; ++i) {
|
||
|
|
g_assert_cmpuint(emc_read(qts, mod, REG_CAMM_BASE + i * 2), ==,
|
||
|
|
0);
|
||
|
|
g_assert_cmpuint(emc_read(qts, mod, REG_CAML_BASE + i * 2), ==,
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|