| Message ID | 20261203023403.2049053-1-vincent.mc.li@gmail.com |
|---|---|
| State | Staged |
| Commit | e437d287f910d536d9e4888c1b9eb0c03c22de98 |
| Headers |
Return-Path: <development+bounces-3403-patchwork=ipfire.org@lists.ipfire.org>
Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)
server-digest SHA384
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified))
by web04.haj.ipfire.org (Postfix) with ESMTPS id 4jfzGk6md3z3wbJ
for <patchwork@web04.haj.ipfire.org>; Thu, 03 Dec 2026 02:34:22 +0000 (UTC)
Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org
[IPv6:2001:678:b28::201])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519)
(Client CN "mail02.haj.ipfire.org", Issuer "YE2" (not verified))
by mail01.ipfire.org (Postfix) with ESMTPS id 4jfzGk1sXtz6n7
for <patchwork@ipfire.org>; Thu, 03 Dec 2026 02:34:22 +0000 (UTC)
Received: from mail02.haj.ipfire.org (localhost [IPv6:::1])
by mail02.haj.ipfire.org (Postfix) with ESMTP id 4jfzGk15GMz2xng
for <patchwork@ipfire.org>; Thu, 03 Dec 2026 02:34:22 +0000 (UTC)
X-Original-To: development@lists.ipfire.org
Received: from mail01.ipfire.org (mail01.haj.ipfire.org
[IPv6:2001:678:b28::25])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)
server-digest SHA384
client-signature RSA-PSS (4096 bits) client-digest SHA256)
(Client CN "mail01.haj.ipfire.org", Issuer "YR1" (not verified))
by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4jfzGg2zxJz2xGr
for <development@lists.ipfire.org>; Thu, 03 Dec 2026 02:34:19 +0000 (UTC)
Received: from mail-dy1-x132f.google.com (mail-dy1-x132f.google.com
[IPv6:2607:f8b0:4864:20::132f])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest
SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "smtp.gmail.com", Issuer "WR4" (verified OK))
by mail01.ipfire.org (Postfix) with ESMTPS id 4jfzGf0WmJz5Y7
for <development@lists.ipfire.org>; Thu, 03 Dec 2026 02:34:18 +0000 (UTC)
Authentication-Results: mail01.ipfire.org;
dkim=pass header.d=gmail.com header.s=20260707 header.b=Au3+qdxT;
dmarc=pass (policy=none) header.from=gmail.com;
spf=pass (mail01.ipfire.org: domain of vincent.mc.li@gmail.com designates
2607:f8b0:4864:20::132f as permitted sender)
smtp.mailfrom=vincent.mc.li@gmail.com
ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none;
t=1796265258;
b=pZRowwyMRFZuZdkBHzgMzP9gQ4MXwC//r+NDT1LCpLW5QWbRi15nv6UOfn0uBl+I3z72qX
8zgFd5xnrJHXk5oZNfycnOSA9Lek71tKiG6i0yjGU5H2Hl1xobUVphWRe8WL/PKqFpt6xN
8b2wEe2G9pOINkQn0TYpt1SnAThS4hmy0Nsud1VuySag8dGmBlrAtPQGzl/xOrEEJV/fPG
hjx1AMmgFfyTpeu0XCPIGPu7dOmpaMjjDiAeWfwkeX8rBsimb60XBnv/xbSHpHQs1wSXgj
Cy9BDTn2H+6+u97Cnms5g+ZJ3VUxUpku8hN4OTVixI9IQBZVDhnzlM1z/8qgVA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=lists.ipfire.org;
s=202003rsa; t=1796265258;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:
content-transfer-encoding:content-transfer-encoding:dkim-signature;
bh=Cmb64JtFv9LJxF65Aps/S6IpawE1fErFnEMuqUEmGMs=;
b=RMFt8nDe5v5Paegre5c8czqPFhncMnwZyWCp14l7rdRwrE5vjQ+SWIGkoYr6isohQPvRMu
m41GiRP3ZzNbJQbyigqni/Mi+ypI11yTQM59d92123drLQ+LRA99VY4rLQ/5EM0sh6GxrE
RQsSCqiOwWY3pUoXIwsQpsej1EoXeZbko3k/OW1R8oytsp5lo6mdKmeEt1v0SbQHvoVH3n
tGjHfE1WNkMYt3MI10U4ymUQFend8BlIvdio8c5JRPf1M2UrOWM3qR4mRmuelln+jix7Ho
C3dM11vlNgxxULfUcRwZ/CiBT5lMhZ1l6kGqIcTzji2zaGgFaNlYaubcsugVRg==
ARC-Authentication-Results: i=1;
mail01.ipfire.org;
dkim=pass header.d=gmail.com header.s=20260707 header.b=Au3+qdxT;
dmarc=pass (policy=none) header.from=gmail.com;
spf=pass (mail01.ipfire.org: domain of vincent.mc.li@gmail.com designates
2607:f8b0:4864:20::132f as permitted sender)
smtp.mailfrom=vincent.mc.li@gmail.com
Received: by mail-dy1-x132f.google.com with SMTP id
5a478bee46e88-385c497bf94so3755024eec.1
for <development@lists.ipfire.org>;
Wed, 02 Dec 2026 18:34:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1796265256; x=1796870056;
darn=lists.ipfire.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=Cmb64JtFv9LJxF65Aps/S6IpawE1fErFnEMuqUEmGMs=;
b=Au3+qdxTKqDY5sNtSg5uy/RdwyhFtxoE6lC/F44UA9G7rjeItdX1dQUuFoW/K4OPgN
wItB6bN6EwicCAufC82a1tGUyUoGqmVzKxM5BrXf9DC0BczzLanQOrLPkVSXh4Yau4kU
YB4sFZ3HbeQvoZOfaMUiLJ40lo/vmSzvsZY99AzWagoJWBlM/5PDkBCe5e7i1nHlqVHu
HJzd+7ZBj4eOvA4LI2mArKJQ++JGW755992K+/XkghiOAeT79vODAnhCxyxMBhoDKubr
Jb3Q/6FLGH+oHL65VszEtamaq8lIQ5/tGfV3D1kC1rxl3WiVokBjiRQB0yYO88SpUzFm
TB2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796265256; x=1796870056;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=Cmb64JtFv9LJxF65Aps/S6IpawE1fErFnEMuqUEmGMs=;
b=TxAUnPMNmsNVbOPtZWSoBErxXDvOX1Wu8iiv/uX3ZnLxi2jc85F8CKEw8eBATAsHqh
4S6nRUT0UIhXKuVdUj+4dWb6Czqq476NVm1/gqJ78DuVtd84BuX8dx8pYf3i3nR8iySl
LfQwP6P5oBdYil1zdyK3W4iWgFzKp7hwTWoCWKk6iyHJgSkUUTYPKDFyymWcLd+qNWYc
Q/aYgjq7BplfIO+XJg9rgEtHOoWnC/LjVehzqIKjyBAPuRCxSp0OBzgspa+qJDvkEvsu
/WeZISOqACjziaY+T9JWTWqaUohbvnsL0tCOf/6Alf2Q+yfMcSyGkFaU1jbjRdhsEQvU
K6gA==
X-Gm-Message-State: APuU4Z9tmver3ZvGuK185bKfrvyN05z4IL5D9yNJEXBf3JUZl9I5n3pJ
RktQ9WdHh4VCn//AVq2RqXcMRIf6B4LkRRRljm68UPiCgrQAx0eU7mC+XK1p1g==
X-Gm-Gg: AZFdTZenk6EvhOPVmf8F2Oc1e70lPJDJEu9EZLSpZwM64oQi6PtEOkRNmpahNZljsL1
/3DqKwjV428TGSyAAzsq20j+eq2wpQ3f3/MSxaQU8qEyhSFV3T2mrXC2mbJucY3cDJPfl0R9FjK
cXFW2rqmyJ/Oj/YZmXGhq5bleN5oziHRlTR5wrEBaHj7Q/ELoaqKZnbIGNiYCM3r9OJ7beKlznO
AUIxQ78y7ArkfE6Kt0xR3jLlS5cD4ZvPrJynwfgu5kBWUrqLr/5DlYGF5fq5bnkqsJiyExhkwc2
BKcKHbTNCD96OrLO613d1egjLB9iAF2sl87cnJBSLvfbah7qy8EEZJ1DtSIy/BoGQ3TP0cVziPT
/zcO7kuvM7Wa9FHLcFgBU6fnmjGK1B0txZPmwqcmy58RcCe2MA+0RTlN3vtwDuxoT8OaOz5ZHBk
XjNHTrzINNIYE3fdX0P4GhxdKG6zBga/RHtTC3KeJhRTNgMaOGdBZi051kLontcng09BeM8TKNH
KEZ54IJVvRbGiNY9F8VXZkdBAfvNqed+NwUUqf/vYvAs5wRZzxA/br5ozWJw8FSDLmb+M0adcOF
hlhsE32qDtah2EQW9xISZiAmwqgos/oInP0HQjOMr3z+rLC6qBCDt296Tw==
X-Received: by 2002:a05:693c:414e:10b0:386:a1ae:6762 with SMTP id
5a478bee46e88-386a1ae6d5fmr39891398eec.36.1796265255515;
Wed, 02 Dec 2026 18:34:15 -0800 (PST)
Received: from wg-vpn-sf2.. ([138.197.218.192])
by smtp.gmail.com with ESMTPSA id
5a478bee46e88-38567cafec4sm135772550eec.26.2026.12.02.18.34.14
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 02 Dec 2026 18:34:14 -0800 (PST)
From: Vincent Li <vincent.mc.li@gmail.com>
To: development@lists.ipfire.org
Cc: michael.tremer@ipfire.org,
Vincent Li <vincent.mc.li@gmail.com>
Subject: [PATCH] kernel: Enable loongarch64 kernel config MMC_LOONGSON2
Date: Thu, 3 Dec 2026 02:34:03 +0000
Message-Id: <20261203023403.2049053-1-vincent.mc.li@gmail.com>
X-Mailer: git-send-email 2.34.1
Precedence: list
List-Id: <development.lists.ipfire.org>
List-Subscribe: <https://lists.ipfire.org/>,
<mailto:development+subscribe@lists.ipfire.org?subject=subscribe>
List-Unsubscribe: <https://lists.ipfire.org/>,
<mailto:development+unsubscribe@lists.ipfire.org?subject=unsubscribe>
List-Post: <mailto:development@lists.ipfire.org>
List-Help: <mailto:development+help@lists.ipfire.org?subject=help>
Sender: <development@lists.ipfire.org>
Mail-Followup-To: <development@lists.ipfire.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Rspamd-Action: no action
X-Spamd-Result: default: False [-9.91 / 11.00];
NEURAL_HAM(-3.00)[-1.000];
BAYES_HAM(-3.00)[100.00%];
R_DKIM_ALLOW(-1.61)[gmail.com:s=20260707];
DKIM_REPUTATION(-0.98)[-0.97883712025943];
SPF_REPUTATION_HAM(-0.83)[-0.82625770177227];
R_MISSING_CHARSET(0.50)[];
DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4864::/56];
R_DKIM_ALIGNED(-0.10)[strict];
MX_GOOD(-0.10)[gmail-smtp-in.l.google.com];
MIME_GOOD(-0.10)[text/plain];
IP_REPUTATION_HAM(0.00)[asn: 15169(-0.32),country: US(-0.01),ip:
2607:f8b0:4864:20::(-0.83)];
FREEMAIL_ENVFROM(0.00)[gmail.com];
FREEMAIL_CC(0.00)[ipfire.org,gmail.com];
MIME_TRACE(0.00)[0:+];
ARC_NA(0.00)[];
FREEMAIL_FROM(0.00)[gmail.com];
TO_DN_SOME(0.00)[];
RCVD_TLS_LAST(0.00)[];
RCPT_COUNT_THREE(0.00)[3];
RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::132f:from];
TO_MATCH_ENVRCPT_SOME(0.00)[];
ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1];
RCVD_COUNT_TWO(0.00)[2];
FROM_EQ_ENVFROM(0.00)[];
DKIM_TRACE(0.00)[gmail.com:+];
PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org];
MID_RHS_MATCH_FROM(0.00)[];
ASN(0.00)[asn:15169,ipnet:2607:f8b0::/32,country:US];
ALIAS_RESOLVED(0.00)[];
RCVD_VIA_SMTP_AUTH(0.00)[];
DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
FROM_HAS_DN(0.00)[]
X-Rspamd-Server: mail01.haj.ipfire.org
X-Rspamd-Queue-Id: 4jfzGf0WmJz5Y7
|
| Series |
kernel: Enable loongarch64 kernel config MMC_LOONGSON2
|
|
Commit Message
Vincent Li
3 Dec 2026, 2:34 a.m. UTC
CONFIG_MMC_LOONGSON2 drives the Loongson-2K series SD/SDIO/eMMC controller. It is required for onboard eMMC to be detected on Loongson 2K3000 based boards (e.g. OrangePi Nova) This mirrors the fix accepted upstream and in Debian, where the missing driver was reported for the 2K3000/3B6000M platforms: https://bugs.debian.org/1142793 Tested-by: Vincent Li <vincent.mc.li@gmail.com> Signed-off-by: Vincent Li <vincent.mc.li@gmail.com> --- config/kernel/config-loongarch64-generic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Vincent, Thanks for the patch. I have merged it into next. I added a few things around it: - The module needs an entry in the rootfile, which the patch didn't have. I added loongson2-mmc.ko.xz in a separate commit. - I enabled the other drivers that the 2K SoCs and the LS7A bridge need: clock, pin control, GPIO, I2C, RTC, thermal and APB DMA. I also enabled SPI with the Loongson SPI controllers, plus the generic device-tree drivers that boards usually need (OF serial, reset via GPIO, regulators, PWM, cpufreq-dt, DWC2 USB, on-board USB hubs, EFI RTC). The loongarch64 kernel configuration so far was only meant to compile quickly and has only been run in a VM, never on real hardware. Your testing on the OrangePi Nova is therefore very valuable. Could you try a build of next on your board and tell me: 1. Does the eMMC show up, and does it work for you now? 2. What does dmesg say? In particular, are there errors from the new drivers, or devices that still have no driver? 3. What does lspci -k show for devices without a driver? 4. Does the serial console work and does the board reboot and power off cleanly? 5. Is the board booted from a device tree or from ACPI? That tells me which of the new drivers are used. For future patches, please drop the Tested-by: line when it is from the same person as the Signed-off-by:, and please check the link to the Debian bug, because I could not open it. Both are small points. Thanks again for working on LoongArch support! Best, Michael
diff --git a/config/kernel/config-loongarch64-generic b/config/kernel/config-loongarch64-generic index 180dd57ef..d8659be09 100644 --- a/config/kernel/config-loongarch64-generic +++ b/config/kernel/config-loongarch64-generic @@ -743,7 +743,7 @@ CONFIG_MMC_SDHCI_PLTFM=m # CONFIG_MMC_SDHCI_OF_DWCMSHC is not set # CONFIG_MMC_SDHCI_CADENCE is not set # CONFIG_MMC_SDHCI_MILBEAUT is not set -# CONFIG_MMC_LOONGSON2 is not set +CONFIG_MMC_LOONGSON2=m # CONFIG_SCSI_UFS_DWC_TC_PLATFORM is not set #