Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp403681lqp; Thu, 4 Apr 2024 17:57:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnoz8svq8m+iZOoyZQvW3Cm3zMWEDzBgoFqeOVgp7JU4739slMzrOCHuIijsKR+wPZxTDscy/5PE3XGJ+Xf+3029ziSnDWpAmA/mtSKQ== X-Google-Smtp-Source: AGHT+IGpMd6+MOGxz9ttHiAb4BE8qDcQPxAgeYRe6/V3iFt//WKaVAk5qehU6HfzWxbUofERVMt2 X-Received: by 2002:a17:906:c103:b0:a4e:5bb4:48ba with SMTP id do3-20020a170906c10300b00a4e5bb448bamr3179457ejc.60.1712278625810; Thu, 04 Apr 2024 17:57:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712278625; cv=pass; d=google.com; s=arc-20160816; b=qsrM+UfIh6XNsGyBEPSvxMJQI7qoVVr0oxq187my/+fbgFIauWZ2PRfjq4wxjpuVm/ hHQ+LdLDLvL8qL2ZdjLq3fsqPD4aPlsLsGM3jEdV6dabnQWvC/t/qzFzSZ7CP2oP4hl5 2b79rnmyaQQ8f/oxtX6gbCmMt/NPgCiu5eWrZ6wrQAQdvTvlVdZsIWZ1nV1itvs+7apn weNbaohz0GOKMi5e4oF8eMf7RowKUr2/NGiucrW1mFM6mPdgR9i0ykTSyHIsGuCCL1cx CsURbfKDOwig+Jbtr1R5oBQFzO2JBTzSA9LqVkKZU4nfRGXqhSI7gPTCH0CAV0uq6BqQ W0Aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yzd5coMWPCOrv90ZYnD/R+hJ4RHF+K3JHTaV7pkE81I=; fh=GQVY0sXs8xrRXODSfNJKM80yTB7rSPHeh7qpXSdOYnU=; b=HVRFk1zg+eWQQIeaPFoHKpXzOoVq3aFPsz4SRWbrOxgLYLH+XtSjWwGJMLUcR61Zgr 6Do1T5JKYBE0xYBZv1YDAgDccjRAkYcCKBldVDXlN8J58ATsqrPJpMeVz1Pnp1qlTcT9 xPUBFRWFUOdG7nHuLesKtcO0/f+tuZl9nHEoQvGZv5acLbymsUA4R31DUvOEHErnz8y+ W8WToWa713mUaPHpT9VjTKBnm5wVkGKDBFhCwj7NcgfcccAI5wM8gAyhCMsHQ7ZxXZlM 3a34UxxmyOlDBsk+0+WMOxW5aMbZ6wxiJJHVU6kBfUY/X/Y+3kXZF6RsjFA1jz76io+X dVRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=om2fI64V; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-132300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 dm14-20020a170907948e00b00a474ece2f35si163087ejc.844.2024.04.04.17.57.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 17:57:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132300-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=@quicinc.com header.s=qcppdkim1 header.b=om2fI64V; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-132300-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132300-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 8880F1F23C09 for ; Fri, 5 Apr 2024 00:57:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 259F479E3; Fri, 5 Apr 2024 00:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="om2fI64V" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70B9679C4; Fri, 5 Apr 2024 00:56:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712278617; cv=none; b=DAcRCTZGhwi5M0wP6v5bf8Maq54oIebQiuZqeiIDQKN64Ehry8WjxNd0/X5SIHYiuWBK8dBRz/JH5dfE4K9qJ6O4NPnCZXhFb/r7kDwLCHBWa0crE83//22kbkskNE+FXM28z0lc75CQLzSpK/okL5wjcfyya350dX3pE7zxd04= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712278617; c=relaxed/simple; bh=FZuii16XQKVemvccVBKbsheLVEBX2Q/o6uOv8SQjsgo=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LfZhO89t7d8jWtPsxVsvbA+cf7rbLE04zR7uMdOJliFFIZKbVTJ9T+wUos/xJ03a8Tux79534371+T7OVIAYOj6SpVOgiAa6qaPuTB028FKuhs+0dkEVlayhSM4MJKLDQch9TwiZGRyp/lqXXzXCp5ITsNr3sQ6KZB7fsbtFgW8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=om2fI64V; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4350J13j005756; Fri, 5 Apr 2024 00:56:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=qcppdkim1; bh=yzd5coMWPCOrv90ZYnD/R +hJ4RHF+K3JHTaV7pkE81I=; b=om2fI64V9ITgC7JRGtlO2MGJatVkOXh8lyvXp rH37zAzd5PaYljPwBv+49VDWwT48ezX6YojpBnu5i8yb/MK6ptTqA+F1gvTo4jXD +KwF1D/c0Wgb5m8HsvOq7vsZZibePLSpQiB4izKfQnkkUGXLavwdy5UzId0zrHCa UK2MRlnTYbC/Oghx3Qc6egA3RgOsgSWgOU3kKnVteK5/DvXy1HEAOE9IHh1AlFMC oj8kMbE04ZG6pMNLCh11IbCGMrYPAGmlDhVjB2jFcIrdmY4rRIcaAw1LjtQerYYU 36bVRua0uRcdYw/Zu5znQkQzFsBYTOAdrYtrWyeV9FTGYH8Kg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x9ep4tudq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 Apr 2024 00:56:35 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4350uYDH031715 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 5 Apr 2024 00:56:34 GMT Received: from hu-bjorande-lv.qualcomm.com (10.49.16.6) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 4 Apr 2024 17:56:33 -0700 Date: Thu, 4 Apr 2024 17:56:32 -0700 From: Bjorn Andersson To: Stephen Boyd CC: Vinod Koul , Kishon Vijay Abraham I , , , , Konrad Dybcio , , , "Douglas Anderson" , Abhinav Kumar , Dmitry Baryshkov , Neil Armstrong , Abel Vesa , "Steev Klimaszewski" , Johan Hovold Subject: Re: [PATCH] phy: qcom: qmp-combo: Fix register base for QSERDES_DP_PHY_MODE Message-ID: References: <20240405000111.1450598-1-swboyd@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240405000111.1450598-1-swboyd@chromium.org> X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: BRft6WYWzjarLGvoLWWgOBcAExcf0m0e X-Proofpoint-GUID: BRft6WYWzjarLGvoLWWgOBcAExcf0m0e X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-04_21,2024-04-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 bulkscore=0 impostorscore=0 clxscore=1011 spamscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404050004 On Thu, Apr 04, 2024 at 05:01:03PM -0700, Stephen Boyd wrote: > The register base that was used to write to the QSERDES_DP_PHY_MODE > register was 'dp_dp_phy' before commit 815891eee668 ("phy: > qcom-qmp-combo: Introduce orientation variable"). There isn't any > explanation in the commit why this is changed, so I suspect it was an > oversight or happened while being extracted from some other series. Thanks for catching that, I wrote that patch long before Johan did the rename of "pcs" to "dp_dp_phy", and must have missed that while later rebasing the patch. Reviewed-by: Bjorn Andersson Regards, Bjorn > Oddly the value being 0x4c or 0x5c doesn't seem to matter for me, so I > suspect this is dead code, but that can be fixed in another patch. It's > not good to write to the wrong register space, and maybe some other > version of this phy relies on this. > > Cc: Douglas Anderson > Cc: Abhinav Kumar > Cc: Dmitry Baryshkov > Cc: Neil Armstrong > Cc: Abel Vesa > Cc: Steev Klimaszewski > Cc: Johan Hovold > Cc: Bjorn Andersson > Fixes: 815891eee668 ("phy: qcom-qmp-combo: Introduce orientation variable") > Signed-off-by: Stephen Boyd > --- > drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > index 7d585a4bbbba..746d009d702b 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c > @@ -2150,9 +2150,9 @@ static bool qmp_combo_configure_dp_mode(struct qmp_combo *qmp) > writel(val, qmp->dp_dp_phy + QSERDES_DP_PHY_PD_CTL); > > if (reverse) > - writel(0x4c, qmp->pcs + QSERDES_DP_PHY_MODE); > + writel(0x4c, qmp->dp_dp_phy + QSERDES_DP_PHY_MODE); > else > - writel(0x5c, qmp->pcs + QSERDES_DP_PHY_MODE); > + writel(0x5c, qmp->dp_dp_phy + QSERDES_DP_PHY_MODE); > > return reverse; > } > > base-commit: 4cece764965020c22cff7665b18a012006359095 > -- > https://chromeos.dev >