* Re: [PATCH] kernel: Enable loongarch64 kernel config MMC_LOONGSON2
2026-12-03 2:34 [PATCH] kernel: Enable loongarch64 kernel config MMC_LOONGSON2 Vincent Li
@ 2026-12-03 17:03 ` Michael Tremer
0 siblings, 0 replies; 2+ messages in thread
From: Michael Tremer @ 2026-12-03 17:03 UTC (permalink / raw)
To: development; +Cc: Vincent Li
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
^ permalink raw reply [flat|nested] 2+ messages in thread