| Message ID | 20260219175130.2839234-3-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBO433XGAMGQEMD5GFCY@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com
[209.85.221.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BD42A3F150
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 19 Feb 2026 18:51:56 +0100 (CET)
Received: by mail-wr1-f71.google.com with SMTP id
ffacd0b85a97d-43771113b3bsf1069138f8f.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Thu, 19 Feb 2026 09:51:56 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1771523516; cv=pass;
d=google.com; s=arc-20240605;
b=bMPd0oISj9QKOY6d2Myrfoc40NhAFp46oeLiyJ7Lxe3vOFCHOB+6bbWRfMPpH37X+2
9HrmuzyuycuWb/OBXBOoFFl/zTnjyfT4RK4kkzBpqidDz84t1QmHYjoEFkQYgj1xp9Io
1xiyqXb/kb53BHTNGl1RDxQ5OyJZkgftJlPM/WAvueCN0aXotnpsddBt+dELjiRzsak0
0zw3J6NKJjgoosJ8C3gf79kn/xXGa6C8dQZFdzLL/ALMaEtCCfmrjFOtukq7DCobydl7
ZCKbg7SKk6YLorUoKvtGWMaFcE198E5BsE8MIlYjm+yQg03HrzsplaSpvq0vhfmeHHX2
nYyA==
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=LUrmeXTpus0eqLeYfrydNLtOJNpnJ8MjtoGZC/I8bUA=;
fh=IBSWV+VDHifPsUd6g/ZSEvNxcXZNan2mcvppQbKjrV4=;
b=E/WQ6ZOeQ+6wGj7rpPluJZ+TvDAR4WR8uphRGEPj+WAzH2ww+ZIB/BbmGC/iNvGtmk
jZFeBmCJ/JlYkkqlUcVa5nOeh6ovNUiEwkA8Tnl42Q/E7HF/0XNlwS4q4zxdEED/Tf29
RyipB8eKm3G4Se7lKg23KYB7wSQ+snmdpswmWD6Iuky+Awi7vecdIKM4S0ELjXGVACZp
KquCT/ZBiUp4E2VZcMtKZdqMR6eLAAdnsdHekWHxkblJmTqzJIES/NmMcdS+ooctpAic
vjKNzD66DI3pLmMf/s4GuSLK7G+w9InwE8kQ8fFk9qbmqJPiBt+d0/LZ6QzEEEAsqIBV
qTqQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=jats72PO;
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=1771523516; x=1772128316;
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=LUrmeXTpus0eqLeYfrydNLtOJNpnJ8MjtoGZC/I8bUA=;
b=BDo513IggrdsaD8vdAQKNkdLPBg3VlX+UxH7STI/q71oA01XzJ1NXl1s1SRmyc/c96
XP3lwYxMdKkKbC0E5PHw+dpCOQkYoEOxT0nagYmd1aBcRlOAQcbzgcrlR4TwdBTPOaJa
VhDdvUID8FXjXalya7tiGwua/inTir3IdkvHw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1771523516; x=1772128316;
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=LUrmeXTpus0eqLeYfrydNLtOJNpnJ8MjtoGZC/I8bUA=;
b=EQ5wvgCXycEsMxUk1m2zEgWNBWgwdXqrXHbcYRdJjMrpMHDTLi7Qu7pEpbe4jN0L9R
aLl8/tn2YcizfB2wOwMZ5e1WFi/fyBqJ9Qcdt4SL+im3/E6NT1o8h3AsX/I6RYQHm79I
JQCuUx0I8zDs3dmjj+3AQHDIhEQPpDJKKZ1fndqqLloeD8z+N4AX8t7fiI/cvv21dBo+
PxYLm5RdnD2D1lY3qlRESw9WrKb+metcgLaTnEEKLsOgluODiEwVS9ATQEsonWuXiE6/
BwNi6sNBmn02sIAGOWJDNW4nSlaJHgkVVUYl6J4W2HdtHlA74sfajCzVwgL50UaVwyJX
McLA==
X-Forwarded-Encrypted: i=2;
AJvYcCUb7Fsz+Nu9hvlEX2UniJhAJaoe17d0FWseZCiuU4GjAVsl7EVDLXp8rUYiNHEEtBfjf+Cz0uUoUNmvMCkb@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YwPAayAM8X5LCN/7La909oa0drKobjtlbYXH1qGpJcflldHEkGN
QE6BltrGpPn12WXLUbneagH58W2GNkAowRiYROdqsPm8nMOUQrZudqkdgCzXPWCl83gv1Q==
X-Received: by 2002:a5d:64c9:0:b0:435:a3b9:9b8 with SMTP id
ffacd0b85a97d-43958e09fa4mr11215816f8f.24.1771523516171;
Thu, 19 Feb 2026 09:51:56 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AV1CL+Eacwb4LIH68oHKhOytPPMI1VebGgEyM8XKTUYF4Hk/rw=="
Received: by 2002:a05:6000:2c12:b0:436:324:710 with SMTP id
ffacd0b85a97d-4378f22c993ls5097516f8f.2.-pod-prod-08-eu; Thu, 19 Feb 2026
09:51:54 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCVUrVDkmTIAC4Ztwi9IVjcWV9tJm4LCgTHJPaMgli82G54ymB2czPd+ZzSsKukl4WJz2oZqR9kZOBJYuyKx@amarulasolutions.com
X-Received: by 2002:a05:6000:1a8d:b0:436:8061:7f91 with SMTP id
ffacd0b85a97d-43958e3b989mr11910778f8f.41.1771523514122;
Thu, 19 Feb 2026 09:51:54 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1771523514; cv=none;
d=google.com; s=arc-20240605;
b=GT0dtnbCoR3lNbxeAtuMdrKWZe5Wv34IsuVFXnhLS2tSi/zzeSbtHipyfZSxDaV287
HKsE7PGutrpKV4267akDp+6PSlY7GWBmU8Fjg5dnvdUyG0u8kwFEb9ON5aZuCZbdNtpF
fmuLuZsc0G7tOLBVMybobgHElG+EltsBCZuLnkjhKGPlGWuyHCinRF+ury4JAy1lKI31
G19IhnaaPoDNGVYBOyzKyDvtDXUxlByDWd3MIeUC7YkmE+tUQgJQ0zJqnh7FWigFIAtW
mzvHbGOWU33birnG8L29Z0dskaSXhM0MvtR+kvvqmbIIUqG49+5NHeHldSXJOv9BO0c0
KqwA==
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=mA6txAjpKnV7iUaVBfj6HhQ72BfpoUuT9C0VpGIiaNQ=;
fh=imJkWifuki9SzTYLczV+zsQLfHg2U3O3Z7tKdAoESvs=;
b=ZbKeyMt9XG3OGMowAOa30+rOZJaUxNm2L9jR9jox4Kpq1igquzq+8mmoNBKoLWEwlV
i4WllX2iZX4HbcIVDnEnkaJOBKU3CsS5X4Ch7r/P5h2pRhHNVT/XjaXYBb+Dd9bsKDIC
iPoR5oF7m4DJMvBV4AzY1YOdcv8xeVPJ7jv38CxzbshzFrs3A1SOsenUCZLUeeKL329Z
XA5o1XoTt3/5Axy3OrZMa6CFq6TkA5Cnqy6yEpR1KMKIs0GDV4hFj0uHeEbVYD/axGQZ
Pm0v7LwzRF3pnfkjCdfozWOE3/CV9fhXCZDYYjoDGApk3YbI6ubyH+iXf9nhf0ia5ACH
COMg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=jats72PO;
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-4395768047csor901057f8f.20.2026.02.19.09.51.54
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Thu, 19 Feb 2026 09:51:54 -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;
AJvYcCVNpCz68HURGAOxrjmaBZl0we0rn+icnMstg7kiOIvRO/KKG0Hqr6cKzokeWwleEw/8HvUxxjaVMf4kBGd/@amarulasolutions.com
X-Gm-Gg: AZuq6aJyolTyGLEA2prrK8cc0FglyYNyOMhpgm7IElC4oQmOVXI5tmQYsSD8SJDjtz2
xDyHiPMOCiq1NGlfz5/Bw+O2yO19gJ/zx5I9nmHH8lM2V6fhnvfGbPF+6NOahGdsWVTnhLobj9/
9df8U6UxN2f75MkdBqOcW908RY4xO9J6lKk1aq8okdSp/2g+ibWEMcOXlwTFImMBZcixap71/aY
3rADgthB7nd9Eazuj3DrzHLaPYYibnvzOgcgFCJD3MEmPGgWDAwFYTaBOcgtRA2qaB3NOPB0pnX
1yM+pVC+n553SE8nSgBwmKJgeuJ0rywsEjM3V7uzSJ/BfEjonxivapEb+evSUGoWsJjeafCRF+K
oyyNir2NpNWJ95ZOnxL8oa4/wEvwzHs9C4E10RnE6CW2epgT3dMFSvF4GY56fPUeQepLKP7qrt1
acctGoY5aP0uyKffKf/bym9eWyWbV1wsH0gRJZVNi2wuVcC3/5lcUFDca4dPWoHGU+cOqA2ISzq
HSwVRTGCgDAMPK+cIDqNtCSeik8SMf4GKrWuERurb+LdwSVd+uXYEYxqDRQ9LDKfPAkzzMmTGVf
qCav9XEOmxiX3pICX6aoTIbj
X-Received: by 2002:a05:600c:6207:b0:47a:7fdd:2906 with SMTP id
5b1f17b1804b1-48398a52eccmr97170635e9.12.1771523513726;
Thu, 19 Feb 2026 09:51:53 -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.50
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 19 Feb 2026 09:51:53 -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 2/8] spi: sandbox_spi: support wordlen setup
Date: Thu, 19 Feb 2026 18:51:13 +0100
Message-ID: <20260219175130.2839234-3-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=jats72PO;
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/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 4cc016138b11..8eed56140f6a 100644 --- a/drivers/spi/sandbox_spi.c +++ b/drivers/spi/sandbox_spi.c @@ -34,10 +34,12 @@ * * @speed: Current bus speed. * @mode: Current bus mode. + * @wordlen: Current wordlen. */ struct sandbox_spi_priv { uint speed; uint mode; + uint wordlen; }; __weak int sandbox_spi_get_emul(struct sandbox_state *state, @@ -61,6 +63,16 @@ uint sandbox_spi_get_mode(struct udevice *dev) return priv->mode; } +static int sandbox_spi_set_wordlen(struct udevice *slave, unsigned int wordlen) +{ + struct udevice *bus = slave->parent; + struct sandbox_spi_priv *priv = dev_get_priv(bus); + + priv->wordlen = wordlen; + + return 0; +} + static int sandbox_spi_xfer(struct udevice *slave, unsigned int bitlen, const void *dout, void *din, unsigned long flags) { @@ -158,6 +170,7 @@ static const struct dm_spi_ops sandbox_spi_ops = { .set_mode = sandbox_spi_set_mode, .cs_info = sandbox_cs_info, .get_mmap = sandbox_spi_get_mmap, + .set_wordlen = sandbox_spi_set_wordlen, }; static const struct udevice_id sandbox_spi_ids[] = {
The driver currently ignores the word length configuration. Implement the set_wordlen operation to store and track the current word length. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- drivers/spi/sandbox_spi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)