Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b64365a5 authored by Pavan Savoy's avatar Pavan Savoy Committed by Greg Kroah-Hartman
Browse files

drivers/misc/ti-st: chip_disable on timeout



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: default avatarPavan Savoy <pavan_savoy@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 27712b39
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -524,7 +524,7 @@ long st_kim_stop(void *kim_data)
			msecs_to_jiffies(LDISC_TIME));
			msecs_to_jiffies(LDISC_TIME));
	if (!err) {		/* timeout */
	if (!err) {		/* timeout */
		pr_err(" timed out waiting for ldisc to be un-installed");
		pr_err(" timed out waiting for ldisc to be un-installed");
		return -ETIMEDOUT;
		err = -ETIMEDOUT;
	}
	}


	/* platform specific disable */
	/* platform specific disable */