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=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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=unavailable 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 DCFD7CA9EA0 for ; Mon, 4 Nov 2019 12:04:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC1E7217F4 for ; Mon, 4 Nov 2019 12:04:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sinjwdm6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC1E7217F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=e0hQyUl+oXoeabVJB56xIX6B03KtsAsF0UpxFxPZqBM=; b=sinjwdm6xhM/BXUFNHrmUZF70 Dug38p5lAj9lF7eVtU80RZp3qHlZkZBgvB9UR1caft5iWfpRvrSF1BJsQNuWuikoWcBhxOXzy/zHS SjvddDEF03xIqto/qIPRq9pF04wtqjJR1pyqb6dApgMNsmOMtkPYiG3QFW/QrkT4KZZSce1KFgy9B YlFDXW4LWj6wfUf0Un00BVUS2thgwaHneUT9leFYGpvKsSLgGFhY8bAtDE7V3QzZNYJsg76UREfJD R1zpDDm2jp4Msqu8gzFtLaBpVMrlzfHuW4km/UR7jITBN/ASfXZxr3JJduJ5s3QXW2IZoVg6XJZ/C MfdPFOlPg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRb6M-0008JD-Fd; Mon, 04 Nov 2019 12:04:54 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRb5F-00070T-S6; Mon, 04 Nov 2019 12:03:49 +0000 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191104_040346_186401_1C020FFD X-CRM114-Status: GOOD ( 13.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel@collabora.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Boris Brezillon Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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