Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp366940rdg; Tue, 10 Oct 2023 12:37:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4ugV2+nQAd0EBsWDyOz3ZzQRpVJ8b/JIBFE5Rd39Gz71lLcPBDTsjAQpHRu7DshxgY5ez X-Received: by 2002:a17:90a:b00a:b0:268:3b8b:140d with SMTP id x10-20020a17090ab00a00b002683b8b140dmr14478656pjq.35.1696966628057; Tue, 10 Oct 2023 12:37:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696966628; cv=pass; d=google.com; s=arc-20160816; b=g7IF/N+UwJr5vh1ZS91GfTUTB4rZF5kfH99dCbtp1fGlHhL8NFOj8J8vJU6f7JLkS8 Ysu4vbBjWeow6LsUt8qu24cARBGD7mwereoPjvotwWck9TqWQIU9kwjjqyUWafuhArwy /+Y3eC3SyMqtav73gv2h5mla7ep7mwqKSc0a2rt8N3aPD+6AHm0vLQC23n8kaWO9Js39 vP8DdKZ1U/+PwwdTDnh2bbfL+yPC2pz8WbAzhip3omrCcfo3jTcVmTYOIO3j//Pld6ls lrwXsw7O5Ra0pUN2VOY1SWkkANyfu8cDug6HCpDsRiHMFyg6kYATt4CGWc/QnuW3jQb1 Swog== 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=9iBbhc5XZGiZvErvFECEn1G5jaU0Ypb67jI/pG1Pis0=; fh=gFZdaDPDi9xTI9c+2i+uJhnwneUNEgRtnO14kpUZJO0=; b=SckkRAKB/Le7OqQ9nAg9EkKuWZX40DQwScN+uGGPvIFWhvtzNpdicvpFAfaGFPLFon /DhiCzWJcTsAlz5keYA/p8VXGgsaaXMeaqSlEAh4sN/cB9S4rIAW+85q6gOeE6iJR9AN I2Haw9DLUNJsVwRC0RdNljgrh6Tcd8kNnCgmzMQd7Z3QCco2jn3ojwl4rJ91SEUa3u+V axf8LZejuritnZEiKi3UXLDcRvzaJ8yUt/I1K+G8VKZA9wNP3J8G+dJBsRVIFmR/CeKH rJginZcmA7oIXvNXhxKfRV8aeCtqhSDxjLphtd41qxZD31GSVJoqb90XVkmT/Gojaair BOLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=tVqyThWC; 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::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id gm16-20020a17090b101000b0027924ff5de3si14672579pjb.68.2023.10.10.12.37.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 12:37:08 -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=@Nvidia.com header.s=selector2 header.b=tVqyThWC; 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::3:3 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 lipwig.vger.email (Postfix) with ESMTP id B38968038B33; Tue, 10 Oct 2023 12:37:04 -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 S1343591AbjJJTgm (ORCPT + 99 others); Tue, 10 Oct 2023 15:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343892AbjJJTgj (ORCPT ); Tue, 10 Oct 2023 15:36:39 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2074.outbound.protection.outlook.com [40.107.93.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7358A93; Tue, 10 Oct 2023 12:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WS0UABy++OvA27+cpagYWdWWMhbLud+HMJLCTFyYjTkkmi/zMc+W5qDR/jKX3BZS3frMVyJqfob4/zA49FapNuu4NvPQm53fK5RMlgEF2STKC6ALfZhfjCwphLuOWs69sW6X/q3O89tZC9R3vbiKHXygo08TpvCP8agy61IXtxvFfRn1TGgwQd/ZcfsYCut/4roVbRXVpxmIEzZgBC6ay2pE/57ol6anWe3anv3tCVUWDlcvdpCraJeVmwEjwecr9si4Jy1UqqQpFiy8U7JIQ/EAXhJ4u2nwKV9T2gisXmQrMuycTpWMlfoz1rw+ZsEqnQSli6hUkk8aj/wfWBt+7A== 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=9iBbhc5XZGiZvErvFECEn1G5jaU0Ypb67jI/pG1Pis0=; b=I4RmUX0t8jH2lszpeWeEqrjSQX6mO3/PCcnMMqRYUpS+MUTfXelXlbzOoZNt+SOG6J8mImSpmNekmqbjqP5374A2T728lEMMlB6ssnEajO8vJygnVEes7SIsfTThqFpkLxAIv6v5ugiHQM+bpVztDIJF0mhr7Q0XOWCEGkoQGRVVfmeDGpoXnwHXGey2f4bj+nSVb51yjz3iyClouyO2urVsw3mAfoWWcCgoGSC56t4GmBbkX2BxueNKEWgluWKONVhhDuQ02jWMHiw6rSmxyxKO2+lZlskIUlVJRiDW0rIqDa/d52bIUhWubUW7dUnB6WL9KbJJUQLF9SdCZGP8cg== 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=9iBbhc5XZGiZvErvFECEn1G5jaU0Ypb67jI/pG1Pis0=; b=tVqyThWC1MtXRz9A8EFKHSurOEMFBKjtxwS1BDgPFQYzKGLzn29o3P8X51sxLKOOXe8lkRwzYxJAOL0mQPeQdk9qUJEFUVqGIkqEUmzYPsmOoyUBlpx3aeIfKaHEsogCXH2KZSZy3B1hQq/fCiau+wgcKEMar4MtSwoDNMYGX1LIZskEDN52OKf1YabfARYjNsk6J/mltyfCZMfQnADlkmHRqxz9213U5wAszv7FStRCkEU9wH+GdA3a8nqyf1pu750aVPcVHyrppGNjIYEqyih3VOwAA+huUTs/LKYU74Mf3q8Z+9Cpz0G15+XLQZmaD5D5UCRuPd3/tOhaw17NaA== 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 DS0PR12MB7630.namprd12.prod.outlook.com (2603:10b6:8:11d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Tue, 10 Oct 2023 19:36:34 +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.6863.032; Tue, 10 Oct 2023 19:36:34 +0000 Message-ID: <0db37cd0-9cb9-41bc-c2aa-0a01c0295ed0@nvidia.com> Date: Tue, 10 Oct 2023 12:36:31 -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 v1 4/4] hte: tegra194: Switch to LATE_SIMPLE_DEV_PM_OPS() Content-Language: en-US To: Andy Shevchenko , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, timestamp@lists.linux.dev, linux-tegra@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Thierry Reding , Jonathan Hunter References: <20231010151709.4104747-1-andriy.shevchenko@linux.intel.com> <20231010151709.4104747-5-andriy.shevchenko@linux.intel.com> X-Nvconfidentiality: public From: Dipen Patel In-Reply-To: <20231010151709.4104747-5-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY3PR04CA0029.namprd04.prod.outlook.com (2603:10b6:a03:217::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_|DS0PR12MB7630:EE_ X-MS-Office365-Filtering-Correlation-Id: 8552ffe6-e341-4c89-35ea-08dbc9c8364a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O/2oe5jaUBBzc/OeMviWrB53qpqF9H2pxkEokKZRo1QjgmnUtoyssRZdVBdyr/1KTp9hLp8h5vigPppeZW5QWt74VgQwRXFT++7tDU1XT857eQCuzCU6Z1wzF8GoNd4Dpbmpnhkc0ulRblY+Pqal6N15ZeGsSNQPW6huV4VsrcVr77WP4Or2koCRtP1irk4BpTY+UpSBg6Gt/FS2ghO+Zfv252DAUMDhJUD2eF3iYSyJKffRqrc0DFeRSVf0GmLejSmMiNEEIPGKRJb2paZfndRJpKLzOMLqmDfDxapfsVhADakZZQPTRB5QfKymYbrOvANVidBjqQ2VMM39IxMcd55VkSzMAYBZSG4OLQMq0ie7VA2PShO/8JqV7KQ8VLggiSCSa9Inq/mcZR6y0UKDefyBFVjVroihNJromVugHkbBhW7Om1yA+Bd+7Bl/iXbuo2Y/DVSJR4undEd3/PvtPA4iQrcJkIlLzbNiMN8K/wHc7bV4DkITh5/5PjsL+ofJVfMFicjlVIKrT+bLI7M7e9W36yP5PYi3vzNVLgKfRNionjYSZiSjye+jIPMirO9XQy0uIlEfBBWcwEH/aE907Y7K+S8MP4WseUKSGnRbaNVFXhlc2ydVezzHwSM/IL73S4Za64OGBNlx8VdbKcUJEQ== 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)(136003)(346002)(39860400002)(396003)(376002)(366004)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(107886003)(26005)(36756003)(53546011)(6512007)(2616005)(83380400001)(2906002)(86362001)(38100700002)(478600001)(6486002)(6666004)(6506007)(31686004)(110136005)(66946007)(316002)(66476007)(54906003)(66556008)(8936002)(4326008)(8676002)(41300700001)(5660300002)(7416002)(31696002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eHpXVEcyQlpzcnBrbVlBcjRSaGt6dmhJV2d1bWsyTmgyNTZhM0R4SUZ0bXl2?= =?utf-8?B?RnpqNzc1Nll2aWdkNzRUZ1ZFVWpwaDN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FBlc3hFWmFaMnZMdHdIam8xYmFoM081bG1ENTRuYnZiK21UeW16OUpFb3I4?= =?utf-8?B?eW5EV0w2R1o4dWhKck9FbklaVkorTS9EVlBJWjBnZzl1amVJUzU1WlQ5TCsr?= =?utf-8?B?cUFPdVgzR2p3N0JkdE14c0tQSXd3OWNLU2lHME5IaXpGTzhUekFaUHpHbUlD?= =?utf-8?B?NVRncjJUcE11eERTWGQyNDQzcUI1eWVxVXc0RndJUGxkb0lqMzdPczF3NCtN?= =?utf-8?Q?rpSDGaFcB8Fna6AFig2X6agmf?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8552ffe6-e341-4c89-35ea-08dbc9c8364a X-MS-Exchange-CrossTenant-AuthSource: IA1PR12MB6604.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2023 19:36:34.6174 (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: f3Y+Uu5leruoJuBj4v3OaM2LMICERVJ588ECJpG0/xKQpNzkgwLmeCpsC3mu6yg8A+o9zRW+NigJQ5uODsUswg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7630 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_SBL_CSS,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]); Tue, 10 Oct 2023 12:37:05 -0700 (PDT) On 10/10/23 8:17 AM, Andy Shevchenko wrote: > SET_LATE_SYSTEM_SLEEP_PM_OPS is deprecated, replace it with > LATE_SYSTEM_SLEEP_PM_OPS() and use pm_sleep_ptr() for setting > the driver's pm routines. We can now remove the __maybe_unused > qualifier in the suspend and resume functions. > > Signed-off-by: Andy Shevchenko > --- > drivers/hte/hte-tegra194.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c > index 30ef1750a9fa..30fa7c0a555e 100644 > --- a/drivers/hte/hte-tegra194.c > +++ b/drivers/hte/hte-tegra194.c > @@ -815,7 +815,7 @@ static int tegra_hte_probe(struct platform_device *pdev) > return 0; > } > > -static int __maybe_unused tegra_hte_resume_early(struct device *dev) > +static int tegra_hte_resume_early(struct device *dev) > { > u32 i; > struct tegra_hte_soc *gs = dev_get_drvdata(dev); > @@ -836,7 +836,7 @@ static int __maybe_unused tegra_hte_resume_early(struct device *dev) > return 0; > } > > -static int __maybe_unused tegra_hte_suspend_late(struct device *dev) > +static int tegra_hte_suspend_late(struct device *dev) > { > u32 i; > struct tegra_hte_soc *gs = dev_get_drvdata(dev); > @@ -856,15 +856,14 @@ static int __maybe_unused tegra_hte_suspend_late(struct device *dev) > } > > static const struct dev_pm_ops tegra_hte_pm = { > - SET_LATE_SYSTEM_SLEEP_PM_OPS(tegra_hte_suspend_late, > - tegra_hte_resume_early) > + LATE_SYSTEM_SLEEP_PM_OPS(tegra_hte_suspend_late, tegra_hte_resume_early) > }; > > static struct platform_driver tegra_hte_driver = { > .probe = tegra_hte_probe, > .driver = { > .name = "tegra_hte", > - .pm = &tegra_hte_pm, > + .pm = pm_slee_ptr(&tegra_hte_pm), typo, pm_sleep_ptr instead? > .of_match_table = tegra_hte_of_match, > }, > };