Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3048223ybt; Mon, 29 Jun 2020 13:54:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAjEjMCGzM0XAR5Rfmn2mQGPCXZkXIRgD7F1z5PP53pgMqroOytXyoYfCL35Ju8CLfI0/2 X-Received: by 2002:a05:6402:1c86:: with SMTP id cy6mr6596144edb.30.1593464071724; Mon, 29 Jun 2020 13:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593464071; cv=none; d=google.com; s=arc-20160816; b=KYqgLz/pk1j3Qqr9Qn4AN9cv3+yk9uycTHQ7IG8300195an1gekwQy9YKvofADYzpN XKh4td+TGndOJ8adqMx5nTWWnBzjbPbzHFAcU/4KqzHxLSWFwAZwfvJ5gS5gSEOQLIOW Bi3V8Y+V+GMXj4jVKqIFJ7IkdiD4ldlYpWAdm9g4sAsHqi4QxJ/QmzLM9KhqXqq2e1Yz AdHCl8vRACp4I8sPy41N32cYQWkImq3Er5StvE8WKg+4DpNPxUfN5MxXBdjCF66ZZcWN uT25xzr1wXSFRjNd/W/jaTgJbsEWpP2kig6Z2dAsOLq8MZ3F419PsAXXgQwQsGYUVsWx 2Ctw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=uxA/um5+T9qGuGrD0SdFCcw8QvwELRPCUaiP+m4VHoo=; b=qW6LsRilLf2X2iSrRJcukOk0Uu9B5xySHaygd+kTusPn0hOrgeBF08B2Tmzs/i9e8i TbZKh3PWX4SzuOK3ObpPmGQDbDH8j9ApI9AnCfJ0vKxg+tzKmyBEoEU1DUKCS+g19QLq hgEMDV/lsWuvXGl0bzR4wLS/AqqrstKtycC3wnjA+z3FqK42zlaTWzAHg0r1ixr5dze3 jOFRD0gcsU4GLZN+YkZRPpSXNlIYyFEsiYKD04ZEegtNDL3Wdly0HOACxTFx1Sk8wliO 3/jmbv2AHpee1tDNOyAa9Al7U2+w6z+KBQrXe3nE2bL7Hv4oy3Gs6Gy/wgblvXdN2CY0 +MtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh6si422529ejb.325.2020.06.29.13.54.08; Mon, 29 Jun 2020 13:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388259AbgF2UvI (ORCPT + 99 others); Mon, 29 Jun 2020 16:51:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731415AbgF2TNb (ORCPT ); Mon, 29 Jun 2020 15:13:31 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EEE8C00861C for ; Mon, 29 Jun 2020 03:32:31 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 3B26E2A0EAA From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , groeck@chromium.org, bleung@chromium.org, dtor@chromium.org, gwendal@chromium.org, pmalani@chromium.org, kernel test robot , Heikki Krogerus Subject: [PATCH] platform/chrome: cros_ec_typec: Add a dependency on USB_ROLE_SWITCH Date: Mon, 29 Jun 2020 12:32:23 +0200 Message-Id: <20200629103223.1284442-1-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As reported by the kernel test robot the cros_ec_typec driver fails to build if the USB_ROLE_SWITCH is not selected, to fix that, add a dependency on that symbol. This fixes the following build error: drivers/platform/chrome/cros_ec_typec.c:133: undefined reference to `usb_role_switch_put' ld: drivers/platform/chrome/cros_ec_typec.o: in function `cros_typec_get_switch_handles': drivers/platform/chrome/cros_ec_typec.c:108: undefined reference to `fwnode_usb_role_switch_get' ld: drivers/platform/chrome/cros_ec_typec.c:117: undefined reference to `usb_role_switch_put' Fixes: 7e7def15fa4b ("platform/chrome: cros_ec_typec: Add USB mux control") Reported-by: kernel test robot Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/chrome/Kconfig b/drivers/platform/chrome/Kconfig index cf072153bdc5..a056031dee81 100644 --- a/drivers/platform/chrome/Kconfig +++ b/drivers/platform/chrome/Kconfig @@ -218,6 +218,7 @@ config CROS_EC_TYPEC tristate "ChromeOS EC Type-C Connector Control" depends on MFD_CROS_EC_DEV && TYPEC depends on CROS_USBPD_NOTIFY + depends on USB_ROLE_SWITCH default MFD_CROS_EC_DEV help If you say Y here, you get support for accessing Type C connector -- 2.27.0