Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1086471pxu; Thu, 8 Oct 2020 03:00:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7V7a2yYLZRONkSE5YQPjQ4GLyY2F1zVFV8RgroYM08mIPwqhyC9MjtgtRU0F1/fS2yV5m X-Received: by 2002:a17:906:268d:: with SMTP id t13mr7861541ejc.60.1602151240383; Thu, 08 Oct 2020 03:00:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602151240; cv=none; d=google.com; s=arc-20160816; b=vDz1sXlrwkqWNzPzTwW3wvKLIOFmXGecBLKUvFTTT55TpkfEW6hvwqfLIfy+KD4Vdg O71GIXxEgvnypoQQzrYiHZ9XpF1vUi5OkyYIsEYPV+qeYOjInauATkwb1uhvfaykSBJA MjE/NY4kZVQscNX9VDzxePMXA/Misb4875YdWgl+XOQPKJaFRnJcJCsz/beGwetrOKfE qxDY2KVq2eOcfZX9zprFAUQ1daVysqn5s7sQqp1nHNRXqCCYUsyLv/YGuUwvhybn4FYT n3wdKv0Af5zFA1tC/Dvymq4YzqntZwoBph1RcPHXUWdTG+X8icDgxXNpl50VEtAbXK4J xhPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=zOQA9VCc3VogtHLfQQbngttcQjwWkjJ96Sa9JnGGrso=; b=l7Mig1chtn129t06a5dSV3n04IB9XgzHBFUQSeON63x36d4E3dgQK5mCZw0FFdNTQV 7DiQGek7zlVwplc1OpohBN/S+8j3lLzgZXEE0RwrFDoDOcainaEpR98bmOxDgZ/9+Xtb lJIAoErihdV1Uq8NGpFaKlWs3gMBy8TWDuZUkVcOflmRmVBR+Rn20KC9cKivjX0+Ij9B X92AD9zGEWbtu4ljsg9fNPfOwIOjHWSb6DkQVhbUq+pa7BYy77MuNRPM7g9oFLywIKGq /VIoOGjA5vusoq9n0i2+uAtFrv9rRKJaxGgcEOZDzfncpqTfInXSIhdGIzqUeAKtIowY 6T7Q== 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 c23si3426152edy.336.2020.10.08.03.00.17; Thu, 08 Oct 2020 03:00:40 -0700 (PDT) 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 S1729206AbgJHJ6y (ORCPT + 99 others); Thu, 8 Oct 2020 05:58:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:47578 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbgJHJ6y (ORCPT ); Thu, 8 Oct 2020 05:58:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C5E1DAC82; Thu, 8 Oct 2020 09:58:52 +0000 (UTC) Message-ID: <2caab0c666fe3ccf5e3247a1f1a78fd8f55a36b8.camel@suse.de> Subject: Re: [PATCH v1] PCI: brcmstb: fix error return paths in probe() From: Nicolas Saenz Julienne To: Jim Quinlan , Dan Carpenter , Lorenzo Pieralisi , bcm-kernel-feedback-list@broadcom.com Cc: Rob Herring , Bjorn Helgaas , Florian Fainelli , Jim Quinlan , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "open list:PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS" , open list Date: Thu, 08 Oct 2020 11:58:51 +0200 In-Reply-To: <20201001151821.27575-1-james.quinlan@broadcom.com> References: <20201001151821.27575-1-james.quinlan@broadcom.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-10-01 at 11:18 -0400, Jim Quinlan wrote: > Fixes two cases where we were returning without calling > clk_disable_unprepare(). Although there is a common place to go on probe() > errors (the 'fail' label), one can only jump there after executing > brcm_pcie_setup(), so we have to add clk_disable_unprepare() calls to the > two error paths. > > Fixes: b98f52bc6495 ("PCI: brcmstb: Add control of rescal reset") > Reported-by: kernel test robot > Reported-by: Dan Carpenter > Signed-off-by: Jim Quinlan > --- Reviewed-by: Nicolas Saenz Julienne Thanks!