]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5c4a8aa0c08b6a0d8d3074a8a58ee7ec947d7862
tree13247965893b8760aa38d5ed1dc78d24f35916fd
parent05c73a0272b53787402c4c0640fe0dc960e713e8
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