Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1169555rda; Mon, 23 Oct 2023 05:02:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5DcgT+LqqigHTxofGkfk5WvY/UL0L8keLriLtBrMTMYWPa+qF/bMWRlq3165ZBvbBQC7U X-Received: by 2002:a05:6a20:d398:b0:134:2e3c:9845 with SMTP id iq24-20020a056a20d39800b001342e3c9845mr6745204pzb.22.1698062550020; Mon, 23 Oct 2023 05:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698062550; cv=none; d=google.com; s=arc-20160816; b=pKnI5ejPyds7vrWFQIMGmYXuTNS7V15Bbg5bxUcP2vXU0nqFCz29MD/Zr6ydy1aoWF Hf31XgPfKoU66yxJJtJOXZlZu56gRUNNHZj0O/MHXkflvq5OzUVVlRqABCVaThbJbd+D eAFFJ3VsJmYzOt8IP/xjtw1zwf/xCe5jQeGJCd5TIjcceISi9Nt5eqwUd6ScE+y8bISE 9l2DrE64JdSbq07uEkadQyRhpsct1yRwi4FiZw6pADPvQB9cvq+Fa+6WEigx0bQqdpCW bQ0TQmldQpMv5/94XZTngB0oHTQ8LaSV5z2uqLIUmok4jZb5Nu/EPH/dQIrKfhNEDxSX 0PFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YV9S8Dl1QFTNoTqt6zU/0XcXKKZm0RVI8YwTgV3zwuI=; fh=EJl2Jspcdr0LccnUN2ftXzJHlzW0/iu8WePVcQw4JgY=; b=nfpR6KmFDQGa2wTo+RdOEbQfJ6Uz5suUPuRWGBBkRctRBu+wIx06aoS2vw+acbYDEB tlyAX8Jm73weKo8p8ytB91K77VVo774BiuoRMkVZxSGIzWv0dcZ4wPjgW4uLJ1QGshCk BpclOLYDqD/20neFQYPwp8X4HPx51qC+12WZ78m/IT3ZPKxh/kJOsHYbq2t4TFOj+406 HSbcxIUasbkdfsltUIzuS/nYQFjlTyzcaXvxUAL8sLSaM0FeE/xJ8sZAayZc1+arkN4h J2FyPfj8z79mwGj+WJlhJMfkfLyOogZ2FUtQ579DTvQI5ZBS8xUTXSbjE1mC5+IGmD+I Kz2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=RlzmMQaX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id h6-20020a056a00170600b0068895dea43csi6441815pfc.78.2023.10.23.05.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=RlzmMQaX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 22CC78075002; Mon, 23 Oct 2023 05:02:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233428AbjJWMCW (ORCPT + 99 others); Mon, 23 Oct 2023 08:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbjJWMCU (ORCPT ); Mon, 23 Oct 2023 08:02:20 -0400 Received: from mail-vk1-xa2d.google.com (mail-vk1-xa2d.google.com [IPv6:2607:f8b0:4864:20::a2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C521AF for ; Mon, 23 Oct 2023 05:02:18 -0700 (PDT) Received: by mail-vk1-xa2d.google.com with SMTP id 71dfb90a1353d-49b289adca9so1168388e0c.3 for ; Mon, 23 Oct 2023 05:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1698062537; x=1698667337; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YV9S8Dl1QFTNoTqt6zU/0XcXKKZm0RVI8YwTgV3zwuI=; b=RlzmMQaXlHo6k3AQChxwTd8URqjxvdveJdiNWjwVJYtUdpwEs6yfw07BH6PNAW548i Ynjbr8CjuIIsv7I4eiR63d7m9b+2cxD/iHg8IpCMzhEE9eR4RUwSVDBPsNLTDCky+HDO JTWkrWEO0IULfra4yg59U1On55k158x4xNTEE1KkvfBsgP21tyemyYTIF5cVFzQ+Rlh1 Ny2aWjEmyVrbozWLFcsbuss0Qsgig+RbJ6mYtKIt/YjnO8vs/g8RZ5H4gZA8o+wDIkAC J1q7oX+bGQw96XIttd+QZmFB3idi6oGRKbTqHhiJ/vKK2gZdOq+zJwj3I9zmLh8MngEb wGRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698062537; x=1698667337; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YV9S8Dl1QFTNoTqt6zU/0XcXKKZm0RVI8YwTgV3zwuI=; b=CdqzUUwMz5zm58Ly9rZ4iDzNhlf/Pc3zrFXq1QEu15UXywhYo8lqHYcVsvSVM0ctJu aUHxsnggHewQrCVXyJsrDQHaZFv7a4h0lKiLajuYxT6pLvFBHOUW8exTYpIsxYLV+Y11 hy1Xy8of0T8dPFzzxNpm1Tmh1fwqru48FQ6VbIPo9vUnJ+eHLmY6ofKiI55sXqODoffi /hR72+74VXRJrSfeiLZ19Ve0UoVBd34TEKhg4sWoiWAVZoVhYdZKo929LYK8LhHgFdK8 9RI8Cn++hhe4uaANcX20KSzOhK0MKTBeekXT4mXqC+9ku/1U2/8aRC+/Kex1Lfp1TYYM DzTA== X-Gm-Message-State: AOJu0YxH8/oMlRbYa/olRVAe5ZqYOeaW6KCACnP2/LUQc57W67Ihy1Vi E9+6vwGERlkS0Izbm9emgPowBzQbmuUwlMQRflnigA== X-Received: by 2002:a05:6122:1d42:b0:490:c49e:3fe0 with SMTP id gd2-20020a0561221d4200b00490c49e3fe0mr8110182vkb.11.1698062537379; Mon, 23 Oct 2023 05:02:17 -0700 (PDT) MIME-Version: 1.0 References: <20231023115646.3573494-1-arnd@kernel.org> In-Reply-To: From: Bartosz Golaszewski Date: Mon, 23 Oct 2023 14:02:06 +0200 Message-ID: Subject: Re: [PATCH] hte: tegra194: add GPIOLIB dependency To: Arnd Bergmann Cc: Dipen Patel , Andy Shevchenko , Bartosz Golaszewski , Linus Walleij , Arnd Bergmann , timestamp@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 23 Oct 2023 05:02:27 -0700 (PDT) On Mon, Oct 23, 2023 at 2:00=E2=80=AFPM Bartosz Golaszewski = wrote: > > On Mon, Oct 23, 2023 at 1:57=E2=80=AFPM Arnd Bergmann w= rote: > > > > From: Arnd Bergmann > > > > The driver started calling into a few interfaces that are part of GPIOL= IB and > > don't have stub implementations otherwise: > > > > drivers/hte/hte-tegra194.c: In function 'tegra_hte_line_xlate': > > drivers/hte/hte-tegra194.c:424:48: error: implicit declaration of funct= ion 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror= =3Dimplicit-function-declaration] > > 424 | line_id =3D desc->attr.line_id - gpio_device_ge= t_base(gs->gdev); > > | ^~~~~~~~~~~~~~~~= ~~~~ > > | gpio_device_get_= desc > > > > Add a Kconfig dependency to only allow building when this is defined. > > > > Fixes: dc850faa28ee0 ("hte: tegra194: don't access struct gpio_chip") > > Signed-off-by: Arnd Bergmann > > --- > > drivers/hte/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/hte/Kconfig b/drivers/hte/Kconfig > > index 083e67492bf2e..641af722b555d 100644 > > --- a/drivers/hte/Kconfig > > +++ b/drivers/hte/Kconfig > > @@ -17,6 +17,7 @@ if HTE > > config HTE_TEGRA194 > > tristate "NVIDIA Tegra194 HTE Support" > > depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST) > > + depends on GPIOLIB > > help > > Enable this option for integrated hardware timestamping engin= e also > > known as generic timestamping engine (GTE) support on NVIDIA = Tegra194 > > -- > > 2.39.2 > > > > Thanks. None of the new interfaces are "consumer" APIs and are not > meant to have stubs so depending on GPIOLIB is correct here. > > Reviewed-by: Bartosz Golaszewski Ah, this goes on top of the patch that is in my tree so I'll wait for Dipen's Ack and apply it. Bart