Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8238425rwi; Tue, 25 Oct 2022 04:22:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sVo/5Gc3WEZvQDVUcyzPIjWulWK82e605Q4Gx7rOGzDTUtF4bVilvbgC0IT/63yIIcFMR X-Received: by 2002:a17:907:1b0e:b0:72f:9b43:b98c with SMTP id mp14-20020a1709071b0e00b0072f9b43b98cmr32213234ejc.710.1666696955915; Tue, 25 Oct 2022 04:22:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666696955; cv=pass; d=google.com; s=arc-20160816; b=G3CqDmzB4lJOmLYnGFmPZMH8ER0M5AbDFbm2vja0jirm5Xd8ZP8SqNk8gQORKLqPi5 u/t33tvdNgxTqqxmxTy1j30WSl7AmZni8/o1VBBIL2b/re0OyAb3LUMeUl1X+9rBxbt5 5EKa/lav0szPpKfeKu69LLD6Pc930bAZLvBPp9cdYWIpGNpUBYQwNohvvkXPikYLlnOU KHE3eZzdnfXDOXuZ1s8cLBMT1fBk2/UMfiCfeiGUqzbDBMfSy0O885MT9T/dhbO1P2uU qEvEg0ut/aPtuy9oxD1jlax/AIBwhRc0fxI5p/HEHqHymrFf/3mksGC9vpxat+MZQ4kd EU5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Lp5ftaQ+w+elr2TY1C3fPhUbV09J98BAZIYwBwXq6ak=; b=ksCCmmaSwmkonGoJIqqsuYhBx4HGWM43jiGlw0SwUf4KRGiBEZ8+ZPZwmeUnwzMQwc cIuM4zo8zA+pghs61TH10BsSx03dbczWv/erlgqR8i/0qok1WxFCtGd5mJ1yO7shY+La JX1+Pp9LD+ytBXnzw1+XRj20gg0eE2z0dmtFu4SSlKp7SLQU4q4UJPyHfixrx2QYLGPd kTa8GKDUatvciFe54Qb4Z1AWsjbHklimU1ySgAdPo15A4/DsxsT5/2GP0wGAfIoBXCDm KF1voAPpLfMPNPV8XvMPwXnzRbEYMNShXFmJrVa63p9b69WPgXJbkksjQw018MPHcFYV nIKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=e4VxufmA; 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 m11-20020a056402430b00b0045d06ea5596si3128044edc.26.2022.10.25.04.22.11; Tue, 25 Oct 2022 04:22:35 -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=e4VxufmA; 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 S231905AbiJYKcc (ORCPT + 99 others); Tue, 25 Oct 2022 06:32:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231519AbiJYKc3 (ORCPT ); Tue, 25 Oct 2022 06:32:29 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2053.outbound.protection.outlook.com [40.107.93.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3491DBBC8; Tue, 25 Oct 2022 03:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f8VDZVMRre5y1oWRWNeNvlFc02S5JSvyqYe3SUCs3Y2tjLvhJJ4utApAvYHfROZ0rK0XFLnYrtBNNSj/ediuVW1/hDsGldbcEbfvYgamyRR909KmRaHI84LcCHDzgKGey8F9Kc/YgDJgaua/VHpCT3844hAv+rmtmAp7mrjgLtJ/yq8wldeF4RX5NSQMh5tVnX3wYTrMr9wTrap+lQRjAbmn2ALPBrOtQ2cKDykNrwVe7KwqJOOnsT9PgalKYTQTuh7m39kAec9M/c8QTDEho3xsA9d37LuXurj/wxU3smJ94qIue+SCBeGl5lsPaKjBD+pdAJ7OOwoBFX2bY2uSsw== 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=Lp5ftaQ+w+elr2TY1C3fPhUbV09J98BAZIYwBwXq6ak=; b=k6rFhJs5QAg6/imx+pMhm22hVrR9Xuaa0UIqlf/MqSkxZIK5qn/CHei8QGN+8HhskQ541qvVD2/4ii5ub1AnPUCLPQzW4AmPmMzNhjBoQIfl9WMyWdV9k5fZAJ+grU4HERQDKQ+cluNk0tEF0TtmdtXj+rHBVZ6s4IOmvh4w/p3MB2e4/Z2kgyumaopvpR775Pedty3cF5FMMeLscFU4lCsGZ6eGTP3MopPVyK4SRRo9PHS0K+pqiQXXXroVrTULgy60I5p4v64ePqWpk7DP98mfzRgaCTILTzRwb1vHuUZp8ORPe9SpZXfZ9b2AD+H7j0CR+OpiIAWdHLrVVcHv9Q== 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=Lp5ftaQ+w+elr2TY1C3fPhUbV09J98BAZIYwBwXq6ak=; b=e4VxufmAChSgH+estsREDLqeO78meX1GjKP4KGDOAkjInUzfhDZ1X7ij6UQqPsLDI5BFzDPZ1RY+PZ60ln5pacJ+0oMaIBIMu4AmzAfkL88/YiuKOV8ITbrEX4S5EgGSyOCy16Q8B0dy1nA/7WJz8qPGB/chhHen43vkIYPWxi9zT3mW77HGS7nB4qEMeIWaCCBZH7t2ndVgxzoX7Qbq/9CEZE5XWVlDemfG27sznBU4mEl75mgJesMKMFhaXgCVXlUuhFsHh61HDy8QTSOR7Xj4dEn4R4rk+DhUU0rvDf85Ta06lHVgCjfGMSfnYKeeParg2abpcA4XJEHZFrq/og== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) by MW6PR12MB7072.namprd12.prod.outlook.com (2603:10b6:303:238::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.32; Tue, 25 Oct 2022 10:32:25 +0000 Received: from CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::4ff2:d93e:d200:227e]) by CY5PR12MB6179.namprd12.prod.outlook.com ([fe80::4ff2:d93e:d200:227e%7]) with mapi id 15.20.5746.028; Tue, 25 Oct 2022 10:32:25 +0000 Date: Tue, 25 Oct 2022 13:32:17 +0300 From: Ido Schimmel To: Daniel Lezcano , vadimp@nvidia.com Cc: vadimp@nvidia.com, rafael@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Machata , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "open list:MELLANOX ETHERNET SWITCH DRIVERS" Subject: Re: [PATCH 2/2] thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function Message-ID: References: <20221014073253.3719911-1-daniel.lezcano@linaro.org> <20221014073253.3719911-2-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: VI1PR0801CA0084.eurprd08.prod.outlook.com (2603:10a6:800:7d::28) To CY5PR12MB6179.namprd12.prod.outlook.com (2603:10b6:930:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR12MB6179:EE_|MW6PR12MB7072:EE_ X-MS-Office365-Filtering-Correlation-Id: ef4fa522-19d5-4638-6a6a-08dab674357e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hwf1BSQDKePwMIjQvEEACu3wOAKwkTBgrVTq7bp3ccQlIMl6/qvj9Dhm6H9NU0FuJVNnYKMDU3DNFXNoF1+N/XJP3QKVRJRFBbN3cUrEmoL3HKfDPxBE1XuBltlMua17bFEQCjRiFUFXL1aLwLxhLToUNt6W0Wk4pvoxzVchSOoWuR7mIxqdoGfWMFMQIYHbLLxI0zucE/yR0qwgMiDTahKy/AGcfSgZoMvq40PfD5RzjlDcj/sKd1y+NRlnoXUQVmPwxlR21TEagECXJd2gPCyvQns3QJGvxRGWa9pJgy3esYP+Jez03tq2vbNA9HXD8rGnt/c457A0G2FcAbAXtS2vj8jM5g13RZq9TV5NJ0X9CE/V7QVVgoeECiCiJU/Y4Md9D92t0IHl7gkiBmvPMQL9ZAIEoenvZd316SKvXQc0uFOjESRkqwS/CrdrtH5hvVpFvMLkRInETCc7Haq/3Td/9QzYKyqeMap4jlFL95vcsepkeA1cwX+QCClQuSww7pjyqLG+JQwdIIKtp6Qusr/0o0BU5XKzIIZiq97wN4n2J6lf6h/IZeI9ORtB+UvABukg2383qa4nIFLsE1K2t0itklNZxrXpql7YSKH5vxAc48Cg7wxz4vmV65JMTyK8osv723peLrdf5izWrReu+cAr5aya8chTINoskvu4EcdO7debl6WE+De10IvPwJvjS2+mny1OGziE/UQfhVjq4aghimCy7ofQfq+FBoBRTW1mKDlJmfNwTi6hAX9s/uDg X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY5PR12MB6179.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(7916004)(4636009)(136003)(376002)(396003)(39860400002)(366004)(346002)(451199015)(5660300002)(186003)(66476007)(2906002)(6506007)(38100700002)(26005)(4744005)(6666004)(316002)(6512007)(41300700001)(54906003)(86362001)(6636002)(66556008)(8676002)(8936002)(9686003)(6486002)(478600001)(4326008)(66946007)(33716001)(41533002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TTNznXGWXiE5f0fi3znFI6XcDJfRvxN4SuavNvpOsAT4zM/alVv4c9cOBh4N?= =?us-ascii?Q?DF5d7HiIzmzUMBEhNncUeOdLIfYuk8gX7jZeAfE9n/8hVf2sUNm3EGcKAPH9?= =?us-ascii?Q?I5SZMB+OYtB6l9ZU2XXLDZamDexWM/PNUED6y1bvpTYAganl1a40cAA58IP6?= =?us-ascii?Q?c5IACs6U/BytKgD1cllLlnh66Kz4vmc/VPyAwSPrYb9QuQ2DkMGl/a1xjmtD?= =?us-ascii?Q?dJi33LZjZgs2vTCCziL8pkw8BcrC9/XZ0EgxYcWV9hQ3mslydUy3knzyKvMF?= =?us-ascii?Q?FayLYHzzs9BsDplqszO/C4vRFSDqQbsTLvtZ/CU97FFQ4kfulIrh8RgxRUFx?= =?us-ascii?Q?l8P27VaIKNRwABjxSUQ/mnz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?Q?qIzcrVufK/Dy5noGna3BBk9AMBAZVjZ6qezwSatbve6w966LGtL7536agB6M?= =?us-ascii?Q?1OK4XVBHESijblMAfWnqRq3QqVwx2XeXJ5FT5dfv4rfUkZLD6giaAMk3Guho?= =?us-ascii?Q?YFDugsd45ORlbEz6/AM3u/jhurUQJJphHAv2GDcCOyJGMsakpdxSPNAlH6ju?= =?us-ascii?Q?p1IdYJ+U42YeLzAImJPLSgulfvV0SjejIuqPqCbhTPmvX/k9owKX/m4gx53H?= =?us-ascii?Q?MKHCafsvxQaS6oNiEca+m3Gs5nRkVHqDzFZLRkk3CKydQjUgiRHQT0X78yTZ?= =?us-ascii?Q?2+X2BFlx+5VjlD973lwcLhkkKWqAkHDj+5pIDiSR?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef4fa522-19d5-4638-6a6a-08dab674357e X-MS-Exchange-CrossTenant-AuthSource: CY5PR12MB6179.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2022 10:32:25.7536 (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: fycMITTjiygbn5vcA8Sj3taYkFiJxKhw57sq3AECHguNRsWXpcNcHcYzo00+nvraaibaVctIq9jd3bffKMOJEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB7072 X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, 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 Tue, Oct 25, 2022 at 09:02:23AM +0200, Daniel Lezcano wrote: > Because I hope I can remove the ops->get_trip_ ops from thermal_ops > structure before the end of this cycle. OK. Vadim, any chance you can review the patch? > May be you can consider moving the thermal driver into drivers/thermal? I don't think it's worth the hassle (if possible at all). In practice, this code is upstream for almost six years and IIRC we didn't have any conflicts with the thermal tree. I don't expect conflicts this cycle either.