Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4638283pxj; Tue, 22 Jun 2021 04:57:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoCJuBoit4hFXsUPQpIwPIodYP5x+7TFRZcMC7tNSD7yzj+3Dq4eDBCdo7D2hbDPbpsP6y X-Received: by 2002:a05:6402:51d0:: with SMTP id r16mr4578585edd.138.1624363057438; Tue, 22 Jun 2021 04:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624363057; cv=none; d=google.com; s=arc-20160816; b=e+b6iiVydT2TWSyqXVvX8fCSbJVre9ohuBPzGYnsa/d+w52FomcruZR23LHOUSHBas rUAZs2tFHKuNttCiyzPlX08rACj/RsO7YY0GCNUi5nsrL6tm4p8VxmAJhI6Rrx5o2pX8 /h7dgLLTeEAT8Xo+oRiMCZk7fbodlZB2lVUM5Gb1v49uc77ZGsJsNEgCaC/1Jfn6JCvW RRW2mER6wSY1zJPZ18U4YyXMGGEjp3BUpekoOhm50MQT4CqUFt2uQsH4tBAbq1CukQvf 09iJWpIfc6aFHQU3myNDavk2umVnAFcKGLna5CnK04nnyINqp6CmQustzZNHj90KJBgx NDxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4mfd9CjUHcXY0dkBXxaAkaqdOVYRP7ijM4voeDVc2+Q=; b=zTB/IdjvXuBOXeH+aww9Fp0d77vDjPXCKdlv2BhLztLHtbHOpDFY2Xqk1qKDUGTQTX 9eKbzZxRZEHYw0jQYqfG1bEaMRH2fGqTGGFrl/SE2U2XPHoQMKdx1T2ohkEeeDbxSCYS oGkyMniPa4o0YqTzrijSh/IOCNUBwLXUaVcgYwbxEaVnb/Z9jhFeZaiERvDfxIOLrGma ajNjXOLNivgOENhM9oQ5g3HcPdOMkCANuXvmqcj071ghFOvc3s/bdE6tKYoZodWzSkRA zNhQmTV5ssYKJUhU5IrCc26A4+pnE3WQjdsEoMT5o3t+dOQa7SUkqDMY4T67leRKG1sK hgsw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hu7si6656917ejc.142.2021.06.22.04.57.15; Tue, 22 Jun 2021 04:57:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230393AbhFVL61 (ORCPT + 99 others); Tue, 22 Jun 2021 07:58:27 -0400 Received: from foss.arm.com ([217.140.110.172]:47912 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbhFVL60 (ORCPT ); Tue, 22 Jun 2021 07:58:26 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6CCFF11D4; Tue, 22 Jun 2021 04:56:10 -0700 (PDT) Received: from lpieralisi (e121166-lin.cambridge.arm.com [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 186C93F694; Tue, 22 Jun 2021 04:56:08 -0700 (PDT) Date: Tue, 22 Jun 2021 12:56:04 +0100 From: Lorenzo Pieralisi To: Pali =?iso-8859-1?Q?Roh=E1r?= , linus.walleij@linaro.org, kishon@ti.com Cc: Luca Ceresoli , linux-pci@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Bjorn Helgaas Subject: Re: [PATCH v2] PCI: dra7xx: Fix reset behaviour Message-ID: <20210622115604.GA25503@lpieralisi> References: <20210531090540.2663171-1-luca@lucaceresoli.net> <20210531133211.llyiq3jcfy25tmz4@pali> <8ff1c54f-bb29-1e40-8342-905e34361e1c@lucaceresoli.net> <9fdbada4-4902-cec1-f283-0d12e1d4ac64@ti.com> <20210531162242.jm73yzntzmilsvbg@pali> <8207a53c-4de9-d0e5-295a-c165e7237e36@lucaceresoli.net> <20210622110627.aqzxxtf2j3uxfeyl@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210622110627.aqzxxtf2j3uxfeyl@pali> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Adding Linus for GPIO discussion, thread: https://lore.kernel.org/linux-pci/20210531090540.2663171-1-luca@lucaceresoli.net] On Tue, Jun 22, 2021 at 01:06:27PM +0200, Pali Roh?r wrote: > Hello! > > On Tuesday 22 June 2021 12:57:22 Luca Ceresoli wrote: > > Nothing happened after a few weeks... I understand that knowing the > > correct reset timings is relevant, but unfortunately I cannot help much > > in finding out the correct values. > > > > However I'm wondering what should happen to this patch. It *does* fix a > > real bug, but potentially with an incorrect or non-optimal usleep range. > > Do we really want to ignore a bugfix because we are not sure about how > > long this delay should be? > > As there is no better solution right now, I'm fine with your patch. But > patch needs to be approved by Lorenzo, so please wait for his final > answer. I am not a GPIO expert and I have a feeling this is platform specific beyond what the PCI specification can actually define architecturally. There are two things I'd like to see: 1) If Linus can have a look at the GPIO bits in this thread that would definitely help clarify any pending controversy 2) Kishon to test on *existing* platforms and confirm there are no regressions triggered > I would suggest to add a comment for call "usleep_range(1000, 2000);" > that you have chosen some "random" values which worked fine on your > setup and that they fix mentioned bug. Comment just to mark this sleep > code that is suboptimal / not-so-correct and to prevent other people to > copy+paste this code into other (new) drivers... Yes a comment would help but as I say above I am afraid this is a platform specific set-up, ie that delay is somewhat tied to a platform, not sure there is anything we can do. If Linus and Kishon are happy with the approach we can merge this patch. Lorenzo