Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2141286pxb; Mon, 8 Mar 2021 15:41:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6Z0LgyoqwzfCI6rH69dUep9Yv45981SicWIf5JcfpNXHHJG1CDcDtWDVL4h7MNrcJBoRH X-Received: by 2002:a17:906:3b48:: with SMTP id h8mr13102390ejf.261.1615246877001; Mon, 08 Mar 2021 15:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615246876; cv=none; d=google.com; s=arc-20160816; b=A/UuBfXCStcP5FPsrKKC+8tdxG/NHuiQbZxI96cVdN/whIKZUbKQQzEvKzf9QAsQh7 dnowalHXLvb6BULgDCkdCpw7txYIN15mfNoti8faoYbBewIPEFSZB7rW1eLIFdoKtjlu 6KOpDEbbdJ4jdyp7hT04qRNsNece41XlaQf/YWflGKWmIT9PVdRqcEnIJtQp9738fio1 p3A1df1q5d8llW6FqZeOX6fttnvYRLw2zM9BdaGRLji8P9BiFlnksNPRh46105xkxFF2 UtG60ht50fLkQaLM8Wdx1ri3enH4cL4/kgYPte23jviqpps3NxGjl31ibnLQ1qqUiaMU Ibag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=K67rR2cz1Q7CfHsvPx+dMATB9DP+9YT/J61wglUubUU=; b=VLl48qhbTMcW97jiRVN9BRBDehf/DycFDyNhMkjXo5z18v3dmTxyuBFmMv79/s1UgS 0ndM64RZb9ctw2B942oijtXHiaxguL1YinNRZ0TLv3irznubGrnXllmy0r1qmO6+eMmG P8+76X0Bg4TZpNtFsQ90xl9jgATVh4495uQeHB17ongTqWZBYvVuRYRBKtyqGA5ptrqX GUjNpLios1R0N5ZC2K1Bo/nh1pAL7mcDvz7PyFBhVVIhMtbqZBeKrXAx9/1ZOCioE+yP esOowQdeKvIxSrclTvnQXOpC5Fc4t3+5Fy1lhHqqw28uDVxCIZjaEMcvCGDR6ka4YFwe 0b9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si7357833ejn.375.2021.03.08.15.40.54; Mon, 08 Mar 2021 15:41:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbhCHXgg (ORCPT + 99 others); Mon, 8 Mar 2021 18:36:36 -0500 Received: from mail-wr1-f43.google.com ([209.85.221.43]:39423 "EHLO mail-wr1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbhCHXf5 (ORCPT ); Mon, 8 Mar 2021 18:35:57 -0500 Received: by mail-wr1-f43.google.com with SMTP id b18so13251261wrn.6; Mon, 08 Mar 2021 15:35:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=K67rR2cz1Q7CfHsvPx+dMATB9DP+9YT/J61wglUubUU=; b=XSXLXD7bSgmNIwkJMdsQc5yVGbO6uxcvymq/gXvgUXZF/H6yjLGz89wDLKfDp1MCZv YSPwU14eGBsype4wsS5TQIfiSYaKnt/HLQnFeQFOG3xXv/GGZq8HdB12Q3dQLGju71qw P2oISYFClL7jmpVQIvqWJwTd4ItwnyT2VqVXBEnGJ2kNkvMt3HAx8S9h+p5X58gKGwvn POS+GGujkx/jPq1w/ABqMUiA/pIkXiL2nu5q2FLKcg+3J1eXMKU68eZHHRicj2qaw2nK zrS0PYSZlK1Ne9xIFRKOOBLXVPDIOa+QKw59MyFUnc9r05VS7HnWei1tF2MoaIX3Qyr/ QIKw== X-Gm-Message-State: AOAM531saXBqdHndJ4FKVXqzeOCKAE/y9BEjSdY4qHlSyGW3eQDyNGxK 598JxEnHtf7pqrjr73RwFUk= X-Received: by 2002:adf:fb05:: with SMTP id c5mr5345694wrr.302.1615246556238; Mon, 08 Mar 2021 15:35:56 -0800 (PST) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id u3sm20897860wrt.82.2021.03.08.15.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 15:35:55 -0800 (PST) Date: Tue, 9 Mar 2021 00:35:54 +0100 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Jim Quinlan Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Nicolas Saenz Julienne , bcm-kernel-feedback-list@broadcom.com, james.quinlan@broadcom.com, Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Florian Fainelli , Philipp Zabel , Jim Quinlan , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , open list Subject: Re: [PATCH v4 2/2] nPCI: brcmstb: Use reset/rearm instead of deassert/assert Message-ID: References: <20210308195037.1503-1-jim2101024@gmail.com> <20210308195037.1503-3-jim2101024@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210308195037.1503-3-jim2101024@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Thank you for sending the patches over! > The Brcmstb PCIe RC uses a reset control "rescal" for certain chips. This [...] A small suggestion: it would be nicer to mention "Broadcom STB" rather than "Brcmstb" in the sentence above. [...] > +err1: > + reset_control_rearm(pcie->rescal); > +err0: > clk_disable_unprepare(pcie->clk); > return ret; [...] A small nitpick. Now that there are two labels on the error recovery path, it might be better to name both of these labels a little bit better. Some examples from the PCI tree: error_clock_unprepare err_disable_clock err_disable_clk err_clk_disable So it could be: err_reset: <-- or err_rearm or even err_reset_rearm, etc. reset_control_rearm(pcie->rescal); err_disable_clk: clk_disable_unprepare(pcie->clk); What do you think? Krzysztof