net: ipa: optionally define firmware name via DT
authorAlex Elder <elder@linaro.org>
Fri, 16 Apr 2021 13:08:50 +0000 (08:08 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 22:38:32 +0000 (15:38 -0700)
commit9ce062ba6a8d0a22e873e6b8cf068bf278adb5e7
tree13247965893b8760aa38d5ed1dc78d24f35916fd
parentd8604b209e9b3762280b8321162f0f64219d51c9
net: ipa: optionally define firmware name via DT

IPA initialization includes loading some firmware.  This step is
done either by the modem or by the AP under Trust Zone.  If the
AP loads firmware, the name of the firmware file is currently
hard-coded ("ipa_fws.mdt").

Add the ability to specify the relative path of the firmware file to
use in a property in the Device Tree IPA node.  If the property is
not found (or if any other error occurs attempting to get it), fall
back to using a default relative path.

Use the "old" fixed name as the default.  Rename the symbol that
represents this default to emphasize its purpose.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_main.c