Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp293784lqt; Thu, 6 Jun 2024 04:02:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSZ3dBizAHC3bQdVO5332EYoWBnD7FcplngbbYLom/7gIYcaEMyuDLJtG5F6yLUFArhFm3ThbB8Dt0reGJDNtO3KtQLfPJbjDLl0evYA== X-Google-Smtp-Source: AGHT+IFQlnqTFWQ8QymPUlu37A6l9gySeaBuO2SHZAVLMM5/i/VVzxnVlyPHBf3yXDBZiqsAEfyL X-Received: by 2002:a05:620a:199b:b0:792:9fb4:9961 with SMTP id af79cd13be357-79523d5bed7mr706336685a.45.1717671734335; Thu, 06 Jun 2024 04:02:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717671734; cv=pass; d=google.com; s=arc-20160816; b=z01aVB805XA4IvbCKuXoSiTDjDo4uhfiJaBs9l3vRpcro6a9Qdkor5fVNWwEnfE6rP 4NCDcSzf3Ma6TEb1hJHFFB0ujQ4+sDJ6Gyb5zE/Eg/wMfmsYNvRE4JvsmDc3SedQMQpX zFU5ZtJgWCj+z/bHzNtFiYALoWA+JRCvqlnUi7nlTF5c/F1R2FwU6iWagytq2+xZyqMn q+N1r41s3fXWmrj6kYtgHlxenB4Yn6vWXJ0nvwYOOkwOH8P6PvmgAAZIerkNKpylVSNE wkxIlpfuzMv2Lw1o8bsKTNQH1ZTdIVXhUxgLXiZYR6v6Waxmzn6M3Iwf8tsA6xmf/mcw uEAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=fbrojDn0VDdn0L3EW1XYF97yJqxtpi3UOK2VLs7ulp0=; fh=Nsij+GZ/e2VXig04t9qfqG7gvCsaWkH0XwbePARjwwY=; b=O3eCLGRTPuyop/pyKHqFe1O5kDGeBSBq9kra1BLreI29bn0WxJBKylsplymvwhPou9 awRZn7ZQavx6mTgsTy4xO++jQX5dJCmu77SimASEcpBZnhygc8nQANW216plIxGF6gZP 9PGB5S3zAPqOSGjgYeLIOP+p+WMU5PAlPlzRcSvWTMjSYTamUlajKjQvem5oWrQx7K2B dc/obR+Gz+Nod127J/SE2M+sa5QFtaLMMznQLWx861KjlQt/pQTBheZpKJAxj7A7N6xf FvyAfqST8Qn4VeJK67MCuuE1sNjifCXKeYTPuh0+aFllGJwXasiV14zoHMn8AVIXPCdc 5Pzw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=LYtv5Z21; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-204152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-795332ef877si111149985a.471.2024.06.06.04.02.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 04:02:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=LYtv5Z21; arc=pass (i=1 spf=pass spfdomain=web.de dkim=pass dkdomain=web.de dmarc=pass fromdomain=web.de); spf=pass (google.com: domain of linux-kernel+bounces-204152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 939BA1C25A26 for ; Thu, 6 Jun 2024 11:02:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3891F1953A4; Thu, 6 Jun 2024 11:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="LYtv5Z21" Received: from mout.web.de (mout.web.de [212.227.15.14]) (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 1A14D3D56D; Thu, 6 Jun 2024 11:01:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.15.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717671722; cv=none; b=HSkEkAHtFTjRgi9kL8R4byiDqFXxCwkFiPoQ2vRZqpwR9ir4/ZnJSGBaeOzGjLRmzcno09TYlDSrnXxg82Gt5zeNqPtoozhnZakaFXDJfrZ9MxVtCJI23eKvIzOCGHsCa/GPjdJ+HRF4nOibCho4OS9v28Z4nrlrnH9uGa+jvSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717671722; c=relaxed/simple; bh=62CrMwnBsDesJfBbj4JdA6nLwnTrPFPozSa6mWTBTjg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IFVeP9PmmO+grqbAkxkfyo+vP/QOU8EyYjwG1ThPD/A8SGAaywV9MzuY+VsJpSjrbY2fxcbjnLxjQaM/OXqBMzv0uy1do1RNm78QjKb29kAVqv6j4GZ0qM1ZeFL6rq+bE+4gQYaot4pQgy85Fzjf1/wWjNWuOCUkPuOaP51pTfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=LYtv5Z21; arc=none smtp.client-ip=212.227.15.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1717671696; x=1718276496; i=markus.elfring@web.de; bh=fbrojDn0VDdn0L3EW1XYF97yJqxtpi3UOK2VLs7ulp0=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=LYtv5Z21OpbjF02YgCTqGl/K15aq6Hez0UbRlIO5aaBciJaoAGZ1m8Iht+qhSYEV tagLKVk6my66ej5CfUCVJDAddet96+95Ln6IU1CHLAro/V2sPVD0c9V+ZL5Olr8fM WWLNG4qfVMJj5Sjy9CTTTiPJr1Pganv6r5ElLrHsxVErLpNpc+9zsgcaOIjLYgVNj 04t5XAwi+37ORrya8E/lfiWTgtnlqSFMrg8zYpkgG0Vna2mujmahCagNQ4kZ/uUln l5Qoggeyb4wtd7DNedzDZ9aqSPW/HdBUUfIoA3Muy+eSqeOVy37auEFvVboTaKQDI 3aWB0nihTdszQmwyhg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.83.95]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N14ta-1sQhFd3w0Q-00rGUS; Thu, 06 Jun 2024 13:01:35 +0200 Message-ID: <204dc14f-1f58-4425-b613-85538eb4d947@web.de> Date: Thu, 6 Jun 2024 13:01:34 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: usb: typec: anx7411: Use scope-based resource management in anx7411_typec_port_probe() To: Jonathan Cameron , linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org, Greg Kroah-Hartman , Heikki Krogerus , Xin Ji Cc: LKML References: <889729ac-3fc5-4666-b9f5-ce6e588a341a@web.de> <20240606101757.0000331f@Huawei.com> Content-Language: en-GB From: Markus Elfring In-Reply-To: <20240606101757.0000331f@Huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:+TjG99r+XNmlKF6SwclUrVxDdMTNQkCcRDjGzvh01/WEkKXLCTs 8SyL/Aay6KAsy3sM1C+dyMCaVelTWmyZFONT1jOsovzYxEh5i9M2KYJ1uVTqqbnaZwfvOen W3Bn7BjhhjqRhGrF9jxxl05jobJ3HFe7jAnotPL3tKKe76hFpb+9bf3epKG2wMVRcZyD3IB +xQf59yiUk7/vijNhlZUQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:h0TlJMfNPT8=;buw75irrEL0dwYIUtjk0vsyLbxT A4i5U6FotW7xRr3WUT/bv7tNybBAp0Y5N9UJEmIyPSrE59jK8eTpBQhZ9+GD6n9nd8SlxyP0X ioS+hdwR3MRP8l/LUvxWlnBDAMj6Nld1Mwm7apyVo/ootiSXSM0IYWA2UpkP/BQaeSmxb/+OU vDFOhom4mWhGpoFnRouiJxIBk4bKmYwst/Qof9TBgrDiaZnh2nx6tpeh57sASUHtucPDZxn8Q DrfmMiUHa+kSppYnRueQ+4UPtNKaaYHLP04EdSo7wdXUiOXs2bHiICpF1V4fRTEw+2ezEfo25 OV1taok/oNcJCeictql5z/DHrlXMIsfF2NP6fR+3u5/g96S/VijY4/0wt3dlS+wj418jSN05b x90G/7AH2KSQmbeqiwgxrkdFXyzddI5/sh6dUj65znRoR0Qns9jYJdJYnPKyOpJd8XytUrGIG 0qHVMlO+WPKa0ppXmaQW8gQ2sdHvK9cfvEjii1zZYGO3eizaO8sFVdPPvXtiPCNEEoymccG+K LLehTl0Zc2IxbdyKkWeRPN1HrMdNY2ifvGegyLKK6mY5cV9V1WvrDd1K8pFY+Y1knNf9xx+8n 0WWo/NdtGG/NXDKLn5Gd6t9/Y6OwZM88izNtPchF7dhJg3qOXkWBRXijoIVp4yn78gYsivOeo p8+LAZRpNfiOvEQ4w2XmhJVOdWORZo0e360um7F5VvHFbsiIksRXw66dYUCghf7BG595KZCSP v3wTdrMuKP7eiOuCorDmcY+xOKZGEqD3hYIUcfI+El2E/I3nT6EM//mML/PKEDqHF3KShUinF u9VEkXEPqFocJRzwD5vV1KsFWTJNMeIZRWdvVVQjWnePo= > That makes it tricky to use no_free_ptr() so I wonder if this is > a case where the old fashioned fix of adding all the relevant > fwnode_handle_put() calls is the better option. The __free() > approach doesn't always fit. Can involved development concerns be clarified better anyhow? Regards, Markus