Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp915610pxk; Thu, 3 Sep 2020 16:31:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV8/PdZfw940W4UzjFaIV+++ZDYnokp4o8Du0Mw3iCFlu3B8GDkCWRoQMX7EATrVMaXb2k X-Received: by 2002:a17:906:cd0d:: with SMTP id oz13mr4591423ejb.212.1599175894521; Thu, 03 Sep 2020 16:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599175894; cv=none; d=google.com; s=arc-20160816; b=GBr0SSfT62lZIO7jLI9T0ghwgg1mYTQ9wW6kp1idkl2lY+o8efJLtwFq3+taND/QJ/ UOMIcZ3SnTcFiozurilLvvStbKKeE3EhoeyWjS9TozUjVbxnUHzomlC8q7xqqvN7Gxao D8jym/r3Hnc5J95l6gSWI3CgOCGx9x3er2RqBllSWwqbc4nJpHsrXPTfGN8kpCw3MnRt 47DG77kc9NS5GYKGanlSnfAj+aCN8LPD1B3qTv+L9EZHzNTQHhy43b6oHrdcGTokjGTb OMIepidYdsZIDGkNz0eJNw7mzlZjyhSUb+370X6rqFsVCCHOMLiFyxPujcwaIv89CJTu aIIA== 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:dkim-signature; bh=tER5efoKTXhoRI49DGq6kR5MKl16jgpcrniDIS3TWH4=; b=SZp1lv4EJVEgEATZzwPkSdbMpPLaTXbphWXgfcjI1wfJQAHNhfCYr4xwDp/kPwSlbP AgoF2CiPMWv6xYyR/X8lmyAbOt4o46plkLMDuMHn54VEmn9A5zviGFd0P46O0ac6CWmO qwumZLsdmUiQmhtEbnCxTSFjqj00+CEgq93ImrlDl0aEuSlMYUMknA2d+nE5o45rgUuR LPMaWZxHadMvmmmRGacgjgb+ddANuvy+mOiULGIZUrvW87mYQ+KI8uInZ17MTzD3wTav YLLexg05nupChAObKNth1FFJ5/VpubkOlCs7+oc1ZzMw7AlVqzO9U+Wv0CxPKvkl0pr2 +bWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=P8Iz+tAM; 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 i88si1894173edd.601.2020.09.03.16.31.11; Thu, 03 Sep 2020 16:31:34 -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; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=P8Iz+tAM; 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 S1729270AbgICXa3 (ORCPT + 99 others); Thu, 3 Sep 2020 19:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728271AbgICXa3 (ORCPT ); Thu, 3 Sep 2020 19:30:29 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3529C061245 for ; Thu, 3 Sep 2020 16:30:28 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id n133so4747509qkn.11 for ; Thu, 03 Sep 2020 16:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=tER5efoKTXhoRI49DGq6kR5MKl16jgpcrniDIS3TWH4=; b=P8Iz+tAMI2G73pmBCBPMKVteWRhgCOG8kZ5NkoW2pKohWNkpkYbaHlAfkCEVU1i2gN EpI9213e0JXvYg81is2Tf8AXYcM5zB3+GMa1m+VTd8CuWnjRbRYk4Q1LOkFOU6eJVT3F /gNZAcSmaqEmyH3DGWNvEQ7BNp0BWGhL6UFdvjy5Da5osKR6IDu1kVuECdiG88Mk8uqZ 5ta4+ky/SkoRH0zQKDx6eLfToQTXUvKv7Gn/VAxX4qV8d1MEelj9BKISJfLvW3wlcz2Q gkknVBseAEIHH6qhcjO/fzbJpauwUvoeJrpSX50rQ108IuSpBKsJsZo5bVeHf9De5Kp/ n+qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=tER5efoKTXhoRI49DGq6kR5MKl16jgpcrniDIS3TWH4=; b=gp0idytBn0h6OnN3R0gChtbIaA0p0VS6iWdbGwuCIDyC6HlqUF6Pt4gUj85vps8jLX KKWM7BaJ13qaYJCgZ9aCCKBFRo+Ap6/wIjirNKLPNlZHRui6fqm7oTeVvoQEBKvprx7X PiNmdc9LLhYh/X1T62lwVqEkYShNbo/Fj3r/qXfLRCk+kfTUmO/mLTf6FUsTjgM0fGMS 141nWMlar06HTnp3pzFHc48ZapmkBo6LEd7PP1HrWplQpTuyPJY54ixt+JSgTMH4hkmR 4LUcYrMPON64oanDUvz53xByv0I4O9phpk1Mg3AGJ7JHBIn8SqGhkk02YWwH/LtW1Qd9 L+NA== X-Gm-Message-State: AOAM532F4Q7u6gVpW4HVqK2Qy7zzKic7264HD22CH5Z2HINbvkygRpDe MKebTQGWBVyl6zMxbaCmIzbzWQ== X-Received: by 2002:a37:c404:: with SMTP id d4mr5392815qki.273.1599175827627; Thu, 03 Sep 2020 16:30:27 -0700 (PDT) Received: from [192.168.0.189] ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id m26sm3209338qtc.83.2020.09.03.16.30.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Sep 2020 16:30:27 -0700 (PDT) Subject: Re: [PATCH v2 08/10] phy: qcom-qmp: Add support for sc7180 DP phy To: Stephen Boyd , Kishon Vijay Abraham I , Vinod Koul Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Jeykumar Sankaran , Chandan Uddaraju , Vara Reddy , Tanmay Shah , Bjorn Andersson , Manu Gautam , Sandeep Maheswaram , Douglas Anderson , Sean Paul , Dmitry Baryshkov , Rob Clark References: <20200902230215.3452712-1-swboyd@chromium.org> <20200902230215.3452712-9-swboyd@chromium.org> From: Jonathan Marek Message-ID: Date: Thu, 3 Sep 2020 19:29:43 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20200902230215.3452712-9-swboyd@chromium.org> Content-Type: text/plain; charset=utf-8; format=flowed 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 9/2/20 7:02 PM, Stephen Boyd wrote: ... > +static const struct qmp_phy_cfg sc7180_dpphy_cfg = { > + .type = PHY_TYPE_DP, > + .nlanes = 1, > + > + .serdes_tbl = qmp_v3_dp_serdes_tbl, > + .serdes_tbl_num = ARRAY_SIZE(qmp_v3_dp_serdes_tbl), > + .tx_tbl = qmp_v3_dp_tx_tbl, > + .tx_tbl_num = ARRAY_SIZE(qmp_v3_dp_tx_tbl), > + > + .serdes_tbl_rbr = qmp_v3_dp_serdes_tbl_rbr, > + .serdes_tbl_rbr_num = ARRAY_SIZE(qmp_v3_dp_serdes_tbl_rbr), > + .serdes_tbl_hbr = qmp_v3_dp_serdes_tbl_hbr, > + .serdes_tbl_hbr_num = ARRAY_SIZE(qmp_v3_dp_serdes_tbl_hbr), > + .serdes_tbl_hbr2 = qmp_v3_dp_serdes_tbl_hbr2, > + .serdes_tbl_hbr2_num = ARRAY_SIZE(qmp_v3_dp_serdes_tbl_hbr2), > + .serdes_tbl_hbr3 = qmp_v3_dp_serdes_tbl_hbr3, > + .serdes_tbl_hbr3_num = ARRAY_SIZE(qmp_v3_dp_serdes_tbl_hbr3), > + > + .clk_list = qmp_v3_phy_clk_l, > + .num_clks = ARRAY_SIZE(qmp_v3_phy_clk_l), > + .reset_list = sc7180_usb3phy_reset_l, > + .num_resets = ARRAY_SIZE(sc7180_usb3phy_reset_l), > + .vreg_list = qmp_phy_vreg_l, > + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), You need a ".regs = qmp_v3_usb3phy_regs_layout," here, otherwise phy init functions like qcom_qmp_phy_serdes_init() can crash on a NULL reference. > + > + .has_phy_dp_com_ctrl = true, > + .is_dual_lane_phy = true, > +}; > + ...