Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp39875lqj; Thu, 11 Apr 2024 09:16:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULwbLTBbpOnb3WszkRJ1csFvh5rGg7Gix+phEKNDQgiSfJZtp49LHlGoc7t/aLZgcn6kJ2lWU1sWE1M6VXBhWOzZNoD6oh7dmiha7uXg== X-Google-Smtp-Source: AGHT+IEobmldm61m3ddGHRc8hHNlo3MznIG7OnwJcl+fYlLsau+QzY/1G5RLHORLqP65c8YxrMTr X-Received: by 2002:a05:6a20:3cab:b0:1a9:5b3f:f212 with SMTP id b43-20020a056a203cab00b001a95b3ff212mr403204pzj.4.1712852212804; Thu, 11 Apr 2024 09:16:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712852212; cv=pass; d=google.com; s=arc-20160816; b=TAfqtdpj/pHiB+PKsf7LAdlWP6gIvTuFn5vEAuHab/kx1sga7OIR49ktE1DQzLhbXB +1kFgyERQuhLx8+/429XEr8ykljtWt0f03CSqrcOQyTVhGTrjCBG19aD6UhoWKv/51vW ih8EtPrXFp3g2gd50qcITuFHQGB4G7r8ptV1ORLG0PUZslA07PFaXbUpGn/WUT/Nwvmj oyKxTu9kALMNoFDos6xR54XIi0L2dV26PkQz1dqSh0uwbdLRJn7oouloTpXd79uV0wDP uLle9ow9JDebtu8nShGlI3CnIAbMBeaP8r36eMeKmyNCYiRlgdUQN2MQ4O6qleEPjjMe Ok4A== 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=SU914IS7nWQIMQGrQnY97Qwb042xHHXVq9oEdqDgzAg=; fh=DxzJ+h5Q0T59rI+JDmEBC7vmzo/cqJOMA4MIkmU/C1s=; b=T3eYPh6re7ptZu8hm8jmruIsl10EEW78NoYWreN93hNGRTwsXToqegNFUhz42PlPJL DlhzqZcAi36c1WyAKlIcOuCjJOrX+QiILjKsgGa0yfiLbt+KF8Li7Jkp3PvVzQOUHj2x evbKSflN0xX/u5ZFWJnCgpnxLbpphhUPQJ/1kH2Rllil2iRF87ElKPbWkdf9gkxJmHrr PdPWYSBrYrDhit3PxDyNrDiGewR/415Gb19165ylHmU5zUvQKJPBH63MwIbmNf2R0z3+ M3tldL/erZ3Nh0m66cS+h8/QhzKuoygdCmeskJfl6S4UMcxATsZollmPERFWqW/zpRy3 q2/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=isOzmkaP; 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-140749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140749-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l184-20020a6391c1000000b005e45abc8c8fsi1481982pge.306.2024.04.11.09.16.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 09:16:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=isOzmkaP; 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-140749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140749-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 53758B2ADF4 for ; Thu, 11 Apr 2024 15:29:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AAF714286; Thu, 11 Apr 2024 15:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="isOzmkaP" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 08088DDD2; Thu, 11 Apr 2024 15:27:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849260; cv=none; b=Qxtxb3lsIeQpg55BfNPOoegNXvhuPF/VLQCrPyh7myAO2LlBJNC9SactbQg1dbUjFw/qweobxyQcS8oFSaxvnmxjNMumFlmWVdn1Nc967OsQlHUaYrqKAG99ZMmsszEuhcBeNO8GYp4ic1RRWj4reJwR9anbWttkpm34PO0PUn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712849260; c=relaxed/simple; bh=MOR8RtxiDkLGM2xaVJZv8KMXL6ANR67L9pVcj11H1Y8=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BCLTtFizLk/tfemR2TztXEhB8icS67FuHgHrI2lYOYCdIYBn6AgmOKadkYWzlJhKpQHhOJFWMU7l3QBGPBbm7zTCSeSezORczo4gNDx52mShItlJCMqwQAHZvS4FGY0lQMl5xZVVs2DXx8MgkHwA4ZEya6HCELT7ExduC3rGDmA= 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=isOzmkaP; arc=none smtp.client-ip=205.220.168.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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43BDjjO7011546; Thu, 11 Apr 2024 15:27:25 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=SU914IS7nWQIMQGrQnY97 Qwb042xHHXVq9oEdqDgzAg=; b=isOzmkaPX906H0Bw5sB5wNJ3VQvtFBrHZBxMh f0O1HxHfkpHcEGKAOLKfww4tiCNQgskhuO+3zho7Bt4CfAROCgK0QGMC3C903OYb YLhoE8b4E3oc3hKSDXtaK/phVfOCJdG9LhIghSnyGJ3+kETdkHB4VDKnl1apQ3RN G7lwQQ+8LyCUob5KROfOfhd0fMPWhgz35ELXuixFzr3cI7y9aKUFoXH3xTwqKIwj kcR46BVcLiqDorLXt1fSuLd3jqDdIk3VeCrXLTbfJlbGl/6Uf8Ah0VMr8XUHl2Sc gI+vZkOIo1Zdg4bcbyS+rR0+Wf35jWZllM7Sr9WJE598Kwbxg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xebq1sk69-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 15:27:25 +0000 (GMT) Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43BFROHL025554 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Apr 2024 15:27:24 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, 11 Apr 2024 08:27:23 -0700 Date: Thu, 11 Apr 2024 08:27:22 -0700 From: Bjorn Andersson To: Dmitry Baryshkov CC: Konrad Dybcio , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , , , , Subject: Re: [PATCH] drm/msm: Drop msm_read/writel Message-ID: References: <20240410-topic-msm_rw-v1-1-e1fede9ffaba@linaro.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: X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) 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: L2mm3oB7bSj7y85U5AUwn-1c4eJIxsqY X-Proofpoint-GUID: L2mm3oB7bSj7y85U5AUwn-1c4eJIxsqY 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-11_08,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=879 spamscore=0 suspectscore=0 clxscore=1011 bulkscore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404110113 On Thu, Apr 11, 2024 at 04:31:41AM +0300, Dmitry Baryshkov wrote: > On Wed, Apr 10, 2024 at 11:52:52PM +0200, Konrad Dybcio wrote: [..] > > diff --git a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > index e4275d3ad581..5a5dc3faa971 100644 > > --- a/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > +++ b/drivers/gpu/drm/msm/dsi/phy/dsi_phy.h > > @@ -12,10 +12,10 @@ > > > > #include "dsi.h" > > > > -#define dsi_phy_read(offset) msm_readl((offset)) > > -#define dsi_phy_write(offset, data) msm_writel((data), (offset)) > > -#define dsi_phy_write_udelay(offset, data, delay_us) { msm_writel((data), (offset)); udelay(delay_us); } > > -#define dsi_phy_write_ndelay(offset, data, delay_ns) { msm_writel((data), (offset)); ndelay(delay_ns); } > > +#define dsi_phy_read(offset) readl((offset)) > > +#define dsi_phy_write(offset, data) writel((data), (offset)) > > +#define dsi_phy_write_udelay(offset, data, delay_us) { writel((data), (offset)); udelay(delay_us); } > > +#define dsi_phy_write_ndelay(offset, data, delay_ns) { writel((data), (offset)); ndelay(delay_ns); } > > What about also inlining these wrappers? > But that should be done in a separate commit, no? PS. Too much scrolling to find your comments, please trim your replies. Thanks, Bjorn