Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp52076lqn; Thu, 11 Apr 2024 13:33:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVtOEhu3chft8RogY51eJnnE06hg8Ar3yY6ZqhQbbcnEgMpqkFw+eij5gGJR9A4AH+gVQ0gKEjK1E2UhqcsCaYY7eIt0BgHmQDHsTGZA== X-Google-Smtp-Source: AGHT+IHfZqm4nnS109RGTiJByt3DhiS7+jNPd/wMIbCsimZnW74sKytd3jjKu3+5n6FvDnJKaa/D X-Received: by 2002:a05:6a20:dea6:b0:1a9:9547:1146 with SMTP id la38-20020a056a20dea600b001a995471146mr910298pzb.24.1712867596891; Thu, 11 Apr 2024 13:33:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712867596; cv=pass; d=google.com; s=arc-20160816; b=hHHq3pdxPEldFTabwydrJuy+V2kDSfbNKTuXPc63PR0Jlo3iqXyafiVY37yIM5NI1G UOujJkgviJqIUrMH/fbv0w01iCl8RbUDakAiBd7c/TxNQvenrjVzLdCqcXg5cu7t7xul RpNGMCAVWRcKKaE0fFMqpe+Er7kw7v0aL0Eq/83W7mNdqYCIGgWy61iRwgsptyT8UkSP A/qFj9DaM9Q2XFTyCrFyZlIeVxjDdw1dVJXOlAtJVdZbFl7UGbor5w49Ewx5+YBJN+XC vYS0hQ19DSJC52hYCiIDVvnvB12DkQggC4pjhcWoPMonb30eQAGhKh8x5RsO42TZIoSt spPw== 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=ONM6qGXwZNOSTTCELomosW3dBjUNpoKKkgP2gKgU2NU=; fh=XenCLugC1QCiqC3d0plDfXYDbxVrHJVgS4LyMHe8iIM=; b=RUX0L94X2AE/ydtNmhIUptbnfgIiSpx6amxGvXlEDxNK9AUhyfmpPnVmhKlfs7Ti7d 1/FVYGz6+Vzqz1u+IaludeMkbDMcrI0ko6vKLM/DrAWxy9CfyjguLkv7gjzX66oWFEGy bbC4aIIC1cPVD+RdC/Cx4BYq2cYf8P/pFAay7xngYV8C0o7qivWvYQnB+CYoJsukPwPb 5dDG03VLg4M8fcGYl3PbJbHupovNVG+RjmoYZTSvRRokUH2OAIAzE+8LmbuvvpmRLJK6 TpXx53l2BBeWy6NeDcs/uNF/GjQrpaKXc8yhWEsxWLb7OFhPxg1mQKhZHLDum2KLjm1R 2uvg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HMw2DWeX; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-141562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a1-20020a170902ecc100b001e431fa8459si1865393plh.38.2024.04.11.13.33.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 13:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HMw2DWeX; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-141562-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141562-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 1D78DB23A2B for ; Thu, 11 Apr 2024 20:15:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC6E318037; Thu, 11 Apr 2024 20:15:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HMw2DWeX" Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 9A2B717C95 for ; Thu, 11 Apr 2024 20:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712866539; cv=none; b=TfJsZW5ODhjTTo8i+mzbZr79P/bFmDVcX21GUophbxxGtJvgYrFBdTP9RBN939cpvtNRJ64L4RFmH/h7cUBcY9OJD7z7FejvjxYMimLGLOhCYMa5QUvFMphPgz8Jvd96VnMBgm+byR7SAZJZ6DRGvVHAsgcLOOBnFgAa8A/sN44= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712866539; c=relaxed/simple; bh=xZcPqO7ReU3NUagBEcPN6/gO2IcyUcibJH2Opu4ThrQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a3mYPniJhkalk6ox0flKOFCI5f5ujRczDL3po7iPiBct8XWQu5WXS/GO2+N328/APGWEGMT6ztNvkXavHjZf64HuBy2FEtkVBCXyBCNaRubVzXCRiFh/ataJmBJLBeK0hHP86IwGeJaRNu94jNKgcs9aD6x2UeUCfYCSElQa7Fk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=HMw2DWeX; arc=none smtp.client-ip=209.85.208.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2d718ee7344so1831701fa.2 for ; Thu, 11 Apr 2024 13:15:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712866536; x=1713471336; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ONM6qGXwZNOSTTCELomosW3dBjUNpoKKkgP2gKgU2NU=; b=HMw2DWeXUDWvkZ6vtEp5yTyzT7OREQz15OFgMm2CxsXTwVJw12pAwMmU/7MrloBY3R NwlaCgtRJIMszz8CxDapHQ1SNTxJOT8rYChwbcR5LFaKtwPJpr/V4JTEgSwVTjkItRGm 8lRahGvq1vxvx9bN8+27QAJzJiXG8JbpPOfyaLvdky87hJpE0XERJ9u8o0FYd5ATqLwX GwhVn1Bv1dNX3qYtgtXLggMY3EoY8bkIsbJBkVvUo1Mp0eA1bssm4UHmpG5fnLyNWlC/ pWcsb8VKiwnu7uKr9qkjSfFPYHPc1GlYWcJjxhxerTEfw+0VLneuAWSrlujwk6cz7jrl b2rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712866536; x=1713471336; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ONM6qGXwZNOSTTCELomosW3dBjUNpoKKkgP2gKgU2NU=; b=jexmjjynVzPj8STc3icmWx55tdOUEjbApYo6RYkjB/pUaVCz/gpGs29jKBxqzdB+eb I8wej00Xz720aFu/AkMzifHsqN7+esDnY6xM/rYTv5ONGJ0q4d0f7lUrcVNq56jVLYnN F4aQjjTk0P6F+IPoXBN9a/IPw6YHxjS0/UXxcnpowZhQMUe25z3fRZ9jv8Rez/RAxHvl ZSiScL3gyhFw8mx7nrKKkwxeMr4wr7TAKeVX10y+GPw0dByLQ8z1K+/U9lm7iHEhWPAU zx4oHMgAEqWi14oszbNcR019adZ3LlhcBmrVxMd1+gJ2LLjlg0F44O6NS+e8y30RwPTD rFSA== X-Forwarded-Encrypted: i=1; AJvYcCVtgMu2Nk7gwyY96Fn07uIgx+XXXVuqceAE7YwY+6MJwIOcZn7c3kiD7mp5cmD00C6aCrzPtAwgvAVSKw/ZWO0iTY9Xpc/98F2RnFhi X-Gm-Message-State: AOJu0Yztfsjxq7CGV8QCC6zm4U5q7yIv9fHnblxYAXvSbaBve+r/zXH0 ZMmnBr4aPhMihaLC5BtVqplnECNXuEzBQFK05fzqn17l4htTHzaSI+izYEgk8uw= X-Received: by 2002:a05:651c:104d:b0:2d8:dd28:8748 with SMTP id x13-20020a05651c104d00b002d8dd288748mr503632ljm.1.1712866535697; Thu, 11 Apr 2024 13:15:35 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id e8-20020a2e8ec8000000b002d860a40f9dsm302300ljl.136.2024.04.11.13.15.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 13:15:35 -0700 (PDT) Date: Thu, 11 Apr 2024 23:15:33 +0300 From: Dmitry Baryshkov To: Bjorn Andersson Cc: Konrad Dybcio , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org 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: On Thu, Apr 11, 2024 at 08:27:22AM -0700, Bjorn Andersson wrote: > 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? Yesm of course. > > PS. Too much scrolling to find your comments, please trim your replies. Ack. I'm probably too used to GMail and Thunderbird extension which collapses quotes. > > Thanks, > Bjorn -- With best wishes Dmitry