From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-x243.google.com (mail-qk0-x243.google.com [IPv6:2607:f8b0:400d:c09::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3xBCxv3YgTzDrF1 for ; Tue, 18 Jul 2017 05:28:19 +1000 (AEST) Received: by mail-qk0-x243.google.com with SMTP id a66so20768066qkb.0 for ; Mon, 17 Jul 2017 12:28:19 -0700 (PDT) From: "Jingoo Han" To: "'Joao Pinto'" , "'Bjorn Andersson'" Cc: "'Kishon Vijay Abraham I'" , "'Bjorn Helgaas'" , "'Kukjin Kim'" , "'Krzysztof Kozlowski'" , "'Richard Zhu'" , "'Lucas Stach'" , "'Murali Karicheri'" , "'Minghuan Lian'" , "'Mingkai Hu'" , "'Roy Zang'" , "'Thomas Petazzoni'" , "'Niklas Cassel'" , "'Jesper Nilsson'" , "'Xiaowei Song'" , "'Binghui Wang'" , "'Stanimir Varbanov'" , "'Pratyush Anand'" , "'open list:PCI DRIVER FOR TI DRA7XX'" , "'open list:PCI DRIVER FOR TI DRA7XX'" , "'open list'" , "'moderated list:PCI DRIVER FOR SAMSUNG EXYNOS'" , "'moderated list:PCI DRIVER FOR SAMSUNG EXYNOS'" , "'open list:PCI DRIVER FOR FREESCALE LAYERSCAPE'" , "'open list:PCIE DRIVER FOR AXIS ARTPEC'" , "'open list:PCIE DRIVER FOR QUALCOMM MSM'" References: <20170716063947.3272-1-bjorn.andersson@linaro.org> <73b9c442-38f6-cc5b-c6e0-4ce7187dc0a8@synopsys.com> In-Reply-To: <73b9c442-38f6-cc5b-c6e0-4ce7187dc0a8@synopsys.com> Subject: Re: [PATCH 1/3] PCI: dwc: Handle host_init failures Date: Mon, 17 Jul 2017 15:28:13 -0400 Message-ID: <000a01d2ff32$d5d59e00$8180da00$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Monday, July 17, 2017 7:18 AM, Joao Pinto wrote: >=20 > Hi Bjorn Andersson, >=20 > =C3=80s 7:39 AM de 7/16/2017, Bjorn Andersson escreveu: > > In several dwc based drivers host_init can fail, so make sure to > > propagate and handle this to avoid continuing operation of a driver = or > > hardware in an invalid state. > > > > Signed-off-by: Bjorn Andersson > > --- > > drivers/pci/dwc/pci-dra7xx.c | 4 +++- > > drivers/pci/dwc/pci-exynos.c | 4 +++- > > drivers/pci/dwc/pci-imx6.c | 4 +++- > > drivers/pci/dwc/pci-keystone.c | 4 +++- > > drivers/pci/dwc/pci-layerscape.c | 14 ++++++++++---- > > drivers/pci/dwc/pcie-armada8k.c | 4 +++- > > drivers/pci/dwc/pcie-artpec6.c | 4 +++- > > drivers/pci/dwc/pcie-designware-host.c | 7 +++++-- > > drivers/pci/dwc/pcie-designware-plat.c | 4 +++- > > drivers/pci/dwc/pcie-designware.h | 2 +- > > drivers/pci/dwc/pcie-kirin.c | 4 +++- > > drivers/pci/dwc/pcie-qcom.c | 6 ++++-- > > drivers/pci/dwc/pcie-spear13xx.c | 4 +++- > > 13 files changed, 47 insertions(+), 18 deletions(-) > > [.....] >=20 > A step in the right direction :). In the future we should add host = init > validation in the specific SoC drivers, like Layerscape and Qcom have, = to > assure > that any problem is treated properly in the core driver. I agree with your opinion. >=20 > Acked-by: Joao Pinto Acked-by: Jingoo Han Best regards, Jingoo Han