Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1401341rda; Mon, 23 Oct 2023 11:21:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+PZ+fISjGENVqHhJoW/8kZj9e+ssgrFGMpItQjBYnb0rblylIeeoJT6UyDxVkcBy/HGpx X-Received: by 2002:a05:6359:7301:b0:168:dc4a:c96f with SMTP id ux1-20020a056359730100b00168dc4ac96fmr3886314rwb.16.1698085279472; Mon, 23 Oct 2023 11:21:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698085279; cv=none; d=google.com; s=arc-20160816; b=UB8QHlDcYy6f8vpU2GNChPYJjlZZXRU3FBebMYjCZx6oG4qYKVoOGgo8fcijaYHlE4 oBWr0lbVQjasGqxQG+x6lZdEy/OlzK+QiLeB2S+otmTW/qmLDWimuuI7s7P/Ne2Zudo5 0yvPMs8CH9MJ7qDN+NWbnWZ64BYkWU0bfsC0lsHNJU2EUU6jfSvU5PLQGLR1kyz7hnU+ rYqhb3yait1CaRgiCXwa56FDplOl7W8mUvxIa+2FtGE9KVk8rF6TG7ZrgfkJ6NIKRxy6 y2M4qmzjkjj8YsewUNTgH49R+LBmo+6FmjEGAB10jyOsKbrwhvsVmti237LHYPBaxtIl sI0w== 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=2lA7u/KwHbZjDwkrCQtE/aGz8soCrQO6TnRku5ElS1M=; fh=ZGSRMDYXDqeX/dUlZzOG6JfKOjw/DBmd0UrDlE07SCM=; b=fhXyQ4w+C1gH3lgyZ6doEa9fT+ygYdtOESbnhfi+FG83ObXkNY8NRIXTjRTLonYLZP T4lG+SIviSP0UA356L1VGVdYXxcc0BOqLbvmX/CdgOtgwtXh8ZZyqzNmV7D11yvwr3dI dxQy4ixYfG7oqFF2hGOniLvFagHnWD8tDV4ecsSXxzUIvSa+i4bjdaYtMafn2SvEDqht WVvnptan2T+KrWcwJqCO+TVuBNZo9G2Naxbew3xdi/xjXO5m3QQDOvHOhsnAukbxEDKQ 9WjdXWxPBuTt4vH66tMU6hJdJolOD3jH8I4fwKysYm6AN9PNR43W1hy40IrcAPEVRiHt oYGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=cMuKwbsd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id u21-20020a656715000000b00578a30162c8si6737771pgf.537.2023.10.23.11.21.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 11:21:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=cMuKwbsd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 2B40D8032C6C; Mon, 23 Oct 2023 11:21:17 -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 S230501AbjJWSVD (ORCPT + 99 others); Mon, 23 Oct 2023 14:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbjJWSVC (ORCPT ); Mon, 23 Oct 2023 14:21:02 -0400 Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ABDC9B for ; Mon, 23 Oct 2023 11:20:58 -0700 (PDT) Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-7afc13d58c6so1367712241.1 for ; Mon, 23 Oct 2023 11:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1698085257; x=1698690057; 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=2lA7u/KwHbZjDwkrCQtE/aGz8soCrQO6TnRku5ElS1M=; b=cMuKwbsdsACZu4fhzqcYot4GUCplJDQANkyqYPqz9wBgHoCHaE/Xhm5NeLgE3PybZQ fDTrWSZF4Q7JIo6m+7F0VdgWfxcy/wK+UqTyULLXV6lhBfOjuMXkIPSybfjEEffijKGW eqEu9E4T386D2QaJwy8jleLACsLaowIrUGROcL/7Wguhqz55WUx9gSU9W2O9pw90bjP4 /PMHTl21HYnDWcTfuru56AaMfhiHORrznmtqorcDsRgmVS24KtLiM5IfnC715SEAtj3E mqEve+4YLnxn685zcZcRJfQc7x3k2saGApLlSAhzYucl+H5Sf9B8lAIfL51ooVCWkqnw FdNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698085257; x=1698690057; 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=2lA7u/KwHbZjDwkrCQtE/aGz8soCrQO6TnRku5ElS1M=; b=ONV3fZ+IV7x8hi8MAo0COQcGvL3xE1tPl87Xb66tas+OiC2kQZNCBzoic8gdvGYP3M VpnBpyW+nkTx34nelXmcHiihEX4kfhRTrog2YL1KnTKhX6MTtAGKCDrHeZg7HQ6+VR8A JMqacSbp5u/Qoz0YVWDmq66Uu81oZmKrb6pHRR6/X+7n1x9sg/MfIoubR39djEeHYZxH MPXZUs6sIkbEIs33YtD45AKleap6x3+MfoDJwNZvwL15RBQLwYGy0xGeAs9FRoPZoFWE mVPtIuv9zeOK9K78JVJGdSbFcTlhyHihR9JIXTnv5nG6p0Z3xCHGz0sc1ai9HSegIJ/X OrLw== X-Gm-Message-State: AOJu0YxoJlA8y+ZwqWj1N1Mjck+l8h/RyJtYc8PlrIpurO8J5/UmbIqE yfCWOrzlJNi/JR02BA7FWzLdhwrOTDFE+y7HkU2gt/rTUm/kF/Pv X-Received: by 2002:a67:cb9d:0:b0:458:3bc1:9777 with SMTP id h29-20020a67cb9d000000b004583bc19777mr8102288vsl.15.1698085257266; Mon, 23 Oct 2023 11:20:57 -0700 (PDT) MIME-Version: 1.0 References: <20231023115646.3573494-1-arnd@kernel.org> <1e603c14-54aa-1ea8-cac7-99b29af92b4b@nvidia.com> In-Reply-To: <1e603c14-54aa-1ea8-cac7-99b29af92b4b@nvidia.com> From: Bartosz Golaszewski Date: Mon, 23 Oct 2023 20:20:46 +0200 Message-ID: Subject: Re: [PATCH] hte: tegra194: add GPIOLIB dependency To: Dipen Patel Cc: Arnd Bergmann , 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 11:21:17 -0700 (PDT) On Mon, Oct 23, 2023 at 7:26=E2=80=AFPM Dipen Patel wro= te: > > On 10/23/23 5:02 AM, Bartosz Golaszewski wrote: > > 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 wrote: > >>> > >>> From: Arnd Bergmann > >>> > >>> The driver started calling into a few interfaces that are part of GPI= OLIB 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 fun= ction '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_= get_base(gs->gdev); > >>> | ^~~~~~~~~~~~~~= ~~~~~~ > >>> | gpio_device_ge= t_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 eng= ine also > >>> known as generic timestamping engine (GTE) support on NVIDI= A 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. > > Acked-by: Dipen Patel > > > > Bart > I queued it. There's a trivial conflict with your HTE branch, Stephen should be able to resolve it. Bart