Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp401886lqb; Tue, 4 Jun 2024 15:12:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUWOwcn3OUdLK0qBi7rhbpV7/RtSXaSj9le19OWqRKNl0ryMAo9DTiZiBB875TXsuvVI2PBSF5ANtk9Ho8qnIgV3eS+o7S7WNSRMtOjw== X-Google-Smtp-Source: AGHT+IHOBeChwWVt7iJb4rdIsyf5WFOfWfnz88+972XKeDyMmBP9x0CB3Jaolbo6daF7nuLrskdV X-Received: by 2002:a05:6a00:811:b0:702:72dd:476b with SMTP id d2e1a72fcca58-703e5a0baf7mr841859b3a.32.1717539178879; Tue, 04 Jun 2024 15:12:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717539178; cv=pass; d=google.com; s=arc-20160816; b=XAIQPAYthiMpzElY2ed3SASOUjF119XFncAR5cicmjWWNosyKsPvw2cRsQBdot9pro +mH89SHex4viSnQtQmG6D76qihWiR433OjXtV5/4UbQfxRLKJaq5JBufF9NfOo0nv8Cz Rsva/LgsQkYuD6VvmrJRuD567pBkPEElDcy5YMa/05oQOK+jLG9ATjZDQb8viubuGI/+ AZLaX1HIkvs137SMHrenJOnNrANZrOsBmNIQl+GW5TEnhVWBmWGSIY/ygRcdbEMOvUnE uSUkXRYgcvHnrP26sY0qk9Ic2b3MRs6VwSa09ULTy9jaBCyLX3NKIwUyAKmzCHn0KjYt YQnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QhSpPJovMRlyLJomd0pkOMQykHbgo++/0yNKVY+SFWE=; fh=d6196vFdS6hzIOhlYZpI1Z2XTAuttA9qmFnchOfp/0w=; b=gWXqJQRtTEny1CHKUXXbMtpUKBfjO8Fa3uMV3+LJTxhY1DRUNuehojb00GPcFEuGIR zNq72yP8aW1FJexrtg69OflL+/7Z4EbWlDtb3GMq47SDJDCElm2vCIZattzwFbBMGzsv koI4TcWC95Ju5iDAsmGZTOyqjQLVGfd+MAdfIy2bhwuF21+mLEVXl3dtuMOn3nZxgf1U L84Cs5ygDRHI4nJCCwPbFL1uqiKyEx17xlDcrGpC5I5qksOEAsZ1NCaPI1ShEFjI1Fgg E1YNlenKQG0zrijqWw84jVCUTavdZOXH9WIwoaVaFPMg60RwHP3EGDWTWcixT+vHtJce XJiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=O9Nl5ed7; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-201383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-702425e3a2esi8948988b3a.54.2024.06.04.15.12.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 15:12:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=O9Nl5ed7; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-201383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DB2DCB21CD9 for ; Tue, 4 Jun 2024 21:11:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B316B14BFAE; Tue, 4 Jun 2024 21:11:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="O9Nl5ed7" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BCC7140375; Tue, 4 Jun 2024 21:11:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717535501; cv=none; b=Y6S1rTzmyzui4aG2YLrR6PiyIVnjghaku1Eiaq7w9r76lUmVjNnPCah6QfmwmVDfQK9r6HkZIbts77622RKwBgZ3AcTkspc0vwCN6v99wZo13SSZVTqvOCvQHSea1kxCMStR8Z5MadtA8eV2cp7UkoeOV9H9RpKH1/ZRUqvnp5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717535501; c=relaxed/simple; bh=EepEPX28KW8cIvWzQ83MU1wIxpKq/a8X93eGHjSQGBw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U5nGHz0k8jRiZxFXBW22PifRMMyUqJlvbNEYpKCzC3IXUtGuqL2nmhc+nCP89Sr6z7lrGTNtEEkUFWqM/B+5i37/8E4cqcJnxuyzfzUyOLlyudcNtvqQgjzOgejfB6mEELiuyfGr7ae5LVl9Tc+Ig2fno1XkXyb6iP55eJaLn04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=O9Nl5ed7; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717535500; x=1749071500; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=EepEPX28KW8cIvWzQ83MU1wIxpKq/a8X93eGHjSQGBw=; b=O9Nl5ed7FkGhsZU/nst992GgsQuuK0SW9KF88ySOtoL3B2Exsf99tQ4h 0gukoZmp5DG4EjgUZyxEPJ4prl/XOnu7SygEELf7jXZOBzXCoo5v44LD2 CyMVYbnbNz1+YC9GEZZX/2y4Z63UnuCv8cgxn9cEt+FyICPd2lF7QIpWt mNS9mWJYX0ikhnxwEtNd91jnHWQc5DL/pvFm+Gtmo/4gGUuKPRmWj9gBd 8HMkM6RUDX8TqGCvmRWlQIbjup9RhYUO3z165CSmS2f4/7opek6v6SplR 56T+uNX3DDAo2EIAJJqcSKGs2inWF5kgPrIoKNEWZjWtDPfieRCIM2r9K Q==; X-CSE-ConnectionGUID: AgyWAgr/QQ+VRT47IIg8zw== X-CSE-MsgGUID: xURqZQ33RmSWxoe7XJcu4g== X-IronPort-AV: E=McAfee;i="6600,9927,11093"; a="13955526" X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="13955526" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 14:11:39 -0700 X-CSE-ConnectionGUID: HgdQjrOIRQm89ArG8EhTAw== X-CSE-MsgGUID: EfiKCilPSCK1vmPzNFiB3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,214,1712646000"; d="scan'208";a="68508830" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2024 14:11:37 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sEbRO-0000000DfIN-2tX1; Wed, 05 Jun 2024 00:11:34 +0300 Date: Wed, 5 Jun 2024 00:11:34 +0300 From: Andy Shevchenko To: Markus Elfring Cc: kernel-janitors@vger.kernel.org, Chanwoo Choi , MyungJoo Ham , Stanley Chang , LKML Subject: Re: [PATCH] extcon: realtek: Use scope-based resource management in extcon_rtk_type_c_init() Message-ID: References: <532aa50e-b8e5-4e8e-a2bd-a05fd81274dc@web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <532aa50e-b8e5-4e8e-a2bd-a05fd81274dc@web.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Jun 04, 2024 at 10:06:14PM +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 4 Jun 2024 21:55:08 +0200 > > Scope-based resource management became supported also for another > programming interface by contributions of Jonathan Cameron on 2024-02-17. > See also the commit 59ed5e2d505bf5f9b4af64d0021cd0c96aec1f7c ("device > property: Add cleanup.h based fwnode_handle_put() scope based cleanup."). > > * Thus use the attribute “__free(fwnode_handle)”. > > * Reduce the scope for the local variable “fwnode”. > Fixes: 8a590d7371f0 ("extcon: add Realtek DHC RTD SoC Type-C driver") The problem here is that the above mentioned API only recently appeared in the kernel. It will be impossible to backport without backporting a new API, which is usually contradicts the idea of stable kernels. That's why it's better to really fix without using a new APIs and then convert to a new one. Hence needs two patches. -- With Best Regards, Andy Shevchenko