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

Commit 4f83e9a1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "bt-power: Check chip type first before BT resetting"

parents 0f975b1d ad22df30
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -676,8 +676,8 @@ static int bt_power_probe(struct platform_device *pdev)
	btpdev = pdev;

	if (of_id) {
		if ((get_bt_reset_gpio_value() == BT_RESET_GPIO_HIGH_VAL)
			&& (strcmp(of_id->compatible, "qca,qca6174") == 0)) {
		if ((strcmp(of_id->compatible, "qca,qca6174") == 0) &&
			(get_bt_reset_gpio_value() == BT_RESET_GPIO_HIGH_VAL)) {
			bluetooth_toggle_radio(pdev->dev.platform_data, 0);
			bluetooth_toggle_radio(pdev->dev.platform_data, 1);
		}