Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp651961ybi; Wed, 19 Jun 2019 05:44:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1/R2wnZgF2cw+r65NY+6XyF9al8sy04GR5m+UEHxy+X1DJ9MIEPGC7YuOn1Mwp8vltr7C X-Received: by 2002:a17:902:7891:: with SMTP id q17mr64018001pll.236.1560948265470; Wed, 19 Jun 2019 05:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560948265; cv=none; d=google.com; s=arc-20160816; b=ZmrY9M4kniizD8Iym/MASMDBsZGclvWvIAyQBB9ascCb0VjaotgUtjNUo3RbsOORuY e8W66GKIIWnzXeS+Bhmqj/wgZo7fCQ8tSnt9N8B5Uld4TCdxl4xBRtz5buipeZ7mVimF Wk4ZkXYjccoihDRwIIDgLl/0ZKBchZ4rEpSvZ0EqRIpx8J+E7pD6lnYJPNEcf5DjuINe EtrK8nsIFUCeywefuKy2gAMQ7SzyEklCydbclZJb+7DXz/SnwC7bhdwNFEoN56D5MYOQ K+Y0sRWYW7XmZBpdwFl485YCv6HYM6Hi50hvjss2tSZ20zFug6XT+FUiWrixLjDlX5xe W0GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=pVmh8Mn8mgc3EscErgvq0XDVCoiBFc8N8xqhSVOuWZY=; b=nwb24ViLkt20sjALW9XXB7v8C+esBvPdnBgL5n5rjdZjSs8cZyqina1q377i9VHkhS SOvd5T8Gwq0JsACoiauylWOBB9RqbckAWUEcrlEmtJzgSXEnRuq+55DO3Smz4ePuuOOj zzJkUPKAu68TQrYCIPO0n7lK2meQ37uiURma51KNNJDvGXPiJ2uHZwdHBP8GrSOUpD7L h/BHv56jzaEGQCMCxHqZEy2qh3CAdCxtbhvJctGe4U4vjWTckx8v70s+Cfvw1L8JGtkM 5LLjXC/hk5tBXaRRDmhEyULYsa2kEG5aYB/1/smHVQvWpImb2oZhlyyBwdrd3TsT/hLY mw6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14si2927273pgo.579.2019.06.19.05.44.09; Wed, 19 Jun 2019 05:44:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731894AbfFSMnj (ORCPT + 99 others); Wed, 19 Jun 2019 08:43:39 -0400 Received: from ns.iliad.fr ([212.27.33.1]:37930 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727244AbfFSMni (ORCPT ); Wed, 19 Jun 2019 08:43:38 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id ECA7720564; Wed, 19 Jun 2019 14:43:36 +0200 (CEST) Received: from [192.168.108.49] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id D084F20186; Wed, 19 Jun 2019 14:43:36 +0200 (CEST) Subject: Re: [PATCH] phy: qcom-qmp: Correct READY_STATUS poll break condition From: Marc Gonzalez To: Bjorn Andersson , Kishon Vijay Abraham I Cc: MSM , LKML , Evan Green , Vivek Gautam , Niklas Cassel , Stanimir Varbanov References: <20190604232443.3417-1-bjorn.andersson@linaro.org> <619d2559-6d88-e795-76e0-3078236933ef@free.fr> <20190612172501.GY4814@minitux> <3570d880-2b76-88ae-8721-e75cf5acec4c@free.fr> Message-ID: Date: Wed, 19 Jun 2019 14:43:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <3570d880-2b76-88ae-8721-e75cf5acec4c@free.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Wed Jun 19 14:43:36 2019 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/06/2019 11:10, Marc Gonzalez wrote: > Here are my observations for a 8998 board: > > 1) If I apply only the readl_poll_timeout() fix (not the mask_pcs_ready fixup) > qcom_pcie_probe() fails with a timeout in phy_init. > => this is in line with your regression analysis. > > 2) Your patch also fixes a long-standing bug in UFS init whereby sending > lots of information to the console during phy init would lead to an > incorrectly diagnosed time-out. > > Good stuff! > > Reviewed-by: Marc Gonzalez > Tested-by: Marc Gonzalez Hello Kishon, Could you take this patch through your tree? It fixes a pair of nasty bugs. I do have a follow-up (trivial) patch on top of this one: https://lore.kernel.org/patchwork/patch/1088044/ What are your thoughts on the usleep_range issue? https://lore.kernel.org/patchwork/patch/1088035/ Regards.