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

Commit 9316baf1 authored by Protik Biswas's avatar Protik Biswas Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: bgrsb: send disable command to BG



Sends disable command to Blackghost during TWM
entry. Fixes interrupt issue on BG and crash
during TWM entry.

Change-Id: I47c399fb5c884b4e94bcd88dfc5fbc5cb61f6f72
Signed-off-by: default avatarProtik Biswas <protbisw@codeaurora.org>
parent 852e7611
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -582,9 +582,13 @@ static int split_bg_work(struct bgrsb_priv *dev, char *str)
		return ret;

	switch (val) {
	case BGRSB_IN_TWM:
		dev->is_in_twm = true;
	case BGRSB_POWER_DISABLE:
		queue_work(dev->bgrsb_wq, &dev->rsb_down_work);
		break;
	case BGRSB_OUT_TWM:
		dev->is_in_twm = false;
	case BGRSB_POWER_ENABLE:
		queue_work(dev->bgrsb_wq, &dev->rsb_up_work);
		break;
@@ -623,14 +627,6 @@ static int split_bg_work(struct bgrsb_priv *dev, char *str)
		dev->bttn_configs = (uint8_t)val;
		queue_work(dev->bgrsb_wq, &dev->bttn_configr_work);
		break;
	case BGRSB_IN_TWM:
		dev->is_in_twm = true;
	case BGRSB_GLINK_POWER_DISABLE:
		break;
	case BGRSB_OUT_TWM:
		dev->is_in_twm = false;
	case BGRSB_GLINK_POWER_ENABLE:
		break;
	}
	return 0;
}
+0 −2
Original line number Diff line number Diff line
@@ -51,8 +51,6 @@ struct event {
#define	BGRSB_POWER_ENABLE	1
#define	BGRSB_POWER_CALIBRATION	2
#define	BGRSB_BTTN_CONFIGURE	5
#define	BGRSB_GLINK_POWER_ENABLE	6
#define	BGRSB_GLINK_POWER_DISABLE	7
#define	BGRSB_IN_TWM	8
#define	BGRSB_OUT_TWM	9