1
0
Fork 0

greybus: interface: fix broken UniPro flow control

A recent commit inadvertently disabled E2EFC on all interface
connections, due to a failure to clear the ES3 bootrom quirk flags
during mode switch.

Testing Done: Verified that the CPort flags are again set to 0x7 for
non-bootrom interface connections.

Fixes: 5b638080e94e ("svc: keep interfaces registered during
mode switch")
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
hifive-unleashed-5.1
Johan Hovold 2016-04-28 16:19:39 +02:00 committed by Greg Kroah-Hartman
parent 9e04fb7b16
commit 6ddbed5766
1 changed files with 3 additions and 0 deletions

View File

@ -226,6 +226,9 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf)
intf->quirks |= GB_INTERFACE_QUIRK_NO_CPORT_FEATURES;
intf->quirks |= GB_INTERFACE_QUIRK_NO_INTERFACE_VERSION;
break;
default:
intf->quirks &= ~GB_INTERFACE_QUIRK_NO_CPORT_FEATURES;
intf->quirks &= ~GB_INTERFACE_QUIRK_NO_INTERFACE_VERSION;
}
/* Clear the init status. */