From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3CBDC43381 for ; Fri, 22 Mar 2019 13:42:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9DBC1218E2 for ; Fri, 22 Mar 2019 13:42:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728370AbfCVNmd (ORCPT ); Fri, 22 Mar 2019 09:42:33 -0400 Received: from ns.iliad.fr ([212.27.33.1]:55430 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728010AbfCVNmd (ORCPT ); Fri, 22 Mar 2019 09:42:33 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 534CE207DC; Fri, 22 Mar 2019 14:42:31 +0100 (CET) Received: from [192.168.108.8] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 43FD42077F; Fri, 22 Mar 2019 14:42:31 +0100 (CET) Subject: Re: [PATCH] phy: qcom: qmp: Add SDM845 PCIe QMP PHY support 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> From: Marc Gonzalez Message-ID: <513163ea-78fe-2910-2e82-a7014bda82e8@free.fr> Date: Fri, 22 Mar 2019 14:42:31 +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: <20190226065919.22218-1-bjorn.andersson@linaro.org> 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 22 14:42:31 2019 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Regards.