Skip to content

Commit

Permalink
firmware_loader: Add firmware paths used on Android
Browse files Browse the repository at this point in the history
On Android, atleast on QCOM platforms, firmware are
located in these paths. Add them to the default path
list so they can be loaded directly, rather than
falling back to uevent (unless blocked by selinux).
  • Loading branch information
adithya2306 authored and retrozenith committed Nov 13, 2024
1 parent 7e89678 commit 5a40027
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/base/firmware_loader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ static int fw_decompress_xz(struct device *dev, struct fw_priv *fw_priv,
static char fw_path_para[256];
static const char * const fw_path[] = {
fw_path_para,
"/vendor/firmware",
"/vendor/firmware_mnt/image",
"/firmware/image",
"/lib/firmware/updates/" UTS_RELEASE,
"/lib/firmware/updates",
"/lib/firmware/" UTS_RELEASE,
Expand Down

0 comments on commit 5a40027

Please sign in to comment.