Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1372010rda; Mon, 23 Oct 2023 10:26:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUzsSZaD+KInr85iZjdERL/yjtHVR8nFiTuE7d3KYF1YFMF+/BFiz9+Zv8Dr5jGkii2/XT X-Received: by 2002:a05:6a00:17a1:b0:6b2:baa0:6d4c with SMTP id s33-20020a056a0017a100b006b2baa06d4cmr8201497pfg.33.1698081996516; Mon, 23 Oct 2023 10:26:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698081996; cv=pass; d=google.com; s=arc-20160816; b=0HIiPMDl3APEKngTBwUe2XKL6EDhhj2bdSjASb1rK/2ctzxJhKEvseCFd/CjPLnPAe /tjnfx/nIIK94+jHlJAudKwSNrcXGwjJLzTaseK1pGxjV4MGGjf08bXTwHrGZKaSGRHS ZIxKIgVKulRmoa0jIoJPt3KTz1zuwSdg46N6uYzKhhRtkhH4NBNFADOQy8lXwU8GHc1W 5SQH1ju1YDLGnxgmj/Q407NSZw7QSYJKHYGc0uKNIBWHakvo8r90Ri8yoh2wLIeHvcZv sMQoGqNrbGJanwU3SeBq/Ehdg2lPzi4TSDLx7jvtMs+XnUK2bxME0OtCXj59C6jQwvPj GVdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=1ChAY3qU6V4u414jDbkvmQgJ1caU3YOLpkbm6isBcx8=; fh=vZ3iZi6d/DgD9DUWt+ka3+0HhEtFoqPZQfwaPjdy5rg=; b=Nblar6EdTWnO3v/XgUi8lCtXWBLppFaCPDh/X/lGEOPfYHjSd2Vh0GFOqScm35GdBj xm70wwIi7BnLHX+UnUmEDXXEmo1iD1AA28Kq+Jmbo1xa9ExTelEqRInt39oWCgxye8TB rrmi3hSRz6MGn4DKkzsLWoFrX4xzg11TVC0vy+8S6CxrkrHZr2g67pprDsJiCembid9y uxjLFcPSf2o/UcRnEfdW6hfkPJPO4JqpLK/xK0QyxMqOxTy+IdkQ817cxPmX77zB20T9 f9DUVDXK1IjbOGPuA3fJIZAO+fDjiubIn5nsqUBy9gZVbL5ZPvPLCcsuzJGLyJTJouZl /FLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=GJlMBDmr; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id l128-20020a633e86000000b005aaefc07ccfsi6637082pga.36.2023.10.23.10.26.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 10:26:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=GJlMBDmr; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 39BC98095095; Mon, 23 Oct 2023 10:26:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232179AbjJWR0S (ORCPT + 99 others); Mon, 23 Oct 2023 13:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231614AbjJWR0N (ORCPT ); Mon, 23 Oct 2023 13:26:13 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2076.outbound.protection.outlook.com [40.107.244.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1B81C5 for ; Mon, 23 Oct 2023 10:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SzKDgarNT/uzSbD/chKIznJo0uXr9GXWniL08ej6Q8CTxXcjbwgPnwJXbz/eCoVM18bxYE40Z4i0QSkqJ65BviobKOPD6B7eTFOWiBeSyJ9N0FkdZSvPvSRGpx7Kps40vwmRflDdqqGzkAn6HUfBYESj3jvXfQqnN4qR0nlwvaG+AtgF/MEB+J95vrrL4ddUa0rpofDVV7PvXKAs1RPmm+Tqt1Bl4d+EtOzjsBcd/hwqskltk5/0KHdAa+myWmugajSt7LTnp9stdQnMMq8j3u2oQ0ocZE0pqgjWD885t8+Bs+A64ooaWIqzCJGFRdFa5kPd2jfQtorVXNV9o45mxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1ChAY3qU6V4u414jDbkvmQgJ1caU3YOLpkbm6isBcx8=; b=m/kr1++h0FH6GFOg2lBrqfimug5sQ/SME5eyiqC9GDK0wvpfNqet5LuGISdZJXsBK1Q2JU6R+ebWBlzGGqDbL+xyRC587M6/ySXwFSb6YuDNVd7kmlECpC2IlDlaj2mjyBo88cYpAz7LMsIIPu5/C8Ptj1jZ9ZraBSwiUyTBNqsBAYMTPTM+cuwj11eh05d9bGhdneB7TRz4upTlZB/r2Bq8EOjei+QYLgM5AhlXjlrX2MpcpiAwCVw2SdNprY5fcmbJ7+Rlx/I9vbVL9EfbJPyOJKZNbrv6RsWtv2r1u6TAwWtVknu+BCtU8QNml4A7BtXPQG0CfZS6ZGr0uss9tw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1ChAY3qU6V4u414jDbkvmQgJ1caU3YOLpkbm6isBcx8=; b=GJlMBDmr4aOfyoSS8yvq1qcTe99pA0p5xtbnCM2gzVVc3mgcNL1llyGoxl+K5PhLzYh4Wj3qyXm7+aKF9EkCX5nEkZp0ocrFA1JfCFbGbCO6x0AhXuAzY+uRWsPfJWH3kaKszYaVgiCVhu3xN/EKnGCDlgGM9zR1QWYGF8EfhYUyUxX2tqIzQeDHA01o9YpMdU2/4+YUOeYQcMv/T412nHL7OcN/PYK0wmG+15rL0rJOmzwt7bupYgNNOxBZ1J+LhlfVDWp/K0w5X5/+FznzUyuPppzJLQZfmbQyjxPNS0aQCMdUywPYpWhFZVS8QiuaQ6W7Jd9BqinpTTepvwLWTA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from IA1PR12MB6604.namprd12.prod.outlook.com (2603:10b6:208:3a0::7) by SJ0PR12MB6782.namprd12.prod.outlook.com (2603:10b6:a03:44d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.23; Mon, 23 Oct 2023 17:26:08 +0000 Received: from IA1PR12MB6604.namprd12.prod.outlook.com ([fe80::16f8:183d:56cb:ba69]) by IA1PR12MB6604.namprd12.prod.outlook.com ([fe80::16f8:183d:56cb:ba69%6]) with mapi id 15.20.6907.028; Mon, 23 Oct 2023 17:26:08 +0000 Message-ID: <1e603c14-54aa-1ea8-cac7-99b29af92b4b@nvidia.com> Date: Mon, 23 Oct 2023 10:26:04 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] hte: tegra194: add GPIOLIB dependency To: Bartosz Golaszewski , Arnd Bergmann Cc: Andy Shevchenko , Bartosz Golaszewski , Linus Walleij , Arnd Bergmann , timestamp@lists.linux.dev, linux-kernel@vger.kernel.org References: <20231023115646.3573494-1-arnd@kernel.org> Content-Language: en-US X-Nvconfidentiality: public From: Dipen Patel In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SJ0PR03CA0340.namprd03.prod.outlook.com (2603:10b6:a03:39c::15) To IA1PR12MB6604.namprd12.prod.outlook.com (2603:10b6:208:3a0::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR12MB6604:EE_|SJ0PR12MB6782:EE_ X-MS-Office365-Filtering-Correlation-Id: dace07f7-b981-4eee-ccaa-08dbd3ed2492 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0V7X/HCwstcBhsOsc9v6DAegumC7sC3M3Jfe02Av89Y+WbPJJJXrX9RtvU9U8BSWPClggyLab+XFePVKurUFlSDvnDeW04xE9YDlvOHMwjzD9B3P4KI3eFrWS3tIe3YgtJzL6oFqtQBSUv3n2gJdCfo+v+IX+SBMhThsvgOhz1NUaUkuo+1s/kmBD/Rj0dYKpgbm/KwyU6Zcy/vIaouhxzMlbM4cjIFiVPcFn7yV5/7f2of+mpUigYmCL1UV7nz5DjQxue+JX8+SjM6mtk1N0iT71MPVGXqRpvVxQfVvNdeuTuBTL79s08uiHcfD3ApUWAJt2v7UOJQ9hmRkBiQuC3VWherROnz1ZiezC26y4gPiDkfrTCacy9zlnuajaWgbo/CaMIDvfgMENFJGsUdzwn2YvcqgL8UCsG+Sxcr2G7vycD5YQSvjP1+cbrOJQXmk4wX4cJtcDtD7phiDlPBZpN/ugXbmIrF3bgUI40qew782pJTnThKTMXPp6GAntWdPXHazKY6gduOW/r8BpaEziHsUrorlJfAMZxWFQ82nWTpZEyPiKuRYnog9BASXy1ySBFTWx4KqZ7pKFdFntRx3YRBjcqTzQ9pi+dCh2K6p1ukOtzPzFeaaDE8TXHi0Y9mIlNamwbHP42R+J9F1Ug1GWg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:IA1PR12MB6604.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(366004)(39860400002)(376002)(136003)(396003)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(2616005)(316002)(6666004)(6506007)(6512007)(83380400001)(26005)(2906002)(4326008)(8676002)(478600001)(5660300002)(8936002)(6486002)(41300700001)(66476007)(86362001)(66946007)(54906003)(110136005)(66556008)(36756003)(38100700002)(31696002)(53546011)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZG1BemZhTDNjYWZYRHovTmJudFJnVURQSDhHazFkVkJtVDNFd2VTSEVNQmFw?= =?utf-8?B?RkFIVDRqeFliU2tjRXgwVDYzSllNaDkrYUFaU1hOVVNPN01sVVdnUkFuUjVl?= =?utf-8?B?UFgrOTIvVE5JTEZwUzF4WUZOOHRsSUcveWt4ckV6cWVnZEdWY1ZoNVNYZGcx?= =?utf-8?B?d3RiaGwyODFh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Q29oWHZDcDhPZ1F3ZEdWUmFB?= =?utf-8?B?UVpaRmt3c0ZkOWZoa2tpNTJ3VTZHUHVNZllzeE44bmhtd1VwZ3U0c3p6N0tG?= =?utf-8?B?Z0J6VVhadXNnUm5WNlNQYUtnTFRWL052eWtSZ0M2dWRUYkc2bWlIbkhTSHE0?= =?utf-8?Q?bSoRaRSeHyMerrybiRTMC/lt5?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: dace07f7-b981-4eee-ccaa-08dbd3ed2492 X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB6604.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2023 17:26:07.9754 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 43DGc8FCi8GrKXLrPrJKBB6XJ6Hpdc8Dbh6/2fafeClXBBfHJsey8MKNyt1+TvtUMRdElRFETQN8qrdII4pm5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6782 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 morse.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 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 10:26:34 -0700 (PDT) On 10/23/23 5:02 AM, Bartosz Golaszewski wrote: > On Mon, Oct 23, 2023 at 2:00 PM Bartosz Golaszewski wrote: >> >> On Mon, Oct 23, 2023 at 1:57 PM Arnd Bergmann wrote: >>> >>> From: Arnd Bergmann >>> >>> 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 >>> --- >>> 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 > > 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