Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2845135ybb; Mon, 30 Mar 2020 14:16:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtcsdJic/1J5EYe+wWERO6mi9dg6PcHHcPnVGAuM41JSMcHNoi3c4a5U+GqIH1m4QjWJnbK X-Received: by 2002:a05:6830:168b:: with SMTP id k11mr11221195otr.156.1585602991234; Mon, 30 Mar 2020 14:16:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585602991; cv=none; d=google.com; s=arc-20160816; b=MuAn0AJWWxG+yqMzoescxqCZlX0Oywg4U8ThzOi9hefoSyaxZM4trZFGjjZHc97w86 X2LR+d6FgQ0H5UW+MflK6JXt+zY15CryB6+RWsmfcgMvthKlQxAoIxuFa36HZg2Tbcy6 4bm2FNzM2Azh4gpHXWDEpXp3Nsfq4Ffc9uMFC6qhwq7Dqq1MFU9HC6LL2MkiQJuYvEtP O+drCUapIK0bH8Ax7EjOmq/MzvOdV8S0ztvecghsSreIRavqaZuoyM7jH/7QLSC+YCxS iTZlgHG9ssKRMgI3cLEhykf9YNkanrTPgEQ9/J5nZF7eYhSi1aUfBkwOaTE3CNEr6H9y mAVQ== 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=uACjKUzdcPxbPPpD72Cu4XWphtOkJfPx6Ep64p1kIfo=; b=aOMpbOKPeRjYgk4aIZ9j+l+aMWsCffKWniszA6xzi7zPT+M4ZDch0x72MH0mj1TTJ4 eM+zqeSmwftgqnaH/R+QySwK+a9QxHVRFFx9mD1ptP9jLLwEfihmTCsOUjxplNh8+gvo Mxr2UkWR7dYjQ30uHUVpeqvrKKRvCX6Av3XWMi1L941pWy/OGLDqPtgbmyGj5YlnIpAk rxlPQQeAkuoC06+g7b1snIy30MCX1ecVC6PkXFYXW6VuGT1jTB9uK4w1wMLATdwRkWcT nKdwJCT0IJZRK9lN6dintZYAC+GCd/i5amP+lv9r+8J9P7l3D574VFjniiytgSJ7vTXp /qjQ== 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 v142si6677211oie.217.2020.03.30.14.16.18; Mon, 30 Mar 2020 14:16:31 -0700 (PDT) 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 S1728709AbgC3VPv (ORCPT + 99 others); Mon, 30 Mar 2020 17:15:51 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:36696 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728376AbgC3VPu (ORCPT ); Mon, 30 Mar 2020 17:15:50 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aratiu) with ESMTPSA id 331C0295C90 From: Adrian Ratiu To: adrian61 Cc: devicetree@vger.kernel.org, Jernej Skrabec , Jonas Karlman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Andrzej Hajda , linux-imx@nxp.com, linux-rockchip@lists.infradead.org, kernel@collabora.com, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Laurent Pinchart Subject: Re: [PATCH v5 1/5] drm: bridge: dw_mipi_dsi: add initial regmap infrastructure In-Reply-To: References: <20200330113542.181752-1-adrian.ratiu@collabora.com> <20200330113542.181752-2-adrian.ratiu@collabora.com> Date: Tue, 31 Mar 2020 00:16:53 +0300 Message-ID: <87ftdp35mi.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, 30 Mar 2020, adrian61 wrote: > Hello Adrian, > > I am testing hese changes on my STM32F769-DISCO and i found > that: > > On Mon, Mar 30, 2020 at 2:35 PM Adrian Ratiu > wrote: >> >> In order to support multiple versions of the Synopsis MIPI DSI >> host controller, which have different register layouts but >> almost identical HW protocols, we add a regmap infrastructure >> which can abstract away register accesses for platform drivers >> using the bridge. >> >> The controller HW revision is detected during bridge probe >> which will be used in future commits to load the relevant >> register layout which the bridge will use transparently to the >> platform drivers. >> >> Signed-off-by: Adrian Ratiu --- >> New in v5. --- >> drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 208 >> ++++++++++-------- 1 file changed, 117 insertions(+), 91 >> deletions(-) >> >> diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c >> b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index >> 5ef0f154aa7b..6d9e2f21c9cc 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