Message ID | 20231023115646.3573494-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1240274vqx; Mon, 23 Oct 2023 04:57:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpQaJP0wM8JZV/v8frFXxevaCv6aUG3gis6R4EFOpDMJcdtAsTEcGm3jC3KBwmYc8qdztD X-Received: by 2002:a05:6870:7b4a:b0:1b3:8cfb:78c5 with SMTP id ji10-20020a0568707b4a00b001b38cfb78c5mr10787580oab.34.1698062237814; Mon, 23 Oct 2023 04:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698062237; cv=none; d=google.com; s=arc-20160816; b=xx13qmmuubH0LfU4k5LmlxVtD9zzxNYHJyxcACBWfEK1Vk9w4hN8PhB+MsdItp3vlE mxU/ofoqCDEEFPuDuu64a2kWnewz3aVsMNGaTdtT+n3KrxC2wgXUFvhR9elWnN7UeI/o PQMbvYXkFK/xMs4B1baK11StCZ8c/1GuCm9aCJ7iOjFNKqbnDRygzalckM2hyuvxrf5r MzLz6Non7Po1jWT4wyrqnM3OwSOvv49lVTHitlQm2rq98WsluLRStcYp6ErSNbG/Dj/Y Vbj8BMv4NycgLvX3WfuoGbGEfcnnLUD4EZdm79nF78ScgJ7BzyhQeOiDmVetfSXbdu62 WHUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qCC6yRbttH19yhNL3yXy+lrgBsGCphxxIl9H1f3ZBWE=; fh=WXTD5vrpDYH3gGNuRQWr6oN2LREFUWjf3TjIzBHpFlY=; b=w1cB0HNZ0smnBQrBduYknye0vylFH3hGG+4vx3uzyxC/O12PxHeOBBOKOon7CekIq2 Wn+U62ExK/ps1To5CgobxzHQ9LoqE7a3GM0e/+jC6+9yPtMOuJSTMqpdTLF3cZRno/ML 9RO9QIzke0/BOb78skjBUNoIugnuOrVbOIWryXeHZ4REAud7FQkon3pLIzO7kbP3v0Uk Hc18RDgahweEk+kNNqV2ADLrykLqkzr6KMCOzEqzo2GQfcvp05U1/KqHx3qPbMaqTh7u 5il3i3n1rNZ+33sLfsBbCzMOv5nOYY64v+2n8ZI2lsRMAOg0JvBhKqp7gYZl3L1PYApg C3sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mn5kib3B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s17-20020a639251000000b005ae99bb5c03si6142420pgn.41.2023.10.23.04.57.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:57:17 -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=@kernel.org header.s=k20201202 header.b=Mn5kib3B; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 88C7080B1837; Mon, 23 Oct 2023 04:57:15 -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 S234176AbjJWL5A (ORCPT <rfc822;aposhian.dev@gmail.com> + 27 others); Mon, 23 Oct 2023 07:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234521AbjJWL44 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Oct 2023 07:56:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D43310EB for <linux-kernel@vger.kernel.org>; Mon, 23 Oct 2023 04:56:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10AA5C433C7; Mon, 23 Oct 2023 11:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698062212; bh=bJRfXy2TRIDrKcAouw/75Fhv7CzjeSwcjJuB4GB6vlU=; h=From:To:Cc:Subject:Date:From; b=Mn5kib3BI3Gy5PE0SXj5IdYJs0wnU7kITW871Jj8vLdJmT2LGr2tOiqQa76DwNmi6 1XOj9sUw7IYJa3/r0DzX2Co2JHDaw1J4JDlItVZQGRMNLEp/AQ+SpHni+2OCfvX769 OIBxqx+53J5hl2qsEFPnCdk3L7rp0JFRfPXLjdF7UfXdXptDwyXXcB3biQRAaZuSKT Heh7ippAW/AN5okuoG1+BfX/9T8E2qSGCCbtpb3ARSzN3MKbLQG8Uw+9ifgZUB/KCt AAx6U0dYzE7zSiPy0x4fITSAHy3lQ4cLcZIbTLy4YhA96634LhF6BdrmHoIy9ZffZe +TfNqzT14RhkQ== From: Arnd Bergmann <arnd@kernel.org> To: Dipen Patel <dipenp@nvidia.com>, Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Bartosz Golaszewski <bartosz.golaszewski@linaro.org>, Linus Walleij <linus.walleij@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de>, timestamp@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] hte: tegra194: add GPIOLIB dependency Date: Mon, 23 Oct 2023 13:56:41 +0200 Message-Id: <20231023115646.3573494-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: <linux-kernel.vger.kernel.org> 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 04:57:15 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780547309260057523 X-GMAIL-MSGID: 1780547309260057523 |
Series |
hte: tegra194: add GPIOLIB dependency
|
|
Commit Message
Arnd Bergmann
Oct. 23, 2023, 11:56 a.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The driver started calling into a few interfaces that are part of GPIOLIB 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 function 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=implicit-function-declaration] 424 | line_id = desc->attr.line_id - gpio_device_get_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 <arnd@arndb.de> --- drivers/hte/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
On Mon, Oct 23, 2023 at 1:57 PM Arnd Bergmann <arnd@kernel.org> wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > The driver started calling into a few interfaces that are part of GPIOLIB 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 function 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=implicit-function-declaration] > 424 | line_id = desc->attr.line_id - gpio_device_get_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 <arnd@arndb.de> > --- > 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 engine 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 <bartosz.golaszewski@linaro.org>
On Mon, Oct 23, 2023 at 2:00 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > > On Mon, Oct 23, 2023 at 1:57 PM Arnd Bergmann <arnd@kernel.org> wrote: > > > > From: Arnd Bergmann <arnd@arndb.de> > > > > The driver started calling into a few interfaces that are part of GPIOLIB 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 function 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=implicit-function-declaration] > > 424 | line_id = desc->attr.line_id - gpio_device_get_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 <arnd@arndb.de> > > --- > > 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 engine 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 <bartosz.golaszewski@linaro.org> 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
On 10/23/23 5:02 AM, Bartosz Golaszewski wrote: > On Mon, Oct 23, 2023 at 2:00 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: >> >> On Mon, Oct 23, 2023 at 1:57 PM Arnd Bergmann <arnd@kernel.org> wrote: >>> >>> From: Arnd Bergmann <arnd@arndb.de> >>> >>> The driver started calling into a few interfaces that are part of GPIOLIB 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 function 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=implicit-function-declaration] >>> 424 | line_id = desc->attr.line_id - gpio_device_get_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 <arnd@arndb.de> >>> --- >>> 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 engine 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 <bartosz.golaszewski@linaro.org> > > 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 <dipenp@nvidia.com> > > Bart
On Mon, Oct 23, 2023 at 7:26 PM Dipen Patel <dipenp@nvidia.com> wrote: > > On 10/23/23 5:02 AM, Bartosz Golaszewski wrote: > > On Mon, Oct 23, 2023 at 2:00 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote: > >> > >> On Mon, Oct 23, 2023 at 1:57 PM Arnd Bergmann <arnd@kernel.org> wrote: > >>> > >>> From: Arnd Bergmann <arnd@arndb.de> > >>> > >>> The driver started calling into a few interfaces that are part of GPIOLIB 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 function 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=implicit-function-declaration] > >>> 424 | line_id = desc->attr.line_id - gpio_device_get_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 <arnd@arndb.de> > >>> --- > >>> 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 engine 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 <bartosz.golaszewski@linaro.org> > > > > 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 <dipenp@nvidia.com> > > > > Bart > I queued it. There's a trivial conflict with your HTE branch, Stephen should be able to resolve it. Bart
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 engine also known as generic timestamping engine (GTE) support on NVIDIA Tegra194