Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp393466lqb; Fri, 24 May 2024 01:17:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjI3bNRXN5g+Yx+5T/XGaA4/omlgZfoV9k4ZMdPyzvKnyonIolQuO/7v/2UYAJmB5p3EMCA1/0aNhT0kNWf1VCPjeZDn/Dt6o4yBXloA== X-Google-Smtp-Source: AGHT+IHXEcYYYNaplcmcMFUiu/dLOJVZi01TgPO4XvrBn/UXOpAuQcSlNHaeFezbIU3DGn0I3e2g X-Received: by 2002:a17:906:4716:b0:a5a:1b61:e970 with SMTP id a640c23a62f3a-a6261f91b52mr146739466b.15.1716538658813; Fri, 24 May 2024 01:17:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716538658; cv=pass; d=google.com; s=arc-20160816; b=NJ0aJGhUcbf92fCuQt8KMKaPD1PSeAbDZWPIq4vUf5C15H2ZiwBHV9mivCa8JNK6H1 9ChJlwIN1lonL72hS9lehNd1N/Ex+9ohzkEJmZoyGc0tujNhci8TabCo84Q/1FMzqcV0 a2+/oXVQ1Py6vBWAv+Rlv2+0Poo+LB5GY4VtdxEvqfJVVtUAQWEkKIYzdqpmWS6sc5Al CGSvjkhH+q4lh2DOaL76Ny5D2CS2FueenGZUaEvkWjWr5fN6hJ4qJ9oiRFm5JvGWuamB VKFgEYbSsYzq67Ik+38X9RxyoSu5P0HBgmXxIUtr+vL34gQJerwK4wG7LGb7hm1hKdD0 UrvQ== 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:subject:references:cc:to:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=LRPr7yjZvhwm7ZLpTstw9sTNj/eN71td1oPbmzelILU=; fh=kC3p5znv9D/QtmmxGKQXQpjiM4YjHk23bJmKN0nkg9o=; b=G4AK5BSh844HODUTQ3AoYsXkjHvTlSQrE6v6rHv+LzYvAQwT0MR1Tz6xJ6lXbnzq6Z CZrWnH0RcKqeR26kNtu3I3lbIIs4Tl2jzF1cbL8awMl+IUhgSbrS7+egstGRS56gHzBz naw9gM+s13ydqHq2aIXcRbVP9JWPegDsrDuhEdzCKVLEQj/XlDbuzrEjwAHF/w+wK40R aI9isbrLU+oXXH5+UyvJLiNIx4FJc3wMDEdup7wpWAHArHbzpC6VzIVfIK4HGxYvCbry kpZfq1Q0CCItZjAPWX2f2ebMnm9I6JaPH57ekxRNl/E86rrLPFTZRQfLJyjb6ZJf4Mtp fxWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=asy8Zhyx; 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-188448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=web.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626c800816si54751066b.4.2024.05.24.01.17.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 01:17:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@web.de header.s=s29768273 header.b=asy8Zhyx; 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-188448-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188448-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8B3ED1F21E8E for ; Fri, 24 May 2024 08:17:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CFDC129A6A; Fri, 24 May 2024 08:17:19 +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="asy8Zhyx" Received: from mout.web.de (mout.web.de [212.227.17.11]) (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 4CC94823BF; Fri, 24 May 2024 08:17:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716538638; cv=none; b=FN32z03rFqRR/Z9bJS7xSAFRNd+EBRCtFONeL72BxuL+Juq6BLvBDZda3Z9Wvc+a5hXijkjOIcKZ+IqfWSUPiK4wdXQGc/BbD3MRSTboVkJgCgGK5B1dyhfWBZooyFCYb9nf1mdTK/FeDQfJfc2aFU+liYKRvLm8Tm5yrFgGVVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716538638; c=relaxed/simple; bh=MxVQUC14yschSSMleujjxz9d8txwkDZPaW0ma//Zd/4=; h=Message-ID:Date:MIME-Version:To:Cc:References:Subject:From: In-Reply-To:Content-Type; b=VwwfU41954olfhDIJ0Ft8PHfz+k9lQ/QPVzpa55OEsgnPqjrIRjbdCxrWKfE/mxGMw6Bf9wjlSuWuhQrjBQt9oF0FoYH2KlA1VxiOqiLZ6xXETDOF9a/dMCWuQXsU4iqPsUlh343SThyrmCSIgFJc+Qf9dNEaPly2UJbox2wwDE= 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=asy8Zhyx; arc=none smtp.client-ip=212.227.17.11 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=1716538601; x=1717143401; i=markus.elfring@web.de; bh=LRPr7yjZvhwm7ZLpTstw9sTNj/eN71td1oPbmzelILU=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:References: Subject: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=asy8ZhyxYGB+uRRwYY6s+TGZzAti3roXldrGgbTA9rvExSzYv7MT9Q99zKjk+lUI G1Co2taD2EhV6x58W6mcucbbdBN4yUe3TQ1CySVQzMVxKKSUJC1mqt+YhlYT0BCzI HN1W+8dxiPCuZYF7g5FS0oWlcSCLt2bvtZ2NtE95+tGor05xvahMeUtlAFJCyNhaO zSEeuAohaQsvW9ygZvcIRa3O8VM5bGo2bVt0f4BLrAwP6nPisEBgEcq3N9OWAl9vo Zykj9aj9z2LU96VHYy0oJigvCjNXEwZVznSiIC7OcQBdwt8iWAJJlN1AXpbAv2pt+ VtkVelNwT54jZnWeuA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.83.95]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MSqXM-1s5QOt28MA-00UNap; Fri, 24 May 2024 10:16:41 +0200 Message-ID: <89d6acd5-5008-4db3-927c-d267be7b9302@web.de> Date: Fri, 24 May 2024 10:16:39 +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 To: Sean Anderson , linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, kernel-janitors@vger.kernel.org, =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Lorenzo Pieralisi , Rob Herring Cc: LKML , Bharat Kumar Gogada , Bjorn Helgaas , Lorenzo Pieralisi , Michal Simek , Michal Simek , Thippeswamy Havalige References: <20240520145402.2526481-7-sean.anderson@linux.dev> Subject: Re: [PATCH v3 6/7] PCI: xilinx-nwl: Add phy support Content-Language: en-GB From: Markus Elfring In-Reply-To: <20240520145402.2526481-7-sean.anderson@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:cE4BK/TlEIWznR0yJJG1Mw+1L/RvLYJpbxs5JJibDf8v7I4j1xq qtWAG8K0r13kdXIyb0dbR32q+FjS6ztm5L9L3V05pq18A2TRdQnBgChivDZIs/LHo0nDh8g n5KUmmSJTL9IxMbSK77kVHPJmhoTtOp+6kN6AYkrC/Gpf3cYaG8NtPWKPAAREec+9Clvofv Chp3luokxr4/MS23rIpNA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:PN1gnFD9Q7Y=;tVJwVm/MenJkE3GK4r0Z5NzJ9vE /kRwKidoUc3CPlt0JlzsngMpQWWHmYQdrPrvXgau8aeU25/xL7t1TEUX0C1p7bKnyPD0tU/gP o7rk/0RtmOM91vQR1+U4D3cwt/eQalo4dHzPI6Amio8kkgpx6m3q6fa+9lffjBGrlLISjEHSw /YzjWmiPDb+g5K3OkYjrZBhBbYDyyXMPc6kITl0EhwshPCHGmqpHYPfKsDMRmuR/g7fWB8wD4 9lbiZY1+FEnow9ZnRuCeGNtKW671tY0rlYj5V30wyz3Slg+1LTq56zjGNgH40DPNg6qSaymke Oh2XQj2RgJCFv0jQGe18Zr3mvF9woULE3kSUheXq9OG2Bw/P5b9pAt/XAxnm+5NxY8M3dJhpU yJTWXAmmbFbJ7XT8WwMjaxWnjrJ1pM/+prMQBjewMtxkrOSr+NW9ENfL3YqDOjR2HajazIzD2 fLGBdITrZT4zxXftsuT5AEUk/Y5ijoY6zJvNxyZbUUY2OP4em5tlLZeZtXqyd8tdDa71ikMQK xhtmQBOhtUU/bcuvxRXbbwm/T+Ur77XvCy9Rcp6B/izskWUVE8KTN91NDCiXhau1J8gBggXrn +Z0bVgb+ICmdhOp4MOEFnVKRLht+1XuZeTNzP7wr0eGkIrXwPLK28gGnn2mK8gqAhatRGx2Bk iJpGEjoidsy7eANSmmQBoK6G0N33d88UYQi9UnGLdNhcySvcd8XWFnu5DoS3mtfgc9O7ajBUt GVFBgYGFvRQhd3rr9wejSmrKowkPQmlWCMkvUgTU7mE8tUcKA0FDfG584CD4tPBu2VfffUMNn 8fWkQei5QWyecRJ2z0OfQwtk6f91Ttr1or7h59G23USmQ= > Add support for enabling/disabling PCIe phys. We can't really do > anything about failures in the disable/remove path, so just warn. =E2=80=A6 > +++ b/drivers/pci/controller/pcie-xilinx-nwl.c =E2=80=A6 > @@ -818,12 +876,15 @@ static int nwl_pcie_probe(struct platform_device *= pdev) > err =3D nwl_pcie_enable_msi(pcie); > if (err < 0) { > dev_err(dev, "failed to enable MSI support: %d\n", err); > - goto err_clk; > + goto err_phy; > } > } > > err =3D pci_host_probe(bridge); > > +err_phy: > + if (err) > + nwl_pcie_phy_disable(pcie); > err_clk: > if (err) > clk_disable_unprepare(pcie->clk); I got the impression that some source code adjustments should be performed in another separate update step for this function implementation. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Do= cumentation/process/submitting-patches.rst?h=3Dv6.9#n81 You propose to extend the exception handling here. Does such information indicate a need for another tag =E2=80=9CFixes=E2=80= =9D? How do you think about to increase the usage of a corresponding goto chain= ? https://wiki.sei.cmu.edu/confluence/display/c/MEM12-C.+Consider+using+a+go= to+chain+when+leaving+a+function+on+error+when+using+and+releasing+resourc= es Would you become more interested in the application of scope-based resourc= e management? Regards, Markus