Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5058831pxj; Tue, 22 Jun 2021 14:15:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwz2eRnuC53quer40SJyCJdP9/wvmp/D3xINlBz/hjD82bOiRuZ9XgxdioCBhftlbRZxyCB X-Received: by 2002:a05:6402:290b:: with SMTP id ee11mr7682016edb.325.1624396503907; Tue, 22 Jun 2021 14:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624396503; cv=none; d=google.com; s=arc-20160816; b=e6sWFOT+rIi3f1/SxyZ+wCe/HEf+V5610wMlUy5D9fc1rNKkZ/gFYmUInHd+C9AuWM KWnowT4/mHgHO3nFodHaPEC2MAPgxVy1Mn82+wVncXjuRSeoXSl4/7wnHP2ReE6/bMPs MHYWEW3yQ1LyNpdHZkh6SDNWXZgvugQoMlbLCYgD8AtQAU13UrCCnEAQkv6cQhmWSLdG QiQOZMKvzOWgEFCir7PaFPP+keW7SFp9TGNHHT7YBCRt+0W6vdY1DEafXQq5Mbp97FZi AyaDtKrO6oLAnJDIQy06lFggdEm3Xr5csIm8tADhthYPx46ljCKMdC6jNz1+EEEyXoXp en4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=7IxibTCgE2rai5IbT0M8tkO1JCk4pCJGhXp/ngtWucE=; b=fg6/dZv2RpPYZBX5Y7QhBjmSFjJ8oQGVIZNaANIU6/95TUt5rDTr51gsaGvK6zPBcD nWUTwbwUG6e/VTtG9rSo6QgAuQ3DL4S2YMCnUp2vyKVt3kNCfG2y7L+7Lmk2UqoTXKGw 1ydfLjdKITTT6Qjl3IVBzGrNg9tcaiLVlwXQNRaVAEVzMx8GbtLM36ooOthF5ECoGJF1 DYTyEtxP5pziePinJr3+oYYxUm2TF/FI85ZNAQ0P1/joupmo0CzPIwKUoPQflL8hUAuB /FmlS4zoutjeElOkTHMMho+3qUtlhNsH0P0W9V6b8Ad4T2fK6WpdnX1SgrN+mqIl8YDC JS4Q== 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 z22si22476399edd.361.2021.06.22.14.14.39; Tue, 22 Jun 2021 14:15:03 -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 S229906AbhFVVP5 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 22 Jun 2021 17:15:57 -0400 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:35877 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229758AbhFVVP4 (ORCPT ); Tue, 22 Jun 2021 17:15:56 -0400 Received: from [77.244.183.192] (port=62278 helo=[192.168.178.41]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1lvniE-0005XZ-Pn; Tue, 22 Jun 2021 23:13:38 +0200 Subject: Re: [PATCH v2] PCI: dra7xx: Fix reset behaviour To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: Kishon Vijay Abraham I , linux-pci@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas 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> From: Luca Ceresoli Message-ID: <58aaadb4-c643-76ce-bda0-294bb2300137@lucaceresoli.net> Date: Tue, 22 Jun 2021 23:13:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210622110627.aqzxxtf2j3uxfeyl@pali> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8BIT X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca@lucaceresoli.net X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pali, On 22/06/21 13:06, 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 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... Sure, good idea. I'm following this thread and will send v3 after a direction is agreed upon. -- Luca