Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Enric Balletbo i Serra and committed by
Greg Kroah-Hartman
4dcc2ab3 f222447e

+3 -2
+3 -2
drivers/misc/ti-st/st_kim.c
··· 244 244 if (version & 0x8000) 245 245 maj_ver |= 0x0008; 246 246 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); 248 249 249 250 /* to be accessed later via sysfs entry */ 250 251 kim_gdata->version.full = version; ··· 288 287 long len = 0; 289 288 unsigned char *ptr = NULL; 290 289 unsigned char *action_ptr = NULL; 291 - unsigned char bts_scr_name[30] = { 0 }; /* 30 char long bts scr name? */ 290 + unsigned char bts_scr_name[40] = { 0 }; /* 40 char long bts scr name? */ 292 291 int wr_room_space; 293 292 int cmd_size; 294 293 unsigned long timeout;