08d917032c8b897a04d047074a6e11b68fdb678d

On some platforms, those with all of icnss, cnss and the corresponding wlan drivers being present, but only one dt node for wlan device, we only need one platform driver which is compatible with the dt node. To achieve this, return '-ENODEV' on icnss driver loading if there is no matching dt node, just as cnss2 does. This change can also fix the issue as below: Background: icnss2 returns '-EAGAIN' when wlan driver register request comes too early, to trigger the retry mechanism in wlan driver. Considering a device with drivers and dt node as mentioned upon, and a wlan driver is trying to register itself in icnss2 driver. But it will definitely fail because icnss2 has not been probed (due to no compatible dt node) and retry for up to 50 times with a 100ms interval due to the return value '-EAGAIN'. This delays android bootup. With this fix applied, wlan driver loading will fail before registering itself to platform driver because it depends on icnss2 that failed to load. Change-Id: I8dfe8821c0c8ec45e7e55913de26060a32ffce82 CRs-Fixed: 3867504
설명
No description provided
Languages
C
98.7%
C++
0.9%
Makefile
0.3%
Starlark
0.1%