Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3857421ybx; Mon, 4 Nov 2019 04:04:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyvrbSXC9Y/0uUdzfwv8fAD0uDv/I07p83JR07HG/kihZcVBKwjtroawpc0JTAT2+f1YYgJ X-Received: by 2002:a1c:7c16:: with SMTP id x22mr23070349wmc.46.1572869096023; Mon, 04 Nov 2019 04:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572869096; cv=none; d=google.com; s=arc-20160816; b=seCk5Pqem0yoHnuPkva6uavqXNxP926HsWUUtqC2cxzZ93hU+IssM3CMiSjDAkV5mq XN0sDfaHN/jXe9clcjy8SIhjZzYFJslsakTZ8El/Gyv1g5PJiUi5QSzNiZZpHk42kv18 zQc3rWYUiIzaQL/u0o+EJM8xkD8D8rjVaY3MeafnVY6RE1kL1aP3mm86PySJjPOYbv/T pvshqIjrA0RRLLokhOVxys/nf6o/HnaYINYqoEh6DrXMRsyfGsK93Kqganj6nh+PuPSo SENkDYEdU7Udxr2IqTxtyY9OEjG5M1BurCzeiQqJlyN60hFK2m5NwKYqc9jAoCjIhxko 0PLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=x9D9F65Oom3ZqwZQ6Tuy7zVtwzxCt3Gml6m18sMSb8I=; b=yUL+iCWTiZ1hKymLgbtmKbGbGTpN4O+mx0D+lfAhPQseG8jmjOkLtIZBRXHh1Tq3Pn jal5UcsQRWP01zXvADDW30a3zT4KC/TXapjo0w6I/LC1Yc/80aIv8fOgmiJIVH0ypX5Z 0JN++wdz93JmWK35w5aQjz5eMYB09xFaSTeuJujENB3ky3k3y4beBkKOjyjjCR/Awk3j G904MkQJDdlgusF5B17K+AurGNVIcWOYyISM1ydABg0QPibxVx5GHmuXYbiL6RmBmB9r qJjkt+GzXnCeidGfLQC8k7SjHpecbBNMAuDN5eDRkj9AFfKp/RqFJzJvkh1cdz80a4AL NydA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si7715654ejw.412.2019.11.04.04.04.28; Mon, 04 Nov 2019 04:04:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbfKDMDq (ORCPT + 99 others); Mon, 4 Nov 2019 07:03:46 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:33536 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbfKDMDq (ORCPT ); Mon, 4 Nov 2019 07:03:46 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aratiu) with ESMTPSA id D406F28021A From: Adrian Ratiu To: Neil Armstrong , Adrian Ratiu , linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-rockchip@lists.infradead.org Cc: kernel@collabora.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Boris Brezillon Subject: Re: [PATCH 1/4] drm: bridge: dw_mipi_dsi: access registers via a regmap In-Reply-To: <974be8e9-fcb4-4457-8831-40b2fa834ae2@baylibre.com> References: <20191031142633.12460-1-adrian.ratiu@collabora.com> <20191031142633.12460-2-adrian.ratiu@collabora.com> <974be8e9-fcb4-4457-8831-40b2fa834ae2@baylibre.com> Date: Mon, 04 Nov 2019 14:03:56 +0200 Message-ID: <87v9rz97bn.fsf@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 04 Nov 2019, Neil Armstrong wrote: > On 31/10/2019 15:26, Adrian Ratiu wrote: >> Convert the common bridge code and the two rockchip & stm >> drivers which currently use it to the regmap API in >> anticipation for further changes to make it more generic and >> add older DSI host controller support as found on i.mx6 based >> devices. No functional changes other than requiring the >> platform drivers to provide a regmap via their plat_data. Going >> further each platform driver can also add its own regmap >> configuration like for maximum write offsets, r/w callbacks or >> different register layouts. Suggested-by: Boris Brezillon >> Signed-off-by: Adrian Ratiu >> --- >> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 189 >> +++++++++--------- .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c >> | 36 +++- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 44 >> ++-- include/drm/bridge/dw_mipi_dsi.h | 2 +- 4 >> files changed, 155 insertions(+), 116 deletions(-) >> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index >> b6e793bb653c..4ef3e9038cc2 100644 --- >> a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ >> b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -15,6 +15,7 >> @@ >> #include #include >> #include >> +#include >> #include #include