Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1170209pxj; Sat, 12 Jun 2021 00:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF7ooS7/1z63zKbkFizoB/PLc96L7VrTK2zEhDhHXSiH0dCvyquMaaN9sdIb452sKknXtg X-Received: by 2002:a17:906:82c3:: with SMTP id a3mr6698896ejy.230.1623481726849; Sat, 12 Jun 2021 00:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623481726; cv=none; d=google.com; s=arc-20160816; b=YSdjDz0SICh6nnWNl0A1+LqaUdrVs1MAjUORwrqDP3Kr4TsiqoSyMMrDVkGaBqBb8X wESau2pRAZFxWLjFcHAtzORk30PCmJWK42BGFb18NMeH/4DD6xzNd5yc3Wxx6DgkcJLX 0QeZXTeDcxocj9thLqSVsriuc1YjNfB05P0iIHIMii2paDUUQMEE99UnDdZ5QwVkayfy b57jRR66jxnURpHyBpLbLAGCw9MWWABH7c+LCK3nmsVd5CZq7JT7q4a46di81HyeHBaO vW2ym6H2cXXxYoO6TxlFMsr6gvGFG/Bl5QCZJqoG5GzrpwsRgoiLZKesudgeWKz/T0tf 5chA== 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=aNmlq8a764o75nDshEo0WTIvkrBcz8lei87POHYSC10=; b=m8MPdDZBaXOBw4oQw58AI4erAxRJvYuE0lW+BQQC+M5KU/XQcOwzuo1GcF+jPkoCNH lO2PgLf0GaxZ8wTOpnkm8tyefQ+5sSpM4BSVdFVTDdnqEQRWGigWgAp4l+eC1JIeu9rT 05i1mX3/c+WgaqLbTKY9me0eNrqacpYBf1KEvqbIbmbhhxrxpP9FL5j3GytIeJ9dbIwh 5B+2aeqvesXcOUs335OHE6slNnYnW13MZ4the6rzKjhgic7gTYfy/IvQVC0GCBvPlbUw nxEcxtFrTyAr1fpogOWKr8Ud1rKd9Ittae8E6MOkrajTxDI1X3O2ZA01FTefuZ1FymCx 7NXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VfXwA0O8; 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 ar15si5127625ejc.146.2021.06.12.00.08.23; Sat, 12 Jun 2021 00:08:46 -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=VfXwA0O8; 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 S230370AbhFLHIs (ORCPT + 99 others); Sat, 12 Jun 2021 03:08:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:48258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230229AbhFLHIr (ORCPT ); Sat, 12 Jun 2021 03:08:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0065C61248; Sat, 12 Jun 2021 07:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623481608; bh=X2YGd7IvwLs5/YhL39fN+g8Xt2AWO41M1z0301CaslM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VfXwA0O8UvREklELiTqek9VlzA8LWrHhKF36DShjyC+PA0B6UBrkCqE4kes7rWCZ3 bM2Tt4M9yEY5jTwLCEmRpkhaP9MAd9weHhnJsrfES+MWE7oxURvBYV6dnHes+/XFmI S/9dSM/tY4DmwXtdCLy4XUTUM4lOopLmUbdz1/pc4kCM6CK01V8XjN5uWpzkgqfAVy xaip1+cJ4IUfCbzCxuLF87l+pzE80At+gMzfrl7E9ZtCXSfixOl2slRTLDrCRTXSFU 29vs60iYhohvyyg2EHa85kXmTS+c9JLRHnsTqmNrYyTvTO1JCZlH6Z+pWPaq26n9AN 1N95EITrq0yRQ== Date: Sat, 12 Jun 2021 12:36:38 +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: <20210612070638.GC22149@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 Reviewed-by: Manivannan Sadhasivam 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 >