Skip to content

Commit

Permalink
drivers/misc/ti-st: chip_disable on timeout
Browse files Browse the repository at this point in the history
If the communication with the WiLink breaks down for whatever reasons & the
ti-st driver is unable to un-install the line-discipline during clean-up in
st_kim_stop, the GPIO should be held low (BT_EN=0) & the platform's chip
disable hook shall also be called.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Pavan Savoy authored and Greg Kroah-Hartman committed Aug 16, 2012
1 parent 27712b3 commit b64365a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/ti-st/st_kim.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ long st_kim_stop(void *kim_data)
msecs_to_jiffies(LDISC_TIME));
if (!err) { /* timeout */
pr_err(" timed out waiting for ldisc to be un-installed");
return -ETIMEDOUT;
err = -ETIMEDOUT;
}

/* platform specific disable */
Expand Down

0 comments on commit b64365a

Please sign in to comment.