From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A65FACA9EA0 for ; Mon, 4 Nov 2019 12:03:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B5F2217F4 for ; Mon, 4 Nov 2019 12:03:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728542AbfKDMDq (ORCPT ); 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