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

Commit 6adcf441 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

greybus: es2: reset cports at disable



Make sure to reset CPorts at disable rather than enable as per
specification.

Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 3cbe52c2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -602,7 +602,7 @@ static void es2_cport_release(struct gb_host_device *hd, u16 cport_id)
	ida_simple_remove(&hd->cport_id_map, cport_id);
}

static int cport_enable(struct gb_host_device *hd, u16 cport_id)
static int cport_disable(struct gb_host_device *hd, u16 cport_id)
{
	int retval;

@@ -794,7 +794,7 @@ static struct gb_hd_driver es2_driver = {
	.message_cancel			= message_cancel,
	.cport_allocate			= es2_cport_allocate,
	.cport_release			= es2_cport_release,
	.cport_enable			= cport_enable,
	.cport_disable			= cport_disable,
	.latency_tag_enable		= latency_tag_enable,
	.latency_tag_disable		= latency_tag_disable,
	.output				= output,