Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da179ff9 authored by Sarada Prasanna Garnayak's avatar Sarada Prasanna Garnayak Committed by Gerrit - the friendly Code Review server
Browse files

cnss: register callback for the cnss bus specific export symbol



For devices with no SDIO connected, it is useless to compile/load
the cnss SDIO platform driver, same for the cnss PCIe platform driver
compile/load for the device with non PCIe interfaced wlan module.
To resolve the above issue compile the cnss SDIO/PCIe platform driver
with cnss bus specific Kconfig flag and register callback for the bus
specific API for the cnss common export symbol.

Instead of directly calling the bus specific APIs, register callback for
the bus specific API and encapsulate the callbacks in device platform_data.
Direct calling of bus specific APIs for the cnss common export symbol
is forcing to compile & load both SDIO and PCIe platform driver even the
wlan module is not interfaced with that bus.

This also helps to reduce the attack surface of kernel.

CRs-Fixed: 1104069
Change-Id: I2d95d083a968d5bd47d4c24438183d22e2ae0c1b
Signed-off-by: default avatarSarada Prasanna Garnayak <sgarna@codeaurora.org>
parent 02f0c5a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment