Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1562001ybb; Fri, 29 Mar 2019 07:01:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNgaSIkEzkUTkhpF9njmQyVeb6le5W9lke2tiYiKMDJt3JrORpZ9nFZfC2ySHjmSlvnljj X-Received: by 2002:a62:5a42:: with SMTP id o63mr49176690pfb.170.1553868066423; Fri, 29 Mar 2019 07:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553868066; cv=none; d=google.com; s=arc-20160816; b=Fp8qo10lJnkbV34JELmC0CRdhHixylaG3/Bde4gyO7du0fQuV6ay8YpyQ/Rw5rrrVR FGBumf8es0yKc1hD9IcrvNPSGdl9BD3LY/tyYEz88FzHeDYyOv/oH7VpaidVTvpSNVE4 Rafok1BowUBJBo60aIN6eY/IfthvXJPWCojkiZjPrdCg3nlYr40qqadKlKWVSffPtanV D/UAlpJBKubQ8T+ChTY4r39v3ykRMxQ33969ZqALNjOjvZDsnz0AhDY/Mg72SBjPHKPt s4G08DEQMt1VZqBSEfCIo3v+cOyE+O9l9FF3/xpVQyb4QOu5iW3tHbqPhhnZ0ke9Yhpj Pb6Q== 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=3QXnk9G2DON5GH1Jg5KMYUr/ZWgPXWocLYOx1/G9V4w=; b=LEaq1nZgfpJMOsXQ7zHRtEQxAlAjf+NsVWqzL42wwLFQmD6aJ0NCdeBAUHA+613e+Q H6zczacaADFA8KkXPzTgcSbEk9796ZbjwWyJAMEZdsjapmA73j54qjLOC224IDUbeWKQ GkP31GyWjLbUpYuMCOqMSleDf5Ruzb0LilipJ0LrnQmZqy6r+d4WEaA4+L6cyw73yG1a xGlXqz5q8pMu1EkRnMGOvsaT7mtaMeUjvCMU5xPSUaDPS5kRD4h9T3I4VNboQg96iP8K //boFz72eBFfmKl5cBIR1MccIUA1QcaANZ+wEaM92zPWXyfcY8ARd6w/k0Sq4zsVn2O8 K3sg== 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 h127si2011792pfb.213.2019.03.29.07.00.50; Fri, 29 Mar 2019 07:01:06 -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 S1728994AbfC2OAC (ORCPT + 99 others); Fri, 29 Mar 2019 10:00:02 -0400 Received: from ns.iliad.fr ([212.27.33.1]:35738 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728804AbfC2OAC (ORCPT ); Fri, 29 Mar 2019 10:00:02 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 711A0207AE; Fri, 29 Mar 2019 15:00:00 +0100 (CET) Received: from [192.168.108.8] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 5A3211FF15; Fri, 29 Mar 2019 15:00:00 +0100 (CET) Subject: Re: [PATCH] phy: qcom: qmp: Add SDM845 PCIe QMP PHY support From: Marc Gonzalez To: Bjorn Andersson Cc: Kishon Vijay Abraham I , MSM , LKML , Can Guo , Vivek Gautam , Evan Green , Jeffrey Hugo References: <20190226065919.22218-1-bjorn.andersson@linaro.org> <513163ea-78fe-2910-2e82-a7014bda82e8@free.fr> Message-ID: <6ec3dc39-ea9b-db3b-25d1-822601d06391@free.fr> Date: Fri, 29 Mar 2019 15:00:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <513163ea-78fe-2910-2e82-a7014bda82e8@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 ; Fri Mar 29 15:00:00 2019 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/03/2019 14:42, Marc Gonzalez wrote: > On 26/02/2019 07:59, Bjorn Andersson wrote: > >> @@ -1384,6 +1536,11 @@ static int qcom_qmp_phy_init(struct phy *phy) >> >> qcom_qmp_phy_configure(pcs, cfg->regs, cfg->pcs_tbl, cfg->pcs_tbl_num); >> >> + if (cfg->pcs_misc_tbl) { >> + qcom_qmp_phy_configure(pcs_misc, cfg->regs, cfg->pcs_misc_tbl, >> + cfg->pcs_misc_tbl_num); >> + } >> + >> /* >> * UFS PHY requires the deassert of software reset before serdes start. >> * For UFS PHYs that do not have software reset control bits, defer > > I think it would be better to configure pcs_misc *before* pcs. > That would be closer to what downstream does (for 835 and 845 at least). > > Also you don't need to test for NULL as that is already done in > qcom_qmp_phy_configure() -- and in fact even that test is redundant, > since the array is not dereferenced when count is 0. > > When are you planning on sending a v2 of your PCIe series? I split my comments across 3 messages. Have you seen them all? (And taken them into account?) Note: I folded the drivers/phy/qualcomm/phy-qcom-qmp.h definitions within [PATCH v3 1/2] phy: qcom-qmp: Add msm8998 PCIe QMP PHY support Regards.