Skip to content

Commit 4dcc2ab

Browse files
Enric Balletbo i Serragregkh
authored andcommitted
drivers/misc/ti-st: Load firmware from ti-connectivity directory.
Looks like the default location for TI firmware is inside the ti-connectivity directory, to be coherent with other firmware request used by TI drivers, load the TIInit firmware from this directory instead of /lib/firmware directly. Signed-off-by: Enric Balletbo i Serra <eballetbo@iseebcn.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f222447 commit 4dcc2ab

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎drivers/misc/ti-st/st_kim.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ static long read_local_version(struct kim_data_s *kim_gdata, char *bts_scr_name)
244244
if (version & 0x8000)
245245
maj_ver |= 0x0008;
246246

247-
sprintf(bts_scr_name, "TIInit_%d.%d.%d.bts", chip, maj_ver, min_ver);
247+
sprintf(bts_scr_name, "ti-connectivity/TIInit_%d.%d.%d.bts",
248+
chip, maj_ver, min_ver);
248249

249250
/* to be accessed later via sysfs entry */
250251
kim_gdata->version.full = version;
@@ -287,7 +288,7 @@ static long download_firmware(struct kim_data_s *kim_gdata)
287288
long len = 0;
288289
unsigned char *ptr = NULL;
289290
unsigned char *action_ptr = NULL;
290-
unsigned char bts_scr_name[30] = { 0 }; /* 30 char long bts scr name? */
291+
unsigned char bts_scr_name[40] = { 0 }; /* 40 char long bts scr name? */
291292
int wr_room_space;
292293
int cmd_size;
293294
unsigned long timeout;

0 commit comments

Comments
 (0)