Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp574732rdb; Tue, 23 Jan 2024 08:10:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHY2g6EVNT69a5+EpZQfFl7mvuiRsnzFstzfPiL2VZMn8UNNDP5WH5A0GdBqXH06wAfOgU5 X-Received: by 2002:aa7:c697:0:b0:55c:8cdc:b2c6 with SMTP id n23-20020aa7c697000000b0055c8cdcb2c6mr501335edq.10.1706026236627; Tue, 23 Jan 2024 08:10:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706026236; cv=pass; d=google.com; s=arc-20160816; b=P7/RcKB/9Ibi6lUEg+Xmn2dfx3AZDSzsAkiLpbM067O/U6uMyTsict0FITgxeVX7Hv WGmLpSeSjmE9UpQsX/mWH0id9dEiAA9oKObWSBcUL1nKEg8MKCV5dWUitSJ80RqpW3uu g0h99hs2+Axqgd83B/by2R8b9TYSTWKl7gQkY0z5Zp+s6Qad2X4LXtGSXcGOAfTVCnaq MvNpp3YuNq80cPSIzRmATAc26emw7lYIFDqjMubYscHcEA7jJiqNNFLTAhvslnjSweez gpwj+9hhBKmupq5aDANQ05O4eJLbsAx+S66I8wAvDrKYwYtuZc/OcOpLKd7eGQ8T1Ngh hM7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=9aeZ9T+ieCTjHLP9T+AlBqZqFSYlGNv4TaAS0kSX4XE=; fh=+priLTXPrJpNkJYKDXAD65pxaGrbpvphCNJZD/fRpHc=; b=Ifjhdt6pypWwcWPqs1/av7it51wgQ2seeKE7W2f5CWXw0+LRoBq/ZOvPPkfcxKwj4v eqDYe81vhh5/xB5bTrGPzTgE8CXxRo4ftCC42kolkfJmfCr0kElaEO9f7RjSS62CRBYw GHH4RFA1CnuOtol6HSubl74T799Eu0K7deu3gqmJE1JsS6VyXWkDvetwe5SLpKIhAXDg 5jBhM/hxDTADs0CnEPgSCLVoMUK7cwMyt8ubr1FuzZjSfc1pDcoJV991Bja2vV8qIeHl VvW3Az/pcd0yOxylBcUFREuVghtTyj46UAI4aDKhS88p6K1n4QvG+i0zyDm35tzkysea DkvA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@8devices.com header.s=8devices header.b=askbaJZJ; arc=pass (i=1 spf=pass spfdomain=8devices.com dkim=pass dkdomain=8devices.com dmarc=pass fromdomain=8devices.com); spf=pass (google.com: domain of linux-kernel+bounces-35627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=8devices.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ew3-20020a056402538300b00559a3dbb971si8078188edb.406.2024.01.23.08.10.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 08:10:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@8devices.com header.s=8devices header.b=askbaJZJ; arc=pass (i=1 spf=pass spfdomain=8devices.com dkim=pass dkdomain=8devices.com dmarc=pass fromdomain=8devices.com); spf=pass (google.com: domain of linux-kernel+bounces-35627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=8devices.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6391D1F2607B for ; Tue, 23 Jan 2024 16:10:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 931156A347; Tue, 23 Jan 2024 16:09:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=8devices.com header.i=@8devices.com header.b="askbaJZJ" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0822466B29 for ; Tue, 23 Jan 2024 16:09:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706026186; cv=none; b=inXHJ08AfMyPIaq2C8O8UuUqcNW6L84e1rFBj56GKXZtxBpwHKG/N6jTAQ+kXXXv88naBo72H3s2lKhoUX5JENUjTY3KqFKHDPwNwLUxkdcq6mB8B/BsU3iAZx5X0SRb50q+PO/JXfY8cXiPBmNrLvXqAndXnyDrSueXatqX69Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706026186; c=relaxed/simple; bh=3kUIcHMZp9ESusmAFQXmdY4T9ktzKZmqQiYsfpE2vKE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=ppfUZl9H7OqpdjeKRSC9meSoga3lBr9ZLV3DSiqd6IlWutrdl7XRRSrCvwN2mroa30UCkoKQKn1efXltCsUYP4ubxXwfCaAUOX8G+KlfU9PJ3RGlKSAtsHQIO9WSG6KvITycGJ33+J/21xW/7JVKJDBgV5McK2LnZpmuIGmUAmk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=8devices.com; spf=pass smtp.mailfrom=8devices.com; dkim=pass (2048-bit key) header.d=8devices.com header.i=@8devices.com header.b=askbaJZJ; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=8devices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8devices.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-50e741123acso5295929e87.0 for ; Tue, 23 Jan 2024 08:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8devices.com; s=8devices; t=1706026183; x=1706630983; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=9aeZ9T+ieCTjHLP9T+AlBqZqFSYlGNv4TaAS0kSX4XE=; b=askbaJZJl8eLH+SG4IGtvx2/Mc1OHptftXBj/5S7ugFVaxO8dtnrtwOSrhS0o/Rn6e cCuhvvDSGVcyTTGmu8rLkvVRytjQiYnEu3V8Pm6h7tUUq7TBozdYY108uQtQbie6T/PL CZFoKVAxh+1qaRF06NfvznmQixtPQPOF6bneY3WEvDrbOsQPOHJBXHwWWmZmUrodtcaT hYr1EYyIIViPVvzIZ595TrbHwabh4GIPYWAunw4xExOMCUyFbnEyc15ZdJK/Uwx4lsp9 XvjNJkkAs6Vvg3PNNRot5pKNgqNC+eokeZiThA2o8M4ZrpmtTobI+1LT8ol5N9yCOdLU 1Vsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706026183; x=1706630983; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9aeZ9T+ieCTjHLP9T+AlBqZqFSYlGNv4TaAS0kSX4XE=; b=ALpyrSId1RrFrdfGUtkP3O0i04N4y1u67VBfeY7/hRoKtUBq5+Ynt+2+3FfPIOUF3A lEJwbw/Sb4MUr5C/tmwDMteUGhrZHGooGJiLxeuxb9h8fs8p76GZd7pJFlSgubItfs0C OSmIXxtSRNoecBCitdPDt2XMamhU43QIb4EDo7Ebh00Wamr+T4XroOQ+OUZys2AaBf+s S2SwLcWbllv2vWYB0H1UXM1q3H2rUIJKiommKvIJY6uEGfsPls00OGbFfodFL4WNXSvS tIwMWg/24Fz6RvhLbgxgjWWoeBFo4xIh/EhFTsq557gdEmkP5xBV/H410JKpVHCaJovX NppQ== X-Gm-Message-State: AOJu0YzfVggnTDsH44dEx/2B52kFKowMNGAD7tj6Zg1yCWNhYIHFdJkl j+Lkqv5uJOOqo/pJmklnEElkM8eKO/wEdgRhHQYtSlI4eYdgvn0BtYk1FHi091/+VYt+4VBkSnH FF4E= X-Received: by 2002:a05:6512:a90:b0:50e:a9da:7b2b with SMTP id m16-20020a0565120a9000b0050ea9da7b2bmr3401307lfu.94.1706026183207; Tue, 23 Jan 2024 08:09:43 -0800 (PST) Received: from mantas-MS-7994.8devices.com ([84.15.37.222]) by smtp.gmail.com with ESMTPSA id q20-20020a0565123a9400b0050e7be886d9sm2336950lfu.56.2024.01.23.08.09.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2024 08:09:42 -0800 (PST) From: Mantas Pucka To: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Baruch Siach Cc: Mantas Pucka , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] phy: qcom-qmp-usb: fix serdes init sequence for IPQ6018 Date: Tue, 23 Jan 2024 18:09:20 +0200 Message-Id: <1706026160-17520-3-git-send-email-mantas@8devices.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1706026160-17520-1-git-send-email-mantas@8devices.com> References: <1706026160-17520-1-git-send-email-mantas@8devices.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Commit 23fd679249df ("phy: qcom-qmp: add USB3 PHY support for IPQ6018") noted that IPQ6018 init is identical to IPQ8074. Yet downstream uses separate serdes init sequence for IPQ6018. Since already existing IPQ9574 serdes init sequence is identical, just reuse it and fix failing USB3 mode in IPQ6018. Fixes: 23fd679249df ("phy: qcom-qmp: add USB3 PHY support for IPQ6018") Signed-off-by: Mantas Pucka --- drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c index 05b4c0e67896..6621246e4ddf 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c @@ -1621,6 +1621,24 @@ static const struct qmp_usb_offsets qmp_usb_offsets_v7 = { .rx = 0x1000, }; +static const struct qmp_phy_cfg ipq6018_usb3phy_cfg = { + .lanes = 1, + + .offsets = &qmp_usb_offsets_ipq8074, + + .serdes_tbl = ipq9574_usb3_serdes_tbl, + .serdes_tbl_num = ARRAY_SIZE(ipq9574_usb3_serdes_tbl), + .tx_tbl = msm8996_usb3_tx_tbl, + .tx_tbl_num = ARRAY_SIZE(msm8996_usb3_tx_tbl), + .rx_tbl = ipq8074_usb3_rx_tbl, + .rx_tbl_num = ARRAY_SIZE(ipq8074_usb3_rx_tbl), + .pcs_tbl = ipq8074_usb3_pcs_tbl, + .pcs_tbl_num = ARRAY_SIZE(ipq8074_usb3_pcs_tbl), + .vreg_list = qmp_phy_vreg_l, + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), + .regs = qmp_v3_usb3phy_regs_layout, +}; + static const struct qmp_phy_cfg ipq8074_usb3phy_cfg = { .lanes = 1, @@ -2571,7 +2589,7 @@ static int qmp_usb_probe(struct platform_device *pdev) static const struct of_device_id qmp_usb_of_match_table[] = { { .compatible = "qcom,ipq6018-qmp-usb3-phy", - .data = &ipq8074_usb3phy_cfg, + .data = &ipq6018_usb3phy_cfg, }, { .compatible = "qcom,ipq8074-qmp-usb3-phy", .data = &ipq8074_usb3phy_cfg, -- 2.7.4