| Message ID | 20260219175130.2839234-5-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBRM33XGAMGQEMY5VIEQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com
[209.85.128.72])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A12DD3F150
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 19 Feb 2026 18:52:06 +0100 (CET)
Received: by mail-wm1-f72.google.com with SMTP id
5b1f17b1804b1-48378c4a79fsf11148945e9.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 19 Feb 2026 09:52:06 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1771523526; cv=pass;
d=google.com; s=arc-20240605;
b=B1/qliu04PmpyQ6q+13Ei1EOS3Un8HLiTJqm9m6nvbrTeYZXniMzQv14Ksnxl8VZx7
fNDeM6kuvR2pYVh54v7Xv1R2t2XtAXfo8BLhcEMs6nt7I5N0ENt/xC09u0aYIQuSPOvL
9sDNtarDi0dwlzAynCpgHugky02zcwWlaoWDnvQUDQS9JSv3EQZDk8WUzQZ+IOw1W0o6
a2/E8f1BUZ0iPCrQAmUJOqlI6sU2I91dGcd9ClLe6KPxaeKA8DN6O58NCka67UAt2DeT
bTgR35GRuonKgN16yzw3UBPJki/lewhLbiOsOsjxHCmaYkVVpNzGwkRLDPUXT0XUWd8i
eP+Q==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=99Xz69w/FWWAugIHXy58SG+Kd+FAjpKJ6ow66vGLMd8=;
fh=E7ABo5TReogmK3Me2cVlTLFBgza5AcwJ3zWQTKMFbjQ=;
b=FbaZUGlyXBP8BizsSHmTOI970ZNlUtglfNCPn+maok0H4lm3RqDURk0TR7NzOCQBdm
SzK7wOi67Se9VzhT/IPbZ1+dzlmrWbkSU5S+lwpyNy4GucYN4IoPkojpVAr8HN0mQlik
VFBv53u6z/H8J6rUTn6DdPx7sGLqfGUQsYJ7asCV8HqY19yILfF0ox2O37Pf+sjzoOdh
g8ZJDOnjA1QFJhIA2RYxp4LXTu5H1EK1IVjXFlqm0om9JTLJywQ0cl/awnfxDQYEC7nx
CjIgMQjLmHXSHpFD04qgAYI9UWU6Dtja9V6JLlnN8VVpOta2aI7itjY0k51F+V0MjYRn
N/cg==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=QB3jweaM;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1771523526; x=1772128326;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=99Xz69w/FWWAugIHXy58SG+Kd+FAjpKJ6ow66vGLMd8=;
b=AhX/BmkYxW/EY+5SOsQR4SqJ2S/vCxpTiPwzKSPynYXfHyGXZb5ZByao8ZdNOXvSN9
t+rOkMTfxgOIWZjgdeDueTslq+jSYneAVDDm47GLBP+fRrYw1QlZkuh9Vgct+O2d9WFk
kWTB04Vk0Ot8dpm7lsb/i9rNkMM7te+4/YkYo=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1771523526; x=1772128326;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=99Xz69w/FWWAugIHXy58SG+Kd+FAjpKJ6ow66vGLMd8=;
b=aUbD6zKeO7GhXCF41P03boWFytZch8PHldpvnOT13gZXAuOn5ZDCyoBBAZzj656Wsd
kS2jevr65jz+Wo6Klj1e/92ic/m5Bp+C35Z+phBvPFeWdFkD7JPd1VCWxNmcoeiMoM6H
PsT4Pn7VOExg6EwD68nKv22BDsE04g4cfb3IDMs4KustysGbJ18ZyMh5yVC9hcefSbrP
eqQP0DdFhlTxp6U1AZZtnSS1wVxCz6ib+zr/VitIpv7K1TA87BIPxg7beiw2GswU/dXT
vpSCuQYxvB4q0XXzWzWNjnKvjOYVczMeGd3X6NBkVeqfqKjC1ucEzTuS9a4h8qvZGxEy
Gmng==
X-Forwarded-Encrypted: i=2;
AJvYcCWAmbnAY8hEIu52GAI/wELeyhzN/6T/ZhcJsLiRVpBiz6LO1k+GmDDNYf+5x3AewfWXVYNIng/pG5r3x2T5@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YwNhtNGlLBtjS9CzQSpcGY3L5RHgWj4Az0RRCZv0MAGMHB8bXuM
ZsrJE4kGozpnB0551fdSxH3g0d/AihrtQ094crk3UQe/I/C5FkGKQ+81k2PycyvXoSZwzA==
X-Received: by 2002:a05:600c:470b:b0:46e:4b79:551 with SMTP id
5b1f17b1804b1-48379c01465mr355567145e9.31.1771523526043;
Thu, 19 Feb 2026 09:52:06 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AV1CL+H9x/2q/DhrdB2LnIkpcoJTaubZv421eor5SgItktoIaw=="
Received: by 2002:a05:600c:1d0e:b0:480:6bcd:94b5 with SMTP id
5b1f17b1804b1-4836702128als59884945e9.0.-pod-prod-05-eu; Thu, 19 Feb 2026
09:52:04 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCXjyrTze80k/9rmJ1dFQX+zPI+wdyquXcynXspoRBjK64a/iWVs/5I5SPDG25zZUtObN0eHKmegFlwtkOW+@amarulasolutions.com
X-Received: by 2002:a05:600c:468b:b0:47e:e20e:bbb2 with SMTP id
5b1f17b1804b1-48379b93583mr309051035e9.7.1771523523975;
Thu, 19 Feb 2026 09:52:03 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1771523523; cv=none;
d=google.com; s=arc-20240605;
b=lWQpffZbkTpiHKXIjvg8BSn7PuQuAV07a5m3Y4Xi/fsuZHDTbbA+m59rmobu04lCQb
xreE7xJIXbzqoRb0X8QJxGs9jFGVLlEaqhdYOqXDVdCL1FcI3VZIEUiK/QcnvYbeuRSY
GTWkhgjEjYU9TcppntQqPkU5swcnm8YKtxtUqMgsuzvVYepORDBbz22IsE0e7zfFbkW3
tT1Ah+Ot4CgPoLMm1d4StF45w9RpqZftx6+3GLG8PstsBW2t7X//sVY/qLb2u3UJ/ciQ
lG4pZDmp3gtF43eHEWm361dhqczO5G4GlzINHPPOg3SWLl1JHMeUFS8DQTr35TEdvYj2
sW2A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=RCHtgDZvfTFI4kdVn/tCFXNLzJyuLrLIYxBP/bv67wk=;
fh=4MrzwlZTTIfZJRuKbiUH36LboLFsV7KFmxdb7LY/61s=;
b=DHQSHXbm1oqmP/oE16AXiKrHoB7k3QwkAZjkQmDcY0Vey8tc60Mfe7YgPOKU5X7Xen
BPYtz8FhiWTMKh81q5+wf5lAJJcpo7UH/zuQSdOCAHbOrgBZW7QFZiVEaHd6PkGR2pMz
7/5dRWjI0uM/epjLF5oHJJ6UlY4JsXos6IMal0blG+rzHUpAsELIUCe2w1R9G8UiY/O7
1TBOXs0Ts3t7pOKS1pYJ7CJMNdMURU3CxXTMV9Y2EuFMyFKrcYEPQbk16VVTkdIATx7A
o3DEpSdKXrDYg+5779LgZONpoatmzPEa6CKGhWpsVF7gusYDx2LmkuyBBvK2PP6+HAof
Ofow==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=QB3jweaM;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
5b1f17b1804b1-48379994d35sor19470365e9.20.2026.02.19.09.52.03
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 19 Feb 2026 09:52:03 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AJvYcCUiItJvBcbFqWWja6bkUT3llq1NdSrO7UacX75MH8yYxkh4DA+7ODa+unxwtmMbaXPa7w3pC9fsWUWLrY5r@amarulasolutions.com
X-Gm-Gg: AZuq6aLOWdXcRE7ZoDdifCYL3zQ0ZwDYLdjrQhBYQ4yC5+p8+zHHAL+7X23Tg6ZArBm
bP49pjEdxHLQ/dBj9jyayX3gk9AXDBUjjYI959fRsqfMrNFZDY5Fx58Zz03ysfzMgov9yuN1IfB
WycAnRWCCCrAGFj+H9fyUy79gGyx69yp391ng73QkEMLzrh2LA2kGoM/lKAECPjmKrcmicXvouZ
M8SunJ4FB3sKxe+2VQzpxYyJQGsEzfO7TKClB6PhEyCeobLuslCSZP63MlTR890SHZIUSHu31oq
aCJv/vfPbzZq2/Esv7XOnoHQXl6SpqAnITeYZroNoomtUgBknJBnlGXJXJRIhSf+rprBDNg+/KD
OQ3jd+mO0kEd8+8BeTTx54caIAURCKeTjlRnNE+GRo36nBbxJU6c9f7CwSKILYaEB5ELI1IZM/s
2IP7T8TN57wfdGtt7DYgLVuR8+UH0pM5NXXsTXk87Z2u9mKIerXpdSQF8lMDV5/kIHMvkqq97pN
y3lLWsH65n9VKtOE8G+7XfDLGIFRSUDliAlgAPl3gOTzTo8gcwuk2Gzi/UD0XbMcsbPcRMjqZ/C
4k+ugKOtPK1DGXtNRMbZ0GQU
X-Received: by 2002:a05:600c:698c:b0:477:5ad9:6df1 with SMTP id
5b1f17b1804b1-48379b932b7mr339624495e9.3.1771523523473;
Thu, 19 Feb 2026 09:52:03 -0800 (PST)
Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it
(host-95-248-31-95.retail.telecomitalia.it. [95.248.31.95])
by smtp.gmail.com with ESMTPSA id
5b1f17b1804b1-483a31b0e63sm35485005e9.2.2026.02.19.09.51.56
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 19 Feb 2026 09:52:03 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: Patrice Chotard <patrice.chotard@foss.st.com>,
linux-amarula@amarulasolutions.com,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Jagan Teki <jagan@amarulasolutions.com>,
Simon Glass <sjg@chromium.org>,
Tom Rini <trini@konsulko.com>
Subject: [PATCH 4/8] test: dm: spi: add testcase for spi_set_wordlen()
Date: Thu, 19 Feb 2026 18:51:15 +0100
Message-ID: <20260219175130.2839234-5-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20260219175130.2839234-1-dario.binacchi@amarulasolutions.com>
References: <20260219175130.2839234-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=QB3jweaM;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
|
| Related |
show
|
diff --git a/test/dm/spi.c b/test/dm/spi.c index 249a9238fedc..a89ba06274fc 100644 --- a/test/dm/spi.c +++ b/test/dm/spi.c @@ -170,6 +170,22 @@ static int dm_test_spi_claim_bus(struct unit_test_state *uts) } DM_TEST(dm_test_spi_claim_bus, UTF_SCAN_PDATA | UTF_SCAN_FDT); +static int dm_test_spi_set_wordlen(struct unit_test_state *uts) +{ + struct spi_slave *slave; + struct udevice *bus; + const int busnum = 0, cs = 0; + + ut_assertok(spi_get_bus_and_cs(busnum, cs, &bus, &slave)); + ut_assertok(spi_set_wordlen(slave, 8)); + ut_asserteq(8, sandbox_spi_get_wordlen(slave->dev)); + ut_assertok(spi_set_wordlen(slave, 9)); + ut_asserteq(9, sandbox_spi_get_wordlen(slave->dev)); + + return 0; +} +DM_TEST(dm_test_spi_set_wordlen, UTF_SCAN_PDATA | UTF_SCAN_FDT); + /* Test that sandbox SPI works correctly */ static int dm_test_spi_xfer(struct unit_test_state *uts) {
Add a unit test to verify that the SPI word length configuration is correctly handled by the SPI uclass and successfully passed down to the sandbox driver. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- test/dm/spi.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)