misc/bt-host: Clear the ATN flag on open
PATCH 1/1 misc/bt-host: Clear the ATN flag on open
Not doing so might cause a subsequent read to return a stale message.
Signed-off-by Cyril Bur <[email protected]>
--- drivers/misc/bt-host.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/misc/bt-host.c +2 -0
@@ -120,6 +120,8 @@ static int bt_host_open(struct inode *inode, struct file *file) {struct bt_host *bt_host =file_bt_host (file); +/* Avoid the first read reading possibly stale data */ +clr_h2b_atn (bt_host);clr_b_busy (bt_host);return 0 ;
Signature · 1 line
2.6.2