AnsweredAssumed Answered

linux 4.1.15-2.1.0-ga wifi module ap6335 suspend problem

Question asked by mrleo on Jul 18, 2017
Latest reply on Jul 18, 2017 by mrleo

Hi,all

     ap6335 in kernel linux 4.1.15-2.1.0-ga work ok  on my imx6qp board!  wifi module is built in kernel, but system sleep will not ok.

   I test system sleep mode,when I enter below method:

~# echo standby > /sys/power/state
PM: Syncing filesystems ... done.
Freezing user space processes ... (elapsed 0.001 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Suspending console(s) (use no_console_suspend to debug)
dpm_run_callback(): pm_generic_suspend+0x0/0x30 returns -22
PM: Device mmc2:0001:2 failed to suspend: error -22
PM: Some devices failed to suspend, or early wake event detected
PM: resume of devices complete after 0.078 msecs
PM: resume devices took 0.000 seconds
Restarting tasks ... done.

 

dts configure:

regulators {
        wlreg_on: fixedregulator@100 {
            compatible = "regulator-fixed";
            regulator-min-microvolt = <5000000>;
            regulator-max-microvolt = <5000000>;
            regulator-name = "wlreg_on";
            gpio = <&gpio7 0 0>;
            startup-delay-us = <100>;
            enable-active-high;
        };
        
    };

 

    bcmdhd_wlan_0: bcmdhd_wlan@0 {
        compatible = "android,bcmdhd_wlan";
        //pinctrl-names = "default";
        //pinctrl-0 =<&pinctrl_wifi_ctrl>;
        gpios = <&gpio7 1 0>;
        wlreg_on-supply = <&wlreg_on>;
    };

 

};

 

pinctrl_wifi: wifigrp {
            fsl,pins = <
                MX6QDL_PAD_SD3_CMD__SD3_CMD        0x17071
                MX6QDL_PAD_SD3_CLK__SD3_CLK        0x10071
                MX6QDL_PAD_SD3_DAT0__SD3_DATA0        0x17071
                MX6QDL_PAD_SD3_DAT1__SD3_DATA1        0x17071
                MX6QDL_PAD_SD3_DAT2__SD3_DATA2        0x17071
                MX6QDL_PAD_SD3_DAT3__SD3_DATA3        0x17071
                MX6QDL_PAD_SD3_DAT5__GPIO7_IO00        0x13069  // WL_REG_ON
                MX6QDL_PAD_SD3_DAT4__GPIO7_IO01        0x80000000    // WL_HOST_WAKE
            >;
        };

 

&usdhc3 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_wifi>;
    bus-width = <4>;
    no-1-8-v;
    non-removable;
    cd-post;
    pm-ignore-notify;
    wifi-host;
    status = "okay";
};

 

If I  remove the wifi module, system sleep  is ok.

 

Anyone can help me to solve this problem?

Original Attachment has been moved to: kernel.log.zip

Outcomes