Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2851055rdb; Wed, 4 Oct 2023 13:31:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEF0XNpp6hbJeB4eyJ0T6MRsN2BwAol4uA7STKZDpgYwoOw2e5E2kw0+c918nHpGgbJBdq3 X-Received: by 2002:a17:903:646:b0:1c0:7bac:13d4 with SMTP id kh6-20020a170903064600b001c07bac13d4mr3318179plb.65.1696451490727; Wed, 04 Oct 2023 13:31:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696451490; cv=pass; d=google.com; s=arc-20160816; b=L27jKzO0SL5aVW5X8sNR2JjX+lweQbOP+JDCtdD156uIXfrYVvrOfEgZhw6GqFX5G8 DQ3wZvV4tDZF4JL7s7Iy31/0kUze3gU5kTCvFIDBu5A3RPMb2vWx+jYsR97uysDPwkAL v3PgoUBrMGfqVrtZ9UuLfY1Mz7aBG9trBKq6IqOPF0crtOUbmutZz5aIyiufjRBRScr6 9y5oWki9Vk/f0GC0YuLxqLFRDbipe5RfD2vrYaztuM33qDudfZ+7HpfX+IH30lo8LWeG jS0Xb2AhsDFtzFhW4d1k/ag+iQGADWRJTtZrLvu7V6nMdS01BXRq83bSMI15mP0k8wfD OI6g== 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:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=97zaEnmYqNbNvAeNJCxPDl2XugBg6KGr5wo3zUerAq4=; fh=x1ge4azRkOeNwIW2TOXXBZADqo5bAHp6KQYG36KnpZ8=; b=ofe9tgniK+m7HW70FHAXgUG2RcvPo78tc8MUKdPyaTY50A+E7e9vqfrzjfswbyhmEx YNFE7WyN7Z1t4iepx0I75sIA8GiQtJodIO1G73VvA8A14AdaO80aCgcQzBQmaFW4/xWA VR2v4bhxq8RDG2R6NY/agK2UiU5IYlv3RqXqXFkBDL20B6+brmHEexkVW1mstnxT4TP9 Vs4xKNMcM5RMDREUOEWEvBhFiXIf7agUP3C5LdKmFR8BEonspVUVuYi4IzP+GP9BHyfl e157iQ+BExujq76Vi2HYb+xmWeyG1H5esgNfk9Sm317/+Ev98sMgjrAnaepjnazI/E+1 NhnQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=m3SbrrK3; 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.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q13-20020a170902a3cd00b001c60de17b50si4106433plb.182.2023.10.04.13.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 13:31:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=m3SbrrK3; 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.37 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 snail.vger.email (Postfix) with ESMTP id 69F5C82224F1; Wed, 4 Oct 2023 13:31:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243717AbjJDUbC (ORCPT + 99 others); Wed, 4 Oct 2023 16:31:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233332AbjJDUbA (ORCPT ); Wed, 4 Oct 2023 16:31:00 -0400 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2075.outbound.protection.outlook.com [40.107.101.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45E81C0; Wed, 4 Oct 2023 13:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RYudkx1lNsquYRIOHFzajyp69KiqWD2TffudrmvdLijp30NhyWbBj2Lc0GfSFXWmxranJm4PIMPm9h/3bgPFS+E4NNgSNpebopPd5eIybfzEZUCYE/pwfpiUaktJoPVMc4mrowQfu7baNZphaZ2BlouBoFXbAEKjZhMuIXCSLgeYlhi7R+OhJW7UpqctaXmGA+5Zc56BcIGCHqS++JP4sMw6koEYpS37pAHXmQqyZSEmu+i9kKRNDUdgGLn8wAy4wiknq5idy/afD5iPU1yw2gILYjBna01pFZVvOV2GUPWCmZyeEkH7Wsrt0XwAADGi6SmCu3hSUUfEM4rMueItrw== 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=97zaEnmYqNbNvAeNJCxPDl2XugBg6KGr5wo3zUerAq4=; b=Y74b/8N8kpvEtKUo9MQCGu1GyaRm2ipeKfBTnXXK+gnOD5ZFEysH8k4ALM9Tf8pzbOvq6TkJrXRWK8uhW9l/B0eNj+JZ/CPUYNTyln4uhlLcDjiDP4cDfZzIVlJiVOjH9ihR0cX7zZDsFGEf4TDv7iF0A+tt6T53lkv+kaJNRR5S+Iifo82J7AxETjC4qvDSae0VMocsyWukePtvoCSceHeLIEIrPF+RE+KiK8PBL4hlOeJMDvVT1ClRJbwyoU/YkIhSXJajtmp2FOCMXzvWpM9c3a2SZaOvIWxtchhi2aE0Bt7KY2tEa/OmLDpjey7zJmMdJT+49cwkCgKqraIHKQ== 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=97zaEnmYqNbNvAeNJCxPDl2XugBg6KGr5wo3zUerAq4=; b=m3SbrrK3rR/UyAAE1Ksu32k8dFzQurfE2SWt2H2k7tyzR2km6mk0aPBbwqk4KlrhfQjltzQAqCtf8qQuc4hin8+F2H4bxNLUDpG6RdbubsQtQG9QFwng5pMIWKaPg9L+hd+M+JtDDjdeucAr3olbe3yAL9FsilK599xZyoq7u+w2P1pxne24cKcSte0Abld0sV74D/HJBjcFSbh08FXr90cgEhQt5Tj99gCrM+4hXEe0+jT0MLLD9dKMdmlbJ80hsNC4wvGdkZYpF7S9+ZbiK1jUjW5dy9AOLuCja0QP38Km48IZRDthkertoBzCOH3T2CClCGhU5XLPWLY+aH6aig== 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 DS0PR12MB7828.namprd12.prod.outlook.com (2603:10b6:8:14b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.35; Wed, 4 Oct 2023 20:30:53 +0000 Received: from IA1PR12MB6604.namprd12.prod.outlook.com ([fe80::8814:146:e28e:6eea]) by IA1PR12MB6604.namprd12.prod.outlook.com ([fe80::8814:146:e28e:6eea%4]) with mapi id 15.20.6838.016; Wed, 4 Oct 2023 20:30:53 +0000 Message-ID: <36b17290-c643-8d8e-e82b-49afa6b34fbb@nvidia.com> Date: Wed, 4 Oct 2023 13:30:48 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFT PATCH 14/21] hte: tegra194: don't access struct gpio_chip Content-Language: en-US To: Bartosz Golaszewski , Linus Walleij Cc: Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Russell King , Mika Westerberg , Andy Shevchenko , Thierry Reding , Jonathan Hunter , Hans de Goede , Mark Gross , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, timestamp@lists.linux.dev, linux-tegra@vger.kernel.org, platform-driver-x86@vger.kernel.org, Bartosz Golaszewski References: <20230905185309.131295-1-brgl@bgdev.pl> <20230905185309.131295-15-brgl@bgdev.pl> X-Nvconfidentiality: pubic From: Dipen Patel In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BY5PR17CA0057.namprd17.prod.outlook.com (2603:10b6:a03:167::34) To IA1PR12MB6604.namprd12.prod.outlook.com (2603:10b6:208:3a0::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR12MB6604:EE_|DS0PR12MB7828:EE_ X-MS-Office365-Filtering-Correlation-Id: 9a5815ba-b9c7-4984-64b9-08dbc518ce7e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6C84CsY6dUi3gTg0Z9Y3b4r0gSdbHxUnhyLHGPUsobfETKYLnTxORMxM1qDI1VARn1VnDx4wWMmHnQWxkxFYGgEl8Cjm+UCb8j5nc5FUqruYwGWS2vvhYfF0F2V6lVGBzIHXJ2wdTA/Hdn4DxKM2wagTVaNnGeHwsWL/EQ7z2I2Hv0wKvIF5h7kPZ3q2O7qKuFjznGFWDvlG1pldDVRyVT69ug/cv9RziY28Iaa3CuH/jjIoUoKWNGYInrmUqhZvNEuRhHxGMPKtG0XBHs6nvuWV0iFNLuOVJx2yYpRPKestGwQ6u5QTgGomamvYplv/BErNz1jE5BtJ/a7pk5bhN38B3XxzsNt06n4IXQztQxC0YH1dzCxlDxS9LUKIsyy00UAujb6I8oRyudyGfgNH1JnR25u3EgwFJhWC8v/APoQq2NlTLuZ+oRMIXToUXak0D+qwJbflY5eddz59MwBG0VlLArdMIiHirVRBsaSUurKlHBhNi4f7Bhd5Nhn1iY1E4XQo69YHaKReUiM96pogpnlfu5KxpjZyxWCTvaQ52ZJ6GDgLosms88aO7gc9u71KEERofiBn9ZvIOZfKBEu2CipjUx7pMhv5YvdF9y6jlkumwm+XjruiH/BIZhKrnSThW4/KmWxLVSxdF+OKaA7YfA== 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)(376002)(366004)(136003)(39860400002)(396003)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(31686004)(6666004)(53546011)(6486002)(478600001)(6506007)(2616005)(86362001)(38100700002)(31696002)(7416002)(41300700001)(2906002)(83380400001)(6512007)(26005)(54906003)(66556008)(66476007)(5660300002)(316002)(110136005)(66946007)(8936002)(36756003)(4326008)(8676002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eG4ybHRBMTlzeC9GZzd0eFBNZ05YNy9PSkZLSzV0alJkS2VlSTh2S2NQeWVX?= =?utf-8?B?VU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VDg3Y09hWWxueXpnUFpiUFZLby9yT0dtYnFZZlVE?= =?utf-8?B?WjRJUWRZeW9haVBSVmhtVUJRbmJTZzA2SS9OdG9yQ2twV1E2cDdEUjZSV2Z4?= =?utf-8?B?bUR2M2loYzJXaEsyQkJVSUovYXFNYnNhWmNtYTF1dXVLQkZ6TXRhVGNMbzZH?= =?utf-8?B?STZRSjBKS3daWkwwSzJFTlB6cW0zZTZTeUhQWk9WcDVqRGo0KzY0L21JLzg4?= =?utf-8?B?Ymk1Wkp1MUkzNW5lTU9Wc2JXRWdGb3pTYlY1TWFpWjJKUDNlcUJPQWUrVlE0?= =?utf-8?Q?P2nLnVN6mlmphJXeSUrxkpfgq?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9a5815ba-b9c7-4984-64b9-08dbc518ce7e X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB6604.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 20:30:53.9010 (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: TvbePj7s31gzlnp1tkYpNiwLVbXetg++gOBV4FlWMFQUNOD7gmhJKLqBiv2zUphxkz8B9d0QKx+1Dkg07ZOXEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7828 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 13:31:11 -0700 (PDT) On 10/4/23 5:00 AM, Bartosz Golaszewski wrote: > On Thu, Sep 7, 2023 at 9:28 AM Linus Walleij wrote: >> >> On Tue, Sep 5, 2023 at 8:53 PM Bartosz Golaszewski wrote: >> >>> From: Bartosz Golaszewski >>> >>> Using struct gpio_chip is not safe as it will disappear if the >>> underlying driver is unbound for any reason. Switch to using reference >>> counted struct gpio_device and its dedicated accessors. >>> >>> Signed-off-by: Bartosz Golaszewski >> >> As Andy points out add , with that fixed: >> Reviewed-by: Linus Walleij >> >> I think this can be merged into the gpio tree after leaving some >> slack for the HTE maintainer to look at it, things look so much >> better after this. >> >> Yours, >> Linus Walleij > > Dipen, > > if you could give this patch a test and possibly ack it for me to take > it through the GPIO tree (or go the immutable tag from HTE route) then > it would be great. This is the last user of gpiochip_find() treewide, > so with it we could remove it entirely for v6.7. Progress so far for the RFT... I tried applying the patch series on 6.6-rc1 and it did not apply cleanly, some patches I needed to manually apply and correct. With all this, it failed compilation at some spi/spi-bcm2835 driver. I disabled that and was able to compile. I thought I should let you know this part. Now, I tried to test the hte and it seems to fail finding the gpio device, roughly around this place [1]. I thought it would be your patch series so tried to just use 6.6rc1 without your patches and it still failed at the same place. I have to trace back now from which kernel version it broke. > > Bart