Notice CMD52 timeout not letting the SD bus to be idle

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Please provide the version of the system here:

`5.15 kernel

Please describe your issue below:

Notice CMD52 timeout not letting the SD bus to be idle

Post a console log of your issue below:


[ 3790.594912] meson-gx-mmc ffe05000.sd: 52 [0xa00], TIMEOUT[0x2800]


Hi @yash1234

Do you have issues due to this?

Regards,
Nick

Yes.. this doesn’t let bus to be idle.
Any option to disable the CMD52 timeout?

Hi @yash1234,

Which image you used? Could you check the latest release 1.7.4? And which SD card you used?

Regards,
Nick

root@Khadas:/home/khadas/non_debug# uname -a
Linux Khadas 5.15.137 #1.7.3 SMP PREEMPT Fri Mar 28 00:53:57 IST 2025 aarch64 aarch64 aarch64 GNU/Linux

The image is on EMMC and My wifi chip is connected over SD card slot.

Hi @yash1234,

Could you try this patch?

diff --git a/arch/arm64/boot/dts/amlogic/kvim3.dts b/arch/arm64/boot/dts/amlogic/kvim3.dts
index 41714c38e..1f0830c9f 100644
--- a/arch/arm64/boot/dts/amlogic/kvim3.dts
+++ b/arch/arm64/boot/dts/amlogic/kvim3.dts
@@ -1484,6 +1484,9 @@
        //vmmc-supply = <&vddao3v3_reg>;
        //vqmmc-supply = <&vddio_c>;
        status = "okay";
+       no-mmc;
+       no-sd;
+       card_type = <3>;
        pinctrl-0 = <&sdcard_pins>;
        pinctrl-1 = <&sdcard_clk_gate_pins>;
        pinctrl-2 = <&sd_1bit_pins>;

Regards,
Nick

Thanks Nick.
Adding the patch,would disable the SDIO card detection. Below is the snap of dts file used

&sd_emmc_b {
        status = "okay";
        pinctrl-0 = <&sdcard_pins>;
       pinctrl-1 = <&sdcard_clk_gate_pins>;
       pinctrl-2 = <&sd_1bit_pins>;
        pinctrl-names = "sd_default",
                                "clk-gate",
                               "sd_1bit_pins";
                                bus-width = <4>;
                                cap-sd-highspeed;
                                max-frequency = <40000000>;
                                  disable-wp;
                                dat1-gpios = <&gpio GPIOC_1 GPIO_ACTIVE_HIGH>;
                                cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_HIGH>;
                                clk-always-on;
                                 vmmc-supply = <&vddao3v3_reg>;
                                 vqmmc-supply = <&vcc1v8_reg>;
                                wakeup-source;
};

Hi @yash1234,

Not sure about this, we can’t check on our side, could you share us which device you used?

Regards,
Nick