Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp576333rwd; Wed, 7 Jun 2023 04:17:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4vB8FdOqrpL6gNFkUWkgbrl5dYUmsWYyqrhqCB06z9Y1KLCWtw9Z8VorUXVvwcRnpay+YR X-Received: by 2002:a17:90a:1b65:b0:258:de1b:9dcc with SMTP id q92-20020a17090a1b6500b00258de1b9dccmr6193959pjq.9.1686136647708; Wed, 07 Jun 2023 04:17:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686136647; cv=pass; d=google.com; s=arc-20160816; b=Qjr7LzpRalEOc21LqxpF/QHtO6vhqs/OeCLYlz0Uq06jYzyxzmTS++lijmWAEgqIcN 2hQsAPbqt+RdkkR6VtTei/kQbeFUJRdAlimBxSfGQFfcCgQVu6lP3IH4ha6afz9uQTu6 OqT/FQQulChWYgiwRXyexM0nRF4Oj39PvECON7+OhyAThI8q351Ph4pkriTEECXtRyPx OkacOS/Tff/oNNf1gVIe+8ieUqS/ePiggWBlmMowzTa7i8Z6Rwu2UjRy+ADfe8O4MUfz dbStYHaTSPjwAL2xIrsdbz6KL1N3qwitl/VYhSN+21m+n84XTudRkVt04QPFcbSDWV91 sSNQ== 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:references:cc:to:from:content-language:subject :user-agent:date:message-id:dkim-signature; bh=5gKXJNnGK4THNA3xxalpEvXt+TghwU5wmYAMcedYyWA=; b=gAo0QVLXqC6aerGXsKx5gUhwBAc1sFkwIh+TwLJQNGW0TKehr5vGmK5hrISKco7vA9 2tRMWqLdemrB39LdKr8xByz8Bkc5rQT6CKgkTELh8pBZ7gYjYAv/CJEd2HcTPN0Qjcjo ucIWZOZhZTQnxh19jooPTgShqN41tfrB8fqua5f9DGfruHwKvsoD6RlWRUkt42TQlSOG MmOIjWxXBBqNgPXxa9JGDIsxnKlvW9Ow706XnoEoQZ7OuQMtWuzHTYBdPj+csqL1AXH0 RTQQp549ziQ1e2wVbtqfsA/prun5ErK1JyCqo17xbwZBlUpovS2jtKb3aaUMGHGa1Wj0 rW9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Bf+gwcNe; 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 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id na14-20020a17090b4c0e00b0024e11f7a011si982907pjb.100.2023.06.07.04.17.13; Wed, 07 Jun 2023 04:17:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=Bf+gwcNe; 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 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239457AbjFGKzh (ORCPT + 99 others); Wed, 7 Jun 2023 06:55:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235180AbjFGKzf (ORCPT ); Wed, 7 Jun 2023 06:55:35 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2075.outbound.protection.outlook.com [40.107.243.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 112F3124; Wed, 7 Jun 2023 03:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G1E1aIKEVGyEKs6ow5q+jlQemKeYkSWhkBkqfMoRvwSzGg/7rvcL/su97eJCziY4VVhjUfuQ7VN81nRh4sMrHKYzsWzau5Vg2eUK3WHmHStf4F/PPEEo26XIm8y6H4/PdxOOAGpTh4utC3QqqEvmFNFgUZymyiNWQYsNTD7MG+xCU4G0Rn89Q30zSSezeeZpOdcDsuzY71TpFNIxQ5gE74g52sR8Alp+/5JWKTPP7Arcimw9eZlkuKNiY7DbFFwvgiHByoT7kWSNbjghKxpOZq5XP/IlCoS9tWen/rVkxb1hHxmS5CbJVdoD2VYF1FJ+tRWrLIN3R6YwEhth8pfE9w== 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=5gKXJNnGK4THNA3xxalpEvXt+TghwU5wmYAMcedYyWA=; b=agtleSriJijtAq/TYmW0R6TzoS2bZFDcrDLFGwWOmui99zpN4NWRcj016q0hsngiwNoFe+P6z02r2Cr2Z0mYRpEYv00uJezjgG3KZeD0S0HW+hJ5gGF6ydnk6iyLY+x/GbaZTJ934NJzH3j7sIAwohxPiBBmUutgYIDTkbK436OcxNVfgGsTVw5XMhKia4Lqat2uLCZK71VRW7x079Dkul41VPqRPA/EDnonB+UkttfV7pR5CQqFKUX2MEW2FypuBSSuoMgJ6ir6mw9Mkd9gg9mgM/XOmeaBsg62piduWIVoUmw4ndBgf0BzVvmTdJo65iKJpxs+Gpf3O0OIkbyXKw== 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=5gKXJNnGK4THNA3xxalpEvXt+TghwU5wmYAMcedYyWA=; b=Bf+gwcNeXu/e7e0NYMA9nMtZfusaoV41F4u7q+Ep/JRKftdaMomCdl6GZhhJadxT+V5c1JEAimKGvXMGwJ/vD71KVUhmqwptivQGwwMgJgZve8u/pJX7m0QFA9Y5GcHCrQue27LuUXehFDTzT1f810pmHf+Wfu6qJR1suIskbNqqhzvgPAxRM5Lo60/2GxPifVQVd9bgTXKc5NKV4ZQ1w6cJG6Fd1Dm5Tf/GKbASclj7WxVxgpEAyHqFW9d8+LToeLhu+AhPw+QdfRJov6ltVEiLuUEDKmfU2csWZHGdmcpFUz/MbbQcjlvHm/9VAfCjjUCJnIDmX540XoNq8ypw9g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CO6PR12MB5444.namprd12.prod.outlook.com (2603:10b6:5:35e::8) by DS0PR12MB7725.namprd12.prod.outlook.com (2603:10b6:8:136::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.32; Wed, 7 Jun 2023 10:55:32 +0000 Received: from CO6PR12MB5444.namprd12.prod.outlook.com ([fe80::21ef:9d59:5b2d:f1e8]) by CO6PR12MB5444.namprd12.prod.outlook.com ([fe80::21ef:9d59:5b2d:f1e8%4]) with mapi id 15.20.6455.037; Wed, 7 Jun 2023 10:55:32 +0000 Message-ID: <496889ff-dd61-51af-c716-b9b9e2300be7@nvidia.com> Date: Wed, 7 Jun 2023 11:55:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] gpio: tegra186: Check PMC driver status before any request Content-Language: en-US From: Jon Hunter To: Prathamesh Shete , linus.walleij@linaro.org, brgl@bgdev.pl, thierry.reding@gmail.com, linux-tegra@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: smangipudi@nvidia.com, Manish Bhardwaj References: <20230606071717.8088-1-pshete@nvidia.com> <56dcfcff-3b36-25ea-eb72-2b9d2f8f3883@nvidia.com> In-Reply-To: <56dcfcff-3b36-25ea-eb72-2b9d2f8f3883@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0232.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a6::21) To CO6PR12MB5444.namprd12.prod.outlook.com (2603:10b6:5:35e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR12MB5444:EE_|DS0PR12MB7725:EE_ X-MS-Office365-Filtering-Correlation-Id: d67cb3c4-90e2-47eb-2cfe-08db6745b6a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /KVwIlTCQ7sNKND4xn4anRWQwgXxBAAvY+4TM3TPc1zFT5gJvix5p+tj/gdm2Am2i4HogbCRixgdvVOdQSOGWfBb+2GcqbOr2MzARMRAWmLzyLF2jSq7TfXej5ArtJZiiOC0/iHsjsmxutiOGAk4cC/y5aN5PYGGSU1rC517f6tkoPgA/71k4DF9HdKniY90hIoIZfuFpy/6bLqGtD/e5rbEtnFXTPwObGcTtD2+gRoHYqP8YwwTLUhwzV6n2m5vump7z3q9mHcV/2hzjLde+e8S0Vvfcxnp+thsEK+YoEJ7MN6T0HgiT85VZ6f2aJwfY5jirfA1mbLuNugDiQUDpWjZVSdifbIjWZrceFnWpG/2DnheHUCsQkLAuTRfY2A3jooMgXhN96BMDuzEguoulMPNjJrjAL7fPN38bsQDC+2enMLSFdKsMDypcNAhaiGGAFVopkU3pE/wjuJNvt0beXoPEYqFb4rwn5IYkrQgPaMW7pDYzXBt4ua1kIwZ/jZ3ZAeBkRB4VTmqcC/P88mFio7AGcIXYIjbGxhwgwNq1QAf695I3DmsQpU8A1jx4PKDX4buUYMwElcnjmAlCxDUKmRGNGdPJN3KKM1bITjXN/MPM+5uTNv7rlweT5mEE0Ajs//pNSd7NmOV83bcQQM9hw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR12MB5444.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(376002)(366004)(396003)(136003)(346002)(451199021)(31696002)(4744005)(2906002)(83380400001)(2616005)(36756003)(86362001)(38100700002)(6486002)(41300700001)(6666004)(5660300002)(316002)(107886003)(8676002)(8936002)(478600001)(66556008)(66946007)(31686004)(66476007)(4326008)(6512007)(53546011)(6506007)(186003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UGhqVlUyd0VHQ20xc1F2ajc4Tmx1S3F1eXVzQU1GeDFWQWd5L3JuTjlYVjNC?= =?utf-8?B?bWg3NUtxcDNrM0xFWU9zZUV2ZjRiNGg2WnpEZXc0QzlYTkdTaEhLNUNTSTVZ?= =?utf-8?B?TG9zaVhacXZRTUhnRTlrL0wvUFFmcFQvMXg5OWRYSEhoRThIc1d4V2hjbytq?= =?utf-8?B?ZW9rU05XZzNJOXFIQmZYRHZZMzB0REdyS0hpNTU2VDdoS041bEVxa2RiSXk2?= =?utf-8?B?Wjd0RFNJdXJZN2hwNGRKVEQwTEF5N3lxd2c5QmxteHRVeTlac1lmZjMvcnRO?= =?utf-8?B?RVlUWjR1aTB1ZjlMMk52K3FaZzB5b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WWHNzMXFuUUJRRkx6aFhDWjgzU2pFTUhtTEp4bnlTcklJVksrUGNVMzVn?= =?utf-8?B?Q1ZTYWV3OE56b1NMblJtdHJ6US8wM3BVbjFxelY0UlBWUEx2UVRSSVg2WmFj?= =?utf-8?B?VExqaEpKcms4UzF0NFpQOUU3SldnPT0=?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d67cb3c4-90e2-47eb-2cfe-08db6745b6a0 X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5444.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2023 10:55:32.0166 (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: 7ltX42xOptV7xjGEJobxZ4xpPxe/h6eGiv6zdvbjybPu50F/wtBO3iohxvBXhL8tSenqysf/59GQ5NurPbMLKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7725 X-Spam-Status: No, score=-1.2 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 On 06/06/2023 09:53, Jon Hunter wrote: > > On 06/06/2023 08:17, Prathamesh Shete wrote: >> This patch fixes the issue where even if PMC driver status is >> disabled still we are trying to look up for the IRQ domain >> that PMC driver would've registered if it had been enabled. > > It might be clearer to say ... > > When the PMC device is disabled, probing of the Tegra186 GPIO driver > fails because the IRQ domain that is registered by the PMC driver is not > found. Fix this by checking to see if the PMC device is enabled before > attempting to lookup the IRQ domain registered by the PMC. It could also be worth noting that it is OK to skip the PMC IRQ domain in this case because this only impacts wake-ups and not GPIO functionality in general. Jon -- nvpublic