[Sony Cross-Device General] munjeni:
Wifi on mainline kernel 4.15-r2:

[ 3.103967] mmc1: SDHCI controller on f98a4900.sdhci [f98a4900.sdhci] using ADMA
[ 3.106009] qcom_adsp_pil adsp-pil: adsp-pil supply px not found, using dummy regulator
[ 3.113660] remoteproc remoteproc0: adsp-pil is available
[ 3.125095] s1: unsupportable voltage range: 1287500-1050000uV
[ 3.126230] remoteproc remoteproc0: powering up adsp-pil
[ 3.131655] remoteproc remoteproc0: Booting fw image adsp.mdt, size 3632
[ 3.137727] mmc0: new HS200 MMC card at address 0001
[ 3.139174] mmcblk0: mmc0:0001 MAG2GC 14.6 GiB
[ 3.141416] mmcblk0boot0: mmc0:0001 MAG2GC partition 1 4.00 MiB
[ 3.141650] mmcblk0boot1: mmc0:0001 MAG2GC partition 2 4.00 MiB
[ 3.141868] mmcblk0rpmb: mmc0:0001 MAG2GC partition 3 4.00 MiB, chardev (247:0)
[ 3.142744] remoteproc remoteproc1: fb204000.wcnss is available
[ 3.143766] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 p21 p22 p23 p24 p25
[ 3.220518] remoteproc remoteproc1: powering up fb204000.wcnss
[COLOR="Red"][ 3.220581] remoteproc remoteproc1: Booting fw image wcnss.mdt, size 3424[/COLOR]
[ 3.376505] mmc1: new high speed SD card at address 1234
[ 3.377048] mmcblk1: mmc1:1234 SA01G 942 MiB
[ 3.382779] mmcblk1: p1
[ 3.392746] remoteproc remoteproc0: remote processor adsp-pil is now up
[COLOR="Red"][ 4.258471] remoteproc remoteproc1: remote processor fb204000.wcnss is now up[/COLOR]
[COLOR="Red"][ 4.364516] qcom_wcnss_ctrl remoteproc1:smd-edge.WCNSS_CTRL.-1.-1: WCNSS Version 1.5 1.2
[ 4.371606] wcn36xx: mac address: 66:44:33:22:11:10
[ 4.371696] wcn36xx fb204000.wcnss:smd-edge:wcnss:wlan: failed to parse qcom,smem-states property
[ 4.376327] wcn36xx: ERROR failed to get tx-enable state
[ 4.385372] wcn36xx: probe of fb204000.wcnss:smd-edge:wcnss:wlan failed with error -2[/COLOR]

This is device tree I have implemented:

pronto: wcnss@fb204000 {
compatible = "qcom,pronto-v2-pil";
reg = <0xfb204000 0x2000>, <0xfb202000 0x1000>, <0xfb21b000 0x3000>;
reg-names = "ccu", "dxe", "pmu";

interrupts-extended = <&intc 0 149 IRQ_TYPE_EDGE_RISING>,
<&wcnss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
<&wcnss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
<&wcnss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
<&wcnss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";

vddmx-supply = <&pm8841_s1>;
vddcx-supply = <&pm8841_s2>;
vddpx-supply = <&pm8941_s3>;

qcom,smem-states = <&wcnss_smp2p_out 0>;
qcom,smem-state-names = "stop";

memory-region = <&wcnss_region>;

pinctrl-names = "default";
pinctrl-0 = <&wcnss_pin_a>;

iris {
compatible = "qcom,wcn3680";

clocks = <&rpmcc RPM_SMD_CXO_A2>;
clock-names = "xo";

vddxo-supply = <&pm8941_l6>;
vddrfa-supply = <&pm8941_l11>;
vddpa-supply = <&pm8941_l19>;
vdddig-supply = <&pm8941_s3>;
};

smd-edge {
interrupts = <0 142 1>;

qcom,ipc = <&apcs 8 17>;
qcom,smd-edge = <6>;
qcom,remote-pid = <4>;

label = "pronto";

wcnss {
compatible = "qcom,wcnss";
qcom,smd-channels = "WCNSS_CTRL";

#address-cells = <1>;
#size-cells = <1>;

qcom,mmio = <&pronto>;

bt {
compatible = "qcom,wcnss-bt";

/* BD address 00:11:22:33:44:55 */
local-bd-address = [ 55 44 33 22 11 00 ];
};

wlan {
compatible = "qcom,wcnss-wlan";

/* WIFI address 00:11:22:33:44:66 */
local-mac-address = [ 66 44 33 22 11 10 ];

interrupts = <0 145 IRQ_TYPE_LEVEL_HIGH>,
<0 146 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "tx", "rx";

qcom,smem-state = <&apps_smsm 10>, <&apps_smsm 9>;
qcom,smem-state-names = "tx-enable", "tx-rings-empty";
};
};
};
};

This is where it fail https://searchcode.com/file/115655670/drivers/soc/qcom/smem_state.c line 115 , anybody have idea?