Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1172301pxj; Sat, 12 Jun 2021 00:12:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaM9K8+3zxeA5jIw7UxXXyNT7RSHkb40rdzo+R4jW6vIWw/O3+bvyAYq8+H4wAXG7p4Ige X-Received: by 2002:a17:906:c311:: with SMTP id s17mr6789483ejz.202.1623481954834; Sat, 12 Jun 2021 00:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623481954; cv=none; d=google.com; s=arc-20160816; b=mxQJ53cxv+hzfC/SWCjxGKqbrG06qNRwornk7qeIiq7dWayPDB+LvfAlzFIUUzmbBK fUqucZq6ZKYfZDIVvwzMBtvDI2vHfkGw+3eQkBEd5X3ad/BKoFAQWCcp8KKPEDbZY6jY ZmZ8V0TQTSAOnBwJOVJxtciaUj3wFgVbYro2olWZX3GZACEiQhymCeOxKUin+oYmIa6d kDxbn4QyyaFXhdohOhlGV2segmwkCPz1qbfRBFPPWAarjegNyvp+PDLdow9G4jQC0ste fp63/hBLAxHT2Zc48sdduCU7yod6OBeDWbnbj/JK7y5rZXO4ALgV9XTs4NL1XN4C6o3A 17CQ== 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:dkim-signature; bh=5bwaOuj7VaxgBRVbVZUrbXm/Y483us+r6ZYnEEL3Jao=; b=sq8uLOXrfJFJQiYoJF91q9gTdelv3szU3602MYtjP3JuIqQbFDEAjzJjnv/Z7dUGsT qXfvrRdTqi2M9/uDDiaAhsRDTloDz9n1j9/flJCI+whQeU3KkAWs5aa5JZuFpv9cZUK6 StjMFX0OqJIDFP2BPMBpcCyKL+A6EOlXwQFygF8H3gxY8qE6wbhbbDa7J/sK9M6AvhoG /LvoGV5xgVxd3OC2De8FKe5Ot60+oIzghZPSW+C9wvGHWK0a9VjObkKqdBKTfqjdCYYW MoE5KkazLHU2sOfYEKL7XVat5r0QMas8ECbeldQpre2f0CTA9dg2WnCuhKygRfxOCbuY i6ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q3kDxCmW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si568754edc.16.2021.06.12.00.12.11; Sat, 12 Jun 2021 00:12:34 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q3kDxCmW; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230479AbhFLHLX (ORCPT + 99 others); Sat, 12 Jun 2021 03:11:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:48538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbhFLHLW (ORCPT ); Sat, 12 Jun 2021 03:11:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 35D3A61249; Sat, 12 Jun 2021 07:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623481763; bh=qpopxrhB7/n8po7l7amxHfzs4lB/k5A/1bGo3DagKVs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q3kDxCmWWliMocij9xAnRmaz4aeiBWsXeGAitQ+mtTcXUZvzQ3tvbypCLrJ4R+U8c et29162Yqdal1B+4gJ3PwmHCoHBRQUsTr+x+KYfo2gaUw3pDU0AtoxlMaUO307SUzK AVZlhBnnZoDAydSmEAKD2k3unCMXEtZ7DA/N35WFCA+VyR6Et0pXDMBBtkVK9t9LlJ hW476C09luQmT7O9mDuaJKrSAhqEe4xP3GFqfoQ/79BCmAG/ZIhefH3EUVke9w8doS 6OYDvEc8ocKChuBxihbxrzejeBmh3+NrUJ2cUc6rFh65Kgv4n5i+bICiiDHwWDoHBD UfJbvsZu053LQ== Date: Sat, 12 Jun 2021 12:39:14 +0530 From: Manivannan Sadhasivam To: Christophe JAILLET Cc: hemantk@codeaurora.org, loic.poulain@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] bus: mhi: pci-generic: Add missing 'pci_disable_pcie_error_reporting()' calls Message-ID: <20210612070914.GD22149@thinkpad> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 11, 2021 at 11:03:50PM +0200, Christophe JAILLET wrote: > If an error occurs after a 'pci_enable_pcie_error_reporting()' call, it > must be undone by a corresponding 'pci_disable_pcie_error_reporting()' > call > > Add the missing call in the error handling path of the probe and in the > remove function. > > Fixes: b012ee6bfe2a ("mhi: pci_generic: Add PCI error handlers") > Signed-off-by: Christophe JAILLET Cced stable and applied to mhi-next! Thanks, Mani > --- > drivers/bus/mhi/pci_generic.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/bus/mhi/pci_generic.c b/drivers/bus/mhi/pci_generic.c > index 7c810f02a2ef..d84b74396c6a 100644 > --- a/drivers/bus/mhi/pci_generic.c > +++ b/drivers/bus/mhi/pci_generic.c > @@ -665,7 +665,7 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) > > err = mhi_register_controller(mhi_cntrl, mhi_cntrl_config); > if (err) > - return err; > + goto err_disable_reporting; > > /* MHI bus does not power up the controller by default */ > err = mhi_prepare_for_power_up(mhi_cntrl); > @@ -699,6 +699,8 @@ static int mhi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) > mhi_unprepare_after_power_down(mhi_cntrl); > err_unregister: > mhi_unregister_controller(mhi_cntrl); > +err_disable_reporting: > + pci_disable_pcie_error_reporting(pdev); > > return err; > } > @@ -721,6 +723,7 @@ static void mhi_pci_remove(struct pci_dev *pdev) > pm_runtime_get_noresume(&pdev->dev); > > mhi_unregister_controller(mhi_cntrl); > + pci_disable_pcie_error_reporting(pdev); > } > > static void mhi_pci_shutdown(struct pci_dev *pdev) > -- > 2.30.2 >