| Message ID | 20260221094252.3103034-4-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBJ744XGAMGQEHUMC5LA@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com
[209.85.128.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3236A3F184
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 21 Feb 2026 10:43:04 +0100 (CET)
Received: by mail-wm1-f70.google.com with SMTP id
5b1f17b1804b1-48069a43217sf23885905e9.1
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 21 Feb 2026 01:43:04 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1771666984; cv=pass;
d=google.com; s=arc-20240605;
b=kNGOqis46/KnAOkKEVqTg7Z9+yG1V/gI0RAyUb1vO5M7Wj7lqpFV+/hvWAD5FYNZHb
QvILesQT+2+vXYMFjVauC2Fho5fkafQODwsGx3KqsU7X/lAlj9Mb1QLyI7xkgFh8gPV8
f7Hd+LhCKEDDWgQLw3OQS1xTeZbSpPZ4euq1QhDJbjlXquauf8NCx6sAlSrfld+DVGrR
GHN0lgm52v0XRjRqTJXPOjIP1/DbWTMJKigs6CZ2/dQArutD0Evtj3g5PZtyeW5bZ1MN
guSuF8MCgs/E85Sw72UNdjBdVdkwimf21P7UOZHoq6XjxJOkkZkoWmlPnw3SRFFTyKix
U0eQ==
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=D4DmN/ofmLFshCUfd/fPSq8tyDuSEkUvPvjTPb+1zwQ=;
fh=R2lFlWjZUBRAlQpEiwR33CaAP6SohnA5bVX2W6UufvI=;
b=OqsKtmyO/dW7dLeZtJ/0ueRXWT4cGJrghP7zllX0itNAmsv3a59EBb2sZlt2MdUiin
3pGMte5zfY+1+PYYOg1W5tuWq9MbkFVXI5GGMUJ1UkLdKqgQ5Lxb24DWkMS7RyRNtytW
SBkYRihs9apzF8a5+dDl5LQPEXLR/JK2NqlNiWaJqRT/mNrfy6EKdXzTBcCF1aKKJFt4
ElB8D4EFb45FUHwYxgWhvYaTGBqoxO0flqDRdNUDvc+JQuYLEy7qKQV0U+lYcWLsvsSb
OfOIuqmKXEOlGHTikbITz9wjFFYDSpxC+ijhUoDlQjeMBtL8uKgpdUTNGdfW+TVDSzYl
jmQg==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=baY7ojQg;
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=1771666984; x=1772271784;
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=D4DmN/ofmLFshCUfd/fPSq8tyDuSEkUvPvjTPb+1zwQ=;
b=rR2Zl87GOSWSobE2DJKXd1e+hqPrJQwllkld3ABJzpHeVgBU5ej5sXVKV4sX2NYLRW
PzMGay6HDm4eHw5C6+FI58+LEIBbpg5KANdJDqeYmzP7/rNac8QtBYJBHw4a/vAemdkR
mOUyuVnjY7YDo8OADjt0mdtx/fF3wgcCE0Ok8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1771666984; x=1772271784;
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=D4DmN/ofmLFshCUfd/fPSq8tyDuSEkUvPvjTPb+1zwQ=;
b=rn/fc7dkElyrTmiv1J1rpl8Qy/AL3A6wavhuj/ZoXVkmQcsIggA2J5dDvF3brFsRmD
3BqBDY/nXLmda91oCv5m6Oa5cB5T3qssLT1ND993qcdLe2TNsK6nt5np3yvw0TnljfV1
T8HIxaS1/NrxWpevZ3ffIw+sxRkJ1C68ATXaoQrwQ45Y7nyXHtl4ljZp1gEAF5GKINa9
kW6f9/3FbZVDGJt35iwma9dLdbsxkq35PQ/SQIa4Y5yuY7JuRoqQk6jFy6M16NRNQb7E
E0K3fJXz1dahQiviwQ6EYFvgKmDm4JG6NPjfigcBKCWQAOK+5AdcmOXZXdgffZtBZqUp
RtRA==
X-Forwarded-Encrypted: i=2;
AJvYcCU5ccDBrRnzv5EDOBQW46anqEgPjh8g0TYe/cERYh7NGqi5h3gR9H8Bmbkx4OdPM0pFk8K6JmpzoyO6n72w@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YyM0yRQvcvYxu75Hc4JlEvowkm32iWpHdcLt8TaAJDwadpiP933
SmopUwD7bbsfamBmp2torXfZUla9zvGjjj/SLeUEKtxxwnL/e+dWUKgeXrVK51xdSlPsOA==
X-Received: by 2002:a05:600c:820e:b0:471:1765:839c with SMTP id
5b1f17b1804b1-483a95eb319mr39214715e9.20.1771666983781;
Sat, 21 Feb 2026 01:43:03 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AV1CL+G7T9K2pbkLOGoJg6oOg1VpMo5VY02Fbx4eiWNdlt3Npg=="
Received: by 2002:a05:600c:1d0e:b0:477:5a45:da9e with SMTP id
5b1f17b1804b1-483670213a0ls66006305e9.0.-pod-prod-04-eu; Sat, 21 Feb 2026
01:43:02 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCWLmp6744iAAxTS9DHQB6c446HKaw5yY1OZwN8EHZsOBbjNN1+B6QT4cmOA1gaWO39/Bf9Ofqx3dYya4qtV@amarulasolutions.com
X-Received: by 2002:a05:600c:6296:b0:47a:81b7:9a20 with SMTP id
5b1f17b1804b1-483a95c6774mr40419945e9.9.1771666981774;
Sat, 21 Feb 2026 01:43:01 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1771666981; cv=none;
d=google.com; s=arc-20240605;
b=ZOJzCgbAqIK711Ssz/BAJEu9M9hIY4mto6bq4/YQfP2r0HE5IWSoUGtdqvs6z6TIow
TT5DOcAsDEzY7suKnYFn+RdxbBl+AHZO3kYliifCuzo543e7VXCd5MlG2bJKkc7F+bfP
24ETxXVzpIDsRz8JEtFbV+ExOX+EpOwetgQ7BB/3XEtBptrVjRu5tsvJhglIB++QTtly
+3hcsXeY6MvECAiLRsUk90zWT+l1jioc/kMgqWjJ6rJe5Y5PhDsItemeawjSbNP9qKPN
y9MN8tZa7pTWT3xeQbUaNh9PffWGy705U7D3mkpVnjJfGUn6xS2U1I7LaKj3JKGLQoRI
yLNQ==
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=dh5Z81BHMLz+L3luo+o19BjOyiH42+e1YEzMpViHm8c=;
fh=7aOlLes2dP5CoyGHxm7C+pwo1KAuQ/aYWFEPliKul9k=;
b=Cgs92YALBIx3ftVqLvhkZNKLoslud58tr4HMwTZmi6bStBVmEXj2xGruiBLHzxcIhI
i4d/MRrGa8UFAwIf7HBTLUBGhT9xFH8wwgJ11+GvN82w5Wg6Ed/ynjiaeeUiBUh4NZsd
uFP2FCGjjEMFg/BB0qYLT8h3yBEVLFfOExVf+ieTwO9ry9CC0Y/i1ju1CMIQC6YcDN4h
wS+2pSM5pOrYrfPjNlvbxe88fGpxFwDZ0pLzfqeu/CwtY/rkLnTjgUNJrpJhwPTxKZFr
raJucTtFw3RQGhlqvBftuW3LddwS96YjmSPzVJCj9z4l3jrHrG7qctVBtzawsjq6M6R+
JxIQ==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=baY7ojQg;
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
ffacd0b85a97d-43970c04b25sor231479f8f.8.2026.02.21.01.43.01
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sat, 21 Feb 2026 01:43:01 -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;
AJvYcCUbEDGTnB2z1dhWxlp799OWN4xZ6J5wY3+pPsFnfqhF7GhzTPxqjpUi+sKUdoLjfKRohij9yUpF9J2cfwZk@amarulasolutions.com
X-Gm-Gg: AZuq6aK4cbJZEPh3lDvVfpZbmCEwnmliChymnhNmsAuH/btsDF2fFX/JIcpvczAzGaN
1euLP2Lmt7fa/M98HaOj0a39X6NyzAOqUMlWzqeyyUxf/3FtV2vjLZNfvZiRrXZ0lHVEcxj+NiQ
6Hra9O2I2lTX+dYZ8V7c06xq1NJc0vGNZrxDfJkBsE8h6lPeBUhv+p64jfHI7dYd9sgfzMy1yt1
3vASsM0v4kjvJZNBum2BNNARu7UvFM3PT7VWH0Mw7EbV3+PUHodbiAlCXbhHXCMKkEhoIKclvZa
LHkcMQw5WZnJN2hT/m3B5umdO0ZN7dxGE9qV6QIJVVl7o9yXBx7G41zQQWJQGfflbUHub1m7Mt5
rqU3fasP3NCIX1TgVfGNmr+42JMlZdQmSfjvaJtJDgyJs5ueFqjTP4yOhuhhp3n99pRjMAhAouO
ZiWYdfldndqJwm1o7iXNYlIr/5o+DL5bgzjsDcRUrZJwppeuBS1/9IuQdOCRjjJhILAqLPYfcKD
7hTK3Ced/J7MTFdjkGhsJMxDhfDS9LNM0ANvvO8cw4OMTmAho5ni5WY1jwdgVHtvMunqCgjjdSe
M/enr6qoDQ0hPG8I8Tzl3rQ8Fu81AorAtEw=
X-Received: by 2002:a05:600c:3484:b0:483:7f4e:fef6 with SMTP id
5b1f17b1804b1-483a95fa4e7mr29237575e9.26.1771666981323;
Sat, 21 Feb 2026 01:43:01 -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-483a42f3968sm42694225e9.19.2026.02.21.01.43.00
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 21 Feb 2026 01:43:00 -0800 (PST)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.denx.de
Cc: Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Jagan Teki <jagan@amarulasolutions.com>,
Simon Glass <sjg@chromium.org>,
Tom Rini <trini@konsulko.com>
Subject: [PATCH v2 3/8] test: spi: add sandbox_spi_get_wordlen interface
Date: Sat, 21 Feb 2026 10:42:17 +0100
Message-ID: <20260221094252.3103034-4-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20260221094252.3103034-1-dario.binacchi@amarulasolutions.com>
References: <20260221094252.3103034-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=baY7ojQg;
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/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h index 0e8d19ce2325..0438790028b9 100644 --- a/arch/sandbox/include/asm/test.h +++ b/arch/sandbox/include/asm/test.h @@ -243,6 +243,14 @@ uint sandbox_spi_get_speed(struct udevice *dev); */ uint sandbox_spi_get_mode(struct udevice *dev); +/** + * sandbox_spi_get_wordlen() - Get current wordlen setting of a sandbox spi slave + * + * @dev: Device to check + * Return: current wordlen + */ +uint sandbox_spi_get_wordlen(struct udevice *dev); + /** * sandbox_get_pch_spi_protect() - Get the PCI SPI protection status * diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 8eed56140f6a..b035a60ef43a 100644 --- a/drivers/spi/sandbox_spi.c +++ b/drivers/spi/sandbox_spi.c @@ -63,6 +63,14 @@ uint sandbox_spi_get_mode(struct udevice *dev) return priv->mode; } +uint sandbox_spi_get_wordlen(struct udevice *slave) +{ + struct udevice *bus = slave->parent; + struct sandbox_spi_priv *priv = dev_get_priv(bus); + + return priv->wordlen; +} + static int sandbox_spi_set_wordlen(struct udevice *slave, unsigned int wordlen) { struct udevice *bus = slave->parent;
Add the sandbox_spi_get_wordlen() public interface to retrieve the internal word length state of the sandbox SPI device. This is intended for use in sandbox SPI test cases to verify that the word length is correctly propagated from the SPI uclass to the driver. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- (no changes since v1) arch/sandbox/include/asm/test.h | 8 ++++++++ drivers/spi/sandbox_spi.c | 8 ++++++++ 2 files changed, 16 insertions(+)