drivers:misc: ti-st: firmware download optimization
To fasten the process of firmware download, the chip allows disabling of the command complete event generation from host. In these cases, only few very essential commands would have the command complete events and hence the wait associated with them. So now the driver would wait for a command complete event, only when it comes across a wait event during firmware parsing. This would also mean we need to skip not just the change baud rate command but also the wait for it. Signed-off-by: Pavan Savoy <pavan_savoy@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
6710fcff66
commit
ef04d121f0
@@ -166,6 +166,11 @@ struct st_data_s {
|
||||
void *kim_data;
|
||||
};
|
||||
|
||||
/*
|
||||
* wrapper around tty->ops->write_room to check
|
||||
* availability during firmware download
|
||||
*/
|
||||
int st_get_uart_wr_room(struct st_data_s *st_gdata);
|
||||
/**
|
||||
* st_int_write -
|
||||
* point this to tty->driver->write or tty->ops->write
|
||||
@@ -208,6 +213,7 @@ void gps_chrdrv_stub_init(void);
|
||||
*/
|
||||
#define LDISC_TIME 1000
|
||||
#define CMD_RESP_TIME 800
|
||||
#define CMD_WR_TIME 5000
|
||||
#define MAKEWORD(a, b) ((unsigned short)(((unsigned char)(a)) \
|
||||
| ((unsigned short)((unsigned char)(b))) << 8))
|
||||
|
||||
|
Reference in New Issue
Block a user