| Message ID | 20260221094252.3103034-3-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBJP44XGAMGQEAWLD3BI@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com
[209.85.128.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DC4F93FA4C
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 21 Feb 2026 10:43:02 +0100 (CET)
Received: by mail-wm1-f71.google.com with SMTP id
5b1f17b1804b1-48079ae1001sf328725e9.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 21 Feb 2026 01:43:02 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1771666982; cv=pass;
d=google.com; s=arc-20240605;
b=LHordmhV3RqnCqvTwrw496InZETMRA+0ydOwmGrjYy7TKVU2+beitej8+85l8CAebi
Ks/cvY4eURomJWCvziAgW9/kFqyv2jFqGeq0fbdfqtMLRnjAtFHTpNIvuy+OJnBgMRfU
WGJ39u3/Nzx1Uf+2ESKmZfabGXoFLnLz+DGELHI5KjU0AfOVZydesWGYwfNlnFb8qWb6
otViCzXGVOmpisjTGoTxWEgzObIq/yekXDTuzVK9C4JKhLtU1D0EgZNv228BpXUwYlzU
Wyh9AWEa2YdwU1HLFUXfJv2AOSdDHP0mnIyC/s8xUO0aUzKVXxvpUA0he7kPjml5eUXL
XkKw==
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=kxVytbmWIKOOh3plyHCrUsSJEj+nfWx3D5ywCewowkE=;
fh=rwoqnFJgjFBvdlnQC+x9jt2gdGMw1Zw0P9Q/pMLoWNk=;
b=YtP7i7U3XfeW0j99b9qMeHLM2bEYRBaopp3YpPKGxDFf7fY9s5lhnl1O2Qfnqu7Lo0
q+y+heDxJ+YYMes6ACGdivth1CEWkUHMhq/kAPUXtvHh2P52+Xk08ty7ze9taXgFhtCC
H08XeVaGbP1hXRqMHtEXXh9OvuEp5ucT+9hAoR18TfpXgDTOfm0Hqd470wk8Wlx8aWzx
dV++6BWvVv6hk2tk9h2uRy9gP2tyNfdVfZAnvDamkkSml6yptp5pWBT2ZS+ZJ0Gt4Mq+
SxsRGJU3jrHWdBSio/BtuoP4FpaGpD529syB8DL/GtPBrl7s9Yk9fMKoB5HMNw9GL7op
+ZZg==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=eXN86hfa;
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=1771666982; x=1772271782;
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=kxVytbmWIKOOh3plyHCrUsSJEj+nfWx3D5ywCewowkE=;
b=dEjab2dQhszcadAAYKRgY384+FwWQUi2FBidyU8C8guzJ8VsqGdxkHLmN33vtLRGvx
6ZY9Fr6cgMUAWi1axcQdEVnQjst6JRnoAQIKdlFnCjoSwUva37pbuiDfpE6gB0WJ4kvI
WcsMIHoP8v96furZikFrEKbsHRr06Obib1BYY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1771666982; x=1772271782;
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=kxVytbmWIKOOh3plyHCrUsSJEj+nfWx3D5ywCewowkE=;
b=bwq7xPoEXSxftPWvLs5olbQyyVgtoKiPx4muuurKk0AxCWVcPLFB2fjsEnHGe9rk28
mXZnL9/dvHN1plPi91a+cfe4EoCf4GA/XGQqJCFzr7faIGIuQd35AxabnBe868BmfWgy
LDXA1uAY33iEQxGcBHyJD5rpcRp0BXlJ27snuf1jdk/oyJyTdPa8yBJiV/iRfr4dCrn6
14woMwCi8dS44GxOPIqBlKbeyoVEizOHDBPA6ltpM+YpYnEf3N0Y6PZ3a0L96tn8A1oE
mXUICPGk7h0uILPy5mw/SsW52e6qsRpxf5IReI9mn7sGkfzq34A4E1jARXW0hJRNj1Wk
2uCQ==
X-Forwarded-Encrypted: i=2;
AJvYcCUUsiBGDgjWHOSDuCJuQq8KIxVIw9cN8kL2vQi2k7N4WixpGPpoBE9x0GhxMGf7HlpEZGh221xVtMJeELm/@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YwtTaURofIx4Q1ZlPj3Fg7I8nOwrdNmqjJRKXAkQ+6vb1I7T0C5
nythsCvwnhdET5GQScnub7/pEHYHc/M3nAXozOIF5ARClIs/E+zsI9ahyAU3M63mJVnNxg==
X-Received: by 2002:a05:600c:4e4a:b0:483:129e:b573 with SMTP id
5b1f17b1804b1-483a962d1d1mr43919975e9.18.1771666982340;
Sat, 21 Feb 2026 01:43:02 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="AV1CL+HO28znfcDKnRb0XeylSHf155loE+EJQ/D4DVHRpEGU4g=="
Received: by 2002:a05:6000:611:b0:437:6a7d:54e9 with SMTP id
ffacd0b85a97d-4378f24b347ls6926591f8f.2.-pod-prod-06-eu; Sat, 21 Feb 2026
01:43:00 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AJvYcCXjIApIFyOFOFXSm6k5ouN550eMAH+Ucc7lHCrFCyW+wm0bBvDR2yS65viCxwVwDQ4jTATgNUbgECWr9AMW@amarulasolutions.com
X-Received: by 2002:a05:6000:40ca:b0:435:9e81:105a with SMTP id
ffacd0b85a97d-4396f15b31cmr5465577f8f.20.1771666980421;
Sat, 21 Feb 2026 01:43:00 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1771666980; cv=none;
d=google.com; s=arc-20240605;
b=hU0TgSMwd3NcrGgWRb/z7XeIwLIihyiFXnXRy/IrhNessRAw5+HBjlHqNy61AnFH8K
81uJukm3n8tXsN8bQTzxiQAc6c91FM1i5j8LiCCX9g4R4c6hwMjxyiqkcEV89szJn/0w
UG3UGizFMYcsNSToHzeF4MWQfWz8R3gSRQwZNI38rJKqK75AdkQWx3j7UrOEISSNIyA8
THkkOKbPrrifWSWAdIZS0G5fKXns6jElMLbGapnW73ZOjXOd1yYPzjBUGbwFIvUm2iJt
JrinMA+7xq7nFA0zb1liTLbwJpYdQTeT11MYAQiCJB7uE/VeBHrJylIEsLqfYclul4u4
AkEw==
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=F9mxAFse+1KkxrCjPFiqiDmArYA7Aup8uovARfrottY=;
fh=oAe771zf7Ufb/eFrAEHi2o3e70ohGpB0eP2kYaL2aTU=;
b=e8qZ83nbeUONZe2J7fw2PH/eUBj7QqnTA0v58gRS3wM29gHc1aGe4K4Lx5r3ETUg8g
Z+58b2AaDEWbXxWki6qqgPg+iJlJ//Dw62mMz79gyfkgHuUUirgrEj1e0YeNo2g4h0yE
qDxpybUJ/iCV8bgzPaISw2Ecit5piT58vm4xnSuXf0KbypqQwcdrYBoeUsSwJs2S9AHR
BRdk5sWZK7cObiqnqy3zKtG8uonLNRXBhZYUnXO6psPmH0bmlpNP2KBbneEXNw/A/ccX
A+ITnK6DH0p3y1qa2OMGIEIpuzl8TJpDu5Kw1zL58T7qZ+j8R/D6M1KoYZrdbZT4q7+3
AN0A==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=eXN86hfa;
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-43970d646ecsor183035f8f.14.2026.02.21.01.43.00
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sat, 21 Feb 2026 01:43:00 -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;
AJvYcCUbyOS4kw1lHo15qFLL1O6+VfyWbM8Gqj4BWrkRsk7pej6onq89DNqM/Im1/PsOwzYDk/+njxL0g2sDzz02@amarulasolutions.com
X-Gm-Gg: AZuq6aJRhIWMeUDuoHOLNhzMTMv9WY52jLYRVB22aBX33rpDhmFTN1zycYB5CxRiKM/
TULLr5SEoSH72i3snbyKUHrxQf0T2GELSEqbcI104owFA+Wp6h/msp7ux/36DivNDivBbSFzViE
xLccZ7M3gbYTdyPayFCV+hN7kOC7ydD8YWukpudURYNz1RfeXzvSEgyA+OOGhbZPAfad0Dxoced
XyvAwiWddWdjiDoyFuNwxa1FiEl5+DA+eq5k3wFK/Wwz2XiurtBPENoo8gTxduKWZvbllNfXn45
nso0qChf4RlyMUnYMLFpLERt4bHtgN6zTlD2/xdi9r+Vrnqv7X75KDUTkcfT5lPP5WfA1xMBUYq
U12QG/vFIJGEUPepfo+L+gc+J2Gp/MeDciBnZmwFRR/Kt8akD9XgDpOgc7thW7tHJv6PXAyuIZw
vJa2YbpVGUxw4ZPRf2wsOYOVITgWQaD2lq+d6TxmYoRNCYnmHGX1bp6TfEVr29gJ8uZaA00cX88
VcEc4INf2ruNmgwTb78pBpK9elq7hvvNPoaCkxdvjF3MhxpDATILM8P0EJmYOMD0a2u3iWypJyO
Hmm8I+O7sc10f6n/TD4n/SaT
X-Received: by 2002:a05:600c:8b88:b0:47d:885d:d2ff with SMTP id
5b1f17b1804b1-483a9636340mr34250205e9.29.1771666980031;
Sat, 21 Feb 2026 01:43:00 -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.42.59
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 21 Feb 2026 01:42:59 -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 2/8] spi: sandbox_spi: support wordlen setup
Date: Sat, 21 Feb 2026 10:42:16 +0100
Message-ID: <20260221094252.3103034-3-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=eXN86hfa;
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> --- (no changes since v1) drivers/spi/sandbox_spi.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)