Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp442314ybt; Wed, 1 Jul 2020 02:12:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnq9mYu0XrnmtEYjaIU5p1TOhpiGKk9F1BDHaE1OqbIBg5mll0P2uJQOpIojaWYo2tKaTH X-Received: by 2002:a05:6402:2c2:: with SMTP id b2mr27618546edx.184.1593594734627; Wed, 01 Jul 2020 02:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593594734; cv=none; d=google.com; s=arc-20160816; b=k6xjEZWf1IkdxHy/+l/8qlX9a0GCSj4tMkmjS1mWRHu7cfzVg6GeCBWGGC50STGTaJ VIsjTCWfc9fnxHo3GNAmkZFnC0Zrwshi6OkvgbZ2PkvE35KqBkW8b4SITJGuzgMWkuLE Lm3/SFqPned+UiWSbiiKNnWuovFJt2TcjRuMv10tpj07LJ5GIp4bcKIbJGpJGm9t5Q+u 22Hy7chvWzbsvnUCDv95RBjBlxoIb2p+s3bUQIc/0pqS29qj6KhsD9rafATd38R+RZEN rM2Ryk3VyR/vlBvVEGc8Z5zOystiv4eA9kgP/Uqj+oUW518tLvk84quIEVNFaRFdEHeM IraA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from; bh=DXGn3gHl0xNV6NCA/rIyY1UJxMMNbig7IndC/zh1EBU=; b=NvonC+DSG4lcysT5n4yPrwU3CR1a/yY3aYPQpi6bRbOWVlA87bS2Tj2cbmb+7ARpjz nWP2+PBvXwrAuM3mLDMiJvQm27pwTBO6kA9DWy7ndYzGgyFgND68R/XhdtrfqFlHyffI sQMpCqfKPBf9KIRhGoHQzv/DBFZFI2ylw0WTbyqE3TQZRJoZX4hc29aHrMzIoRmDoKwO CVDmshTDQ2q8dKNdHOk40ULh8BRE+R2PaCuvgbclzcBZrZX/Lz8A8fGL46qD/iLnV2JL x/l9rxr2d30bdbPOpWBIaXuryovrxDL07CRUrwt1O4ZppAl1hITuBo9Cld6RTFGjVIRd nA3g== 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 cy13si3527285edb.388.2020.07.01.02.11.51; Wed, 01 Jul 2020 02:12:14 -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 S1729547AbgGAJKp (ORCPT + 99 others); Wed, 1 Jul 2020 05:10:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbgGAJKp (ORCPT ); Wed, 1 Jul 2020 05:10:45 -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 6BBCDC061755 for ; Wed, 1 Jul 2020 02:10:45 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id ADA832A0CAB From: Enric Balletbo i Serra Subject: Re: [PATCH] platform/chrome: cros_ec_typec: Add a dependency on USB_ROLE_SWITCH 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 References: <20200629103223.1284442-1-enric.balletbo@collabora.com> Message-ID: Date: Wed, 1 Jul 2020 11:10:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200629103223.1284442-1-enric.balletbo@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prashant, Thank you for you ack On 29/6/20 12:32, Enric Balletbo i Serra wrote: > 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 Applied for 5.9 > --- > > 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 >