Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1805317img; Wed, 27 Feb 2019 05:49:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IYjUZgsyVcNtH9jqrK/iys9vOgxfGPkqKp6HdteUOUmmN8cIP9E/QmQXENYeis5qsfxh3SY X-Received: by 2002:a63:8743:: with SMTP id i64mr3048872pge.69.1551275378464; Wed, 27 Feb 2019 05:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551275378; cv=none; d=google.com; s=arc-20160816; b=vGQu1c8lHftK6YpMg9IQzf8jucUHM1EMVMz09s6htuRorJcR4DdF8dZlpC0IiDaja4 rL0Tc4saVvS/EQrUqmra21MbW9+r7e9lnV2mPQnL8etIYo6tkKP/uPfAJm4jv20SlqrD aYWqbZ/NYPqrD3FLl8sAkBydVK6eRhKVlSARWFg2Wtg5WX+Pdp3BswJvJwCp4QldPs/j WFVGcIU69qEBJ1YtWPIYQxH05A7ov9gdIiUhKY9+B769hQYMnrlMPovHmA/3pD4ts0LA PRtB0ziKnYvMUtAQJVK6on6rNZZwG8UPGKK3yAPdlsRObPzp2B+lIA9+tIwmwSkSPHkG 6oiQ== 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:from:references:cc:to:subject; bh=4Is+rRhgbzTwEwmxNH73RF7snuTEC1BXzHqXEbvrrGQ=; b=su3fX6YYM/7seLpoUhUVR6BH9INMxyGxQOghHe8vKJW2KM6IKkAE28H0UKzIcGw+1M wDf9ArQvK45TGyoCxmmeJ+GCiunC6TUAFl3wb3z2dW8HiNV+j5wLQj9TmLQ32SgiMkuT m682WUUjkefczjlo17US0ZBN1eugRAD+JGgSg91M+I0bZNMwNFxMiEUX0u7Xtz5Ji6oP b2fIdA2bNAOcYMnZE1vlSG26xE0Jp2uvbVIo3wQnq4mOjACAsQLpH9g6kX68eBhTTTNv 6dThnRaG8jv+QLFqtG9RtYPYhFiSdoNP2KTmD/+zOWIeLSdtjeB5c1f6ru7hTmvUtwII k4Jw== 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 f20si15098636plr.419.2019.02.27.05.49.23; Wed, 27 Feb 2019 05:49:38 -0800 (PST) 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 S1730360AbfB0NtE (ORCPT + 99 others); Wed, 27 Feb 2019 08:49:04 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:29897 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730094AbfB0NtD (ORCPT ); Wed, 27 Feb 2019 08:49:03 -0500 Received: from [192.168.108.68] (unknown [213.36.7.13]) (Authenticated sender: marc.w.gonzalez) by smtp3-g21.free.fr (Postfix) with ESMTPSA id C6F4913F85F; Wed, 27 Feb 2019 14:48:42 +0100 (CET) Subject: Re: [PATCH] phy: qcom: qmp: Add SDM845 PCIe QMP PHY support To: Bjorn Andersson Cc: Kishon Vijay Abraham I , Rob Herring , Mark Rutland , MSM , LKML , Can Guo , Vivek Gautam , Jeffrey Hugo References: <20190226065919.22218-1-bjorn.andersson@linaro.org> From: Marc Gonzalez Message-ID: <1e1074af-bdd1-3e0f-6f52-14b3057c73ba@free.fr> Date: Wed, 27 Feb 2019 14:48:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 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 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: > +static const unsigned int sdm845_pciephy_regs_layout[] = { > + [QPHY_START_CTRL] = 0x08, > + [QPHY_PCS_READY_STATUS] = 0x174, > +}; > + Just use pciephy_regs_layout? > +static const struct qmp_phy_cfg sdm845_pciephy_cfg = { > + .type = PHY_TYPE_PCIE, > + .nlanes = 1, > + > + .serdes_tbl = sdm845_pcie_serdes_tbl, > + .serdes_tbl_num = ARRAY_SIZE(sdm845_pcie_serdes_tbl), > + .tx_tbl = sdm845_pcie_tx_tbl, > + .tx_tbl_num = ARRAY_SIZE(sdm845_pcie_tx_tbl), > + .rx_tbl = sdm845_pcie_rx_tbl, > + .rx_tbl_num = ARRAY_SIZE(sdm845_pcie_rx_tbl), > + .pcs_tbl = sdm845_pcie_pcs_tbl, > + .pcs_tbl_num = ARRAY_SIZE(sdm845_pcie_pcs_tbl), > + .pcs_misc_tbl = sdm845_pcie_pcs_misc_tbl, > + .pcs_misc_tbl_num = ARRAY_SIZE(sdm845_pcie_pcs_misc_tbl), > + .clk_list = sdm845_pciephy_clk_l, > + .num_clks = ARRAY_SIZE(sdm845_pciephy_clk_l), > + .reset_list = sdm845_pciephy_reset_l, > + .num_resets = ARRAY_SIZE(sdm845_pciephy_reset_l), > + .vreg_list = qmp_phy_vreg_l, > + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), > + .regs = sdm845_pciephy_regs_layout, pciephy_regs_layout > + > + .start_ctrl = PCS_START | SERDES_START, > + .pwrdn_ctrl = SW_PWRDN | REFCLK_DRV_DSBL, > + .mask_com_pcs_ready = PCS_READY, > + > + .has_phy_com_ctrl = false, > + .has_lane_rst = false, Obviously, false entries may be omitted. > + .has_pwrdn_delay = true, > + .pwrdn_delay_min = 995, /* us */ > + .pwrdn_delay_max = 1005, /* us */ I think you can drop this. Regards.