Commit 792db396 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

greybus: interface: remove unused interface-version quirk



The interface-version request was just removed so remove the now unused
interface-version quirk.

Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent ae0f6454
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -217,18 +217,15 @@ static int gb_interface_read_and_clear_init_status(struct gb_interface *intf)

	/*
	 * Check if the interface is executing the quirky ES3 bootrom that
	 * requires E2EFC, CSD and CSV to be disabled and that does not
	 * support the interface-version request.
	 * requires E2EFC, CSD and CSV to be disabled.
	 */
	switch (init_status) {
	case GB_INIT_BOOTROM_UNIPRO_BOOT_STARTED:
	case GB_INIT_BOOTROM_FALLBACK_UNIPRO_BOOT_STARTED:
		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. */
+2 −3
Original line number Diff line number Diff line
@@ -11,9 +11,8 @@
#define __INTERFACE_H

#define GB_INTERFACE_QUIRK_NO_CPORT_FEATURES		BIT(0)
#define GB_INTERFACE_QUIRK_NO_INTERFACE_VERSION		BIT(1)
#define GB_INTERFACE_QUIRK_NO_INIT_STATUS		BIT(2)
#define GB_INTERFACE_QUIRK_NO_ARA_IDS			BIT(3)
#define GB_INTERFACE_QUIRK_NO_INIT_STATUS		BIT(1)
#define GB_INTERFACE_QUIRK_NO_ARA_IDS			BIT(2)

struct gb_interface {
	struct device dev;