Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp851821lqj; Mon, 3 Jun 2024 02:48:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULBhd8N6hQNHc83FvPScnCVuMA1cnYrI3sk4NLWyn5zhETBdqKRfRNBoEw1s08J/l0VTR2g2PD6aH3aPuZ/kzTrYSOGWgC2GX/VNvDVg== X-Google-Smtp-Source: AGHT+IHamgXD/7Um0skqQovtX90U9vOK6fCC2NeQkhS51kl9HgqpI8vPw0AvJdE+cD9BbS3q1FPA X-Received: by 2002:a05:6214:540e:b0:6a8:dcc7:9088 with SMTP id 6a1803df08f44-6aecd4c3085mr124830846d6.26.1717408121622; Mon, 03 Jun 2024 02:48:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717408121; cv=pass; d=google.com; s=arc-20160816; b=0388z+bqpAAFj+U8Q/5amTmI3ffwsAnrrFC25vl3HlUWOa/fNY4NYiFpdNqLFMhfmo XNk9aDJhSPTJMSrnRftAVxYxj5lQ3SkFlptlYhCOmPvKbR43knlqunoQLtobtwo1n8Ng mcQDDEoBcd73nVMRmEhtJ9ZDCCmj96XKPHAZMl0J//vYE0Vsp0OlFs41iaHLsIyJtplC /7bDDnSZkITbhf5QIYGT6KtDJFvgPurR+0f2HOuQdFUgTHufSfQYSAzDs4Fe22dYpVIB 9gX+I+36GHsbdTtwAzENhi2CH6mkQOpA2atkC10WCpwRnjCg7e4y/MXukvwpMeI+eUJj C37Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=UNeEzqEwDLFqI3mQx5TerVCCfIrf8PlxwIfB2OPQ4fg=; fh=o4/XiJTzzAAB6IFYJWIPOTzcSTO6zQFIqFtisS9DMf0=; b=ZB3svxMn5BuN0wNx9ubMG3XTjDdp1sBLCfWZdQvlJLDs12eoBlMV1NMNTIa9vvFce4 18GbRRYUoj8H+cohmIxqJbCyttirrR6eom1ViPd0j0A/KjX5GLDABLokml0cKyag0gUh aQEQG9K3nRNrgV6WFHZAtR4q0AO4BLcmy5rh6xn1mXt85UDJDe8QX7LqsloKC1CGLZzS q1IJ4zWvCOAGeV1UAdVxMIn7XWvypq+O05OOHBfMvsNLHGexlHZFUx/Qq90nwK2wqtIh aLPoEydkAxJQaqWsq4Em7vFupaAFMq6JPJ/MwyLJrllArpus4xPLC7aHKJ37aWQ7SJQv NcQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YLKb/FZg"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-198928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b401fc3si90880336d6.288.2024.06.03.02.48.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:48:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YLKb/FZg"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-198928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AD0611C2263E for ; Mon, 3 Jun 2024 09:48:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F49B81730; Mon, 3 Jun 2024 09:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="YLKb/FZg" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 795F642ABE for ; Mon, 3 Jun 2024 09:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407848; cv=none; b=grflrkv9XAATYE1DXMvXrTwfohOlvXfgy901GvPhxLIr85Gyls5PJgET+1DVxGffkXVxMVjSDj7Ekix2UTG+s4/z2rAmivvZFLzCfsCTvTZY+Vb9n3jch6X/nTKopM55huZ8WLFcloVfs+5sZypuBkv9L/6qgOOazaUA8Fduq9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407848; c=relaxed/simple; bh=nM8uSllZ7RbY1J691S8kJGCcalGOytS3CRH3nRriecg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=NEcbDDdm3rGiRuFc9lgTUJGDqzA2D8TTACxsFakL1K/vpO99vMY1Y+nvde4jI+EV2CkbsgvBfSVN2fYAzcv8b85hNBbaaNlFa2XGYSgvNR468trt+hj6AxEEQeJhOL1uteGAFyNi23aZZKF1q5CJzBnOxOAee6cuWP6bgvfLTpg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=YLKb/FZg; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717407845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UNeEzqEwDLFqI3mQx5TerVCCfIrf8PlxwIfB2OPQ4fg=; b=YLKb/FZgBuLe7k0JNOs4QpjOTAxixUuSvGe5vdyEqZTecaOalJxDDWUq/apW3XPIeUz+Tu WI/HaziGY4ojBxaL83oyq5E6zRerg+eaOYpEPZnMxd1jO5cGrEwh5ArXtPFc6X1L/AfT0y xpGOq1/GzLrMbZi2osIjRb4YjfCAYe0= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-265-KGKsBgvZOgiAdEwT9p4teA-1; Mon, 03 Jun 2024 05:44:04 -0400 X-MC-Unique: KGKsBgvZOgiAdEwT9p4teA-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a6861bb1c0bso149719866b.3 for ; Mon, 03 Jun 2024 02:44:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717407843; x=1718012643; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UNeEzqEwDLFqI3mQx5TerVCCfIrf8PlxwIfB2OPQ4fg=; b=WkQE9BRIwNdQD7TamxdYlbB1sjDUSOE7mM5TG70LXdPbcEDvqx44RatxKN4bB5G+qo +BL/xJlXfzAUmuPaup0Nlyx0Uwcw5M6OjDV542BBHZIpN8rdS9IZTOPQR4vVvzs0xDSn CSrQBrKOD3EQ0NqYxulhAEeUI8sHFfnJMZoDqaPwmpq1pw1wV1CCfnDJDUd+D9CNCuGT /bSZHSJAg6ONJYL7l0rSHwnljes9QDLxkkjbo0lDwtcsDq/RjHSI0C6PMI572ovDeY6E rvq/+ujiXZvQKkINQYejYKgoPOXCxKGjjhCW2gVE2w2AxlLUP52M1BDdSdKXQcb9waPn J5aA== X-Forwarded-Encrypted: i=1; AJvYcCVh0hYV4gjzAOPgvXZDKnAaL0m8+NRFa8IabMT5YaHnohGmz+1ipA1+B+wMd9vEwELnsTbd6JkrYeGNMYILWVxRW6dGQMGNcdgSC+x8 X-Gm-Message-State: AOJu0Yw5V66/PV+kgx8f8cvh+Cwh3UHClot9vMmitkUuTCJ2B9Sqvubq 4HpoLqmuzIL7unPWhchXUAtn3+x39EPDtetMshzYa5FGMkVJ56mutUxnTp68VTwRcEvmjn0s3Il FM+inQBHZjHPWFJd3N0hlMYxr7olwY1VMxbZjVsUlEhjR5pdUUJGHPSkf/YzUrA== X-Received: by 2002:a17:906:1b5b:b0:a68:c672:9ea9 with SMTP id a640c23a62f3a-a68c672a238mr327571166b.28.1717407842985; Mon, 03 Jun 2024 02:44:02 -0700 (PDT) X-Received: by 2002:a17:906:1b5b:b0:a68:c672:9ea9 with SMTP id a640c23a62f3a-a68c672a238mr327570166b.28.1717407842605; Mon, 03 Jun 2024 02:44:02 -0700 (PDT) Received: from [10.40.98.157] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68cf23c63esm265077366b.5.2024.06.03.02.44.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jun 2024 02:44:02 -0700 (PDT) Message-ID: <577cc35e-00c6-4893-b917-d3f44bf19191@redhat.com> Date: Mon, 3 Jun 2024 11:44:01 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] platform/x86: yt2-1380: add CONFIG_EXTCON dependency To: Arnd Bergmann , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Cc: Arnd Bergmann , Armin Wolf , SungHwan Jung , Henning Schild , Ai Chao , Robert Joslyn , Heiner Kallweit , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240528115940.3169455-1-arnd@kernel.org> Content-Language: en-US From: Hans de Goede In-Reply-To: <20240528115940.3169455-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 5/28/24 1:59 PM, Arnd Bergmann wrote: > From: Arnd Bergmann > > This driver uses the extcon subsystem and fails to build > when it cannot call into that subsystem: > > x86_64-linux-ld: vmlinux.o: in function `yt2_1380_fc_worker': > lenovo-yoga-tab2-pro-1380-fastcharger.c:(.text+0xa9d819): undefined reference to `extcon_get_state' > x86_64-linux-ld: lenovo-yoga-tab2-pro-1380-fastcharger.c:(.text+0xa9d853): undefined reference to `extcon_get_state' > x86_64-linux-ld: vmlinux.o: in function `yt2_1380_fc_serdev_probe': > lenovo-yoga-tab2-pro-1380-fastcharger.c:(.text+0xa9da22): undefined reference to `extcon_get_extcon_dev' > x86_64-linux-ld: lenovo-yoga-tab2-pro-1380-fastcharger.c:(.text+0xa9dc0c): undefined reference to `devm_extcon_register_notifier_all' > > Add a Kconfig dependency to make it it always builds correctly. > > Fixes: b2ed33e8d486 ("platform/x86: Add lenovo-yoga-tab2-pro-1380-fastcharger driver") > Signed-off-by: Arnd Bergmann Thank you for your patch, I've applied this patch to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. I will include this patch in my next fixes pull-req to Linus for the current kernel development cycle. Regards, Hans > --- > drivers/platform/x86/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig > index 809888e4c1e7..9f850e4617bf 100644 > --- a/drivers/platform/x86/Kconfig > +++ b/drivers/platform/x86/Kconfig > @@ -136,6 +136,7 @@ config YOGABOOK > config YT2_1380 > tristate "Lenovo Yoga Tablet 2 1380 fast charge driver" > depends on SERIAL_DEV_BUS > + depends on EXTCON > depends on ACPI > help > Say Y here to enable support for the custom fast charging protocol