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

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

Merge "NFC: add hw reset before testing hw presence."

parents 91b5eef2 f5bd788a
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1266,8 +1266,12 @@ static int qca199x_probe(struct i2c_client *client,
		goto err_free_dev;
	}

	/* Put device in ULPM */
	gpio_set_value(platform_data->dis_gpio, 0);
	/* Guarantee that the NFCC starts in a clean state. */
	gpio_set_value(platform_data->dis_gpio, 1);/* HPD */
	usleep(200);
	gpio_set_value(platform_data->dis_gpio, 0);/* ULPM */
	usleep(200);

	r = nfcc_hw_check(client, platform_data->reg);
	if (r) {
		/* We don't think there is hardware but just in case HPD */