diff options
author | Pavan Savoy <pavan_savoy@ti.com> | 2011-02-04 02:23:13 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-04 12:41:21 -0800 |
commit | ef04d121f030329aae0c2d3ec22beea0c5cbcfd3 (patch) | |
tree | 891fe4bd9a903b553d058ad08d787fbb07d64565 /include/linux/ti_wilink_st.h | |
parent | 6710fcff66ef0330cdc458557271ee86026745d0 (diff) | |
download | linux-stable-ef04d121f030329aae0c2d3ec22beea0c5cbcfd3.tar.gz linux-stable-ef04d121f030329aae0c2d3ec22beea0c5cbcfd3.tar.bz2 linux-stable-ef04d121f030329aae0c2d3ec22beea0c5cbcfd3.zip |
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>
Diffstat (limited to 'include/linux/ti_wilink_st.h')
-rw-r--r-- | include/linux/ti_wilink_st.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ti_wilink_st.h b/include/linux/ti_wilink_st.h index 010cda7287a0..7885a779c588 100644 --- a/include/linux/ti_wilink_st.h +++ b/include/linux/ti_wilink_st.h @@ -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)) |