Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3355932ybb; Mon, 6 Apr 2020 07:24:36 -0700 (PDT) X-Google-Smtp-Source: APiQypKOb5BXCA0G+yZMaDMfIDsA7thildBnA7arlibmDJLS/kZeDi6oMb1UXhLztqdb8BvmK4SJ X-Received: by 2002:aca:d5d1:: with SMTP id m200mr13185798oig.49.1586183075781; Mon, 06 Apr 2020 07:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586183075; cv=none; d=google.com; s=arc-20160816; b=CKYQ+7NAO0+Buyd/ojD4sX8dVlyNYaeocS7NqFmbvTm03WEaFLfQ1iuy4uobCFPlaw pjFIdQ+lzjXYs61Rje07prB9f2+q02546sSGCg/k7aTQzGNs7EOMFAcDD3TQT+A3ebpV qrnNU2ypOu3xfIAtOtlxqI8r1RtCor8P1MgGdW29Y9vYy4bnXKeFbln5dAHXdw4Uknsb EEPxm5mRc8Tl53XphY2nIvbwdYzjlPjzCkECpaYXPsd9mpUn1zvpwsiq/HbjrYqMeJ1w WsWeSMJjJazYEHvMvk9wbXEi8YbNosyUoJPDFPdWJA73t2WHXWXLt9MQfiB8PaAYZh7L plKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=80HiovpSACSa5iKWuDtXEGNMjiGgvGqhBPfk2+6zg2I=; b=0vhSLd0433prBDKOlJuJTPaVtC5arRKnYWz/L4Fj7KMI6fL5ySnYmDfwXb8edDZ48b 5Pq/defG6PoXjO4WDTeM4bjT00Sm8nQW9gU1yxKLaZyMgLLKxe3rDsUFvyHIch7i7P0v U2UDykeSSDb0gndZH3R3KtE6/DaxoA8kQKrHk/4prfctgBN73PFUWPFlZujNgyR1jzjD bO64I5+Ctz5HziYuIzPBU8CtVA3kZV9KJuUHR5xcBC+O0452oG+eusQZwSyKUoy3U5XV M63FqsQ4fuAN0LAcWnndpxQPgDGQV2SqJmx+emCnYIh71ffRTurEqQXm2WSlFI0HXHRw SAdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Y9S1R0tp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a18si8585733otq.286.2020.04.06.07.24.22; Mon, 06 Apr 2020 07:24:35 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Y9S1R0tp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728701AbgDFOXz (ORCPT + 99 others); Mon, 6 Apr 2020 10:23:55 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:47092 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728539AbgDFOXz (ORCPT ); Mon, 6 Apr 2020 10:23:55 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200406142351euoutp021c36b75fbfe822369dd0a4b6baa22bcc~DQRAyYFp00221902219euoutp02T for ; Mon, 6 Apr 2020 14:23:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200406142351euoutp021c36b75fbfe822369dd0a4b6baa22bcc~DQRAyYFp00221902219euoutp02T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1586183031; bh=80HiovpSACSa5iKWuDtXEGNMjiGgvGqhBPfk2+6zg2I=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=Y9S1R0tpk3yqYW2uH+9884TfpcTEYO2pF84lZFKPXhwoYBc3gkBFO6OqyCH1+jTGC T20P0WZ5F0EYNMBJc42m//fPODIqTgx52+aa81BSoufpKyfLnK3pQQn9XNc+MECcpD i1iSdMn2lfk0sAkq6grWcDGvAnsDJGNU5oTk1MkY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200406142351eucas1p176e16341c0ae5cba40259b3b3b64279e~DQRAfqxZE2343723437eucas1p1r; Mon, 6 Apr 2020 14:23:51 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id F5.1A.61286.77B3B8E5; Mon, 6 Apr 2020 15:23:51 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200406142350eucas1p2524f266941cfedd66c0181f2fedcf388~DQRAJGFE81495514955eucas1p2N; Mon, 6 Apr 2020 14:23:50 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200406142350eusmtrp1d2e992634175bcb2ae0fea4a3e778668~DQRAIQ9ax0348903489eusmtrp1a; Mon, 6 Apr 2020 14:23:50 +0000 (GMT) X-AuditID: cbfec7f2-f0bff7000001ef66-ea-5e8b3b77753e Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 01.CF.08375.67B3B8E5; Mon, 6 Apr 2020 15:23:50 +0100 (BST) Received: from [106.210.85.205] (unknown [106.210.85.205]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200406142350eusmtip1eccb47d1871edabd5397fc2de3e805dc~DQQ-biU9_1810518105eusmtip1e; Mon, 6 Apr 2020 14:23:50 +0000 (GMT) Subject: Re: [PATCH v5 0/5] Genericize DW MIPI DSI bridge and add i.MX 6 driver To: Adrian Ratiu , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Cc: Jernej Skrabec , Jonas Karlman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-imx@nxp.com, kernel@collabora.com, linux-stm32@st-md-mailman.stormreply.com, Laurent Pinchart From: Andrzej Hajda Message-ID: <7b95e129-8035-df7f-3d50-2ae3c2e8af8d@samsung.com> Date: Mon, 6 Apr 2020 16:23:49 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200330113542.181752-1-adrian.ratiu@collabora.com> Content-Transfer-Encoding: 8bit Content-Language: pl X-Brightmail-Tracker: H4sIAAAAAAAAA02SWUwTYRDH83V3y7ahuBSQEYxiY6JouIIxm6Aoxod9EKM+qQlHkQ0Q21Ja DlEjBJBAOUTw4jAQjoggqFQQiCFQCEiQIkcJJDQQqA8QDsuloIi0i5G338z855v5Tz4SExsI FzJKEcuqFFKZhC/Em7o3BjwS/LKCvUsfiuiNvCaCLu3SE/TI2hKfNvyYxejeeQNOa/XZBJ35 uNKGbpgZJWjN5muMHm4t4dPLU9sYrRk1EedtmWZjJWKKMwoJ5nPeEI+ZzOrhMdrKJOb9YjOP ac8pwJmONh9mpeHQFcFN4ZlwVhYVz6q8/EOFkbpOQmnad2ep7SeRjKpsNYgkgToFXYMyDRKS YqoawcJ8H48LVhF8+j2Oc8EKguWhZzYaJLB2mKe6Ma7wCsGX7dJd1RICY043z6JyoK6CfjCd b2FHKgb0jTWERYRRnTxYSa+3iviUO2xpx60iEeUPQ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hbBGJG49aGCcwCs1C0j4LScssJC2zkLQsYGRZxSiSWlqcm55bbKhXnJhbXJqX rpecn7uJERjL24793LyD8dLG4EOMAhyMSjy8EZzdcUKsiWXFlbmHGCU4mJVEeKV6O+OEeFMS K6tSi/Lji0pzUosPMZoCPTeRWUo0OR+YZvJK4g1NDc0tLA3Njc2NzSyUxHk7BA7GCAmkJ5ak ZqemFqQWwfQxcXBKNTD61jyd80V46Z2jM0M1Xwufq2LR3dcptittXrc7I3PXbcnnSk/cNvfs 2nfkusDU3Q2GcdN7TlxxK7h1Pd3Tr6rmu0+44+9ZftXHtjwISiu3SQ5u99vductMaBWn3p5V pfKLprBp7P9fo2Z2Ri786nqLb0vL3QVPcM0wb1i1z9/7LfPF68+514orsRRnJBpqMRcVJwIA Q/GjXvsCAAA= X-CMS-MailID: 20200406142350eucas1p2524f266941cfedd66c0181f2fedcf388 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200330113455eucas1p1441dc79d44de5081e9d90079e2020ca0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200330113455eucas1p1441dc79d44de5081e9d90079e2020ca0 References: <20200330113542.181752-1-adrian.ratiu@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adrian, Due to different ways of work I use different mail client, so forgive me if there are some misconfugrations. W dniu 30.03.2020 o 13:35, Adrian Ratiu pisze: > Hello everyone, > > The v5 series is a significantly cleaned up version from v4, > started by Ezequiel Garcia's suggestion of splitting out the > regmap infrastructure from the drivers (thank you!). > > Turns out no changes are required to the existing drivers and > the bridge can transparently take care of the layout logic, > so there's no need to expose the regmap via plat_data anymore. > > Starting from this version I also opted to add per-patch > changelogs. All review comments up to now have been addressed. > > Tested on IMX6DL. > > Adrian Ratiu (5): > drm: bridge: dw_mipi_dsi: add initial regmap infrastructure > drm: bridge: dw_mipi_dsi: abstract register access using reg_fields > drm: bridge: synopsis: add dsi v1.01 support > drm: imx: Add i.MX 6 MIPI DSI host platform driver > dt-bindings: display: add i.MX6 MIPI DSI host controller doc > > .../display/imx/fsl,mipi-dsi-imx6.yaml | 134 ++++ > drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 683 +++++++++++++----- So we have above 400 lines more just to add slightly different register layout of v1.01. Quite big linecount for apparently small (?) functional change - I was too lazy to check how many reg fields are really used (some are not used at all), but it does not seem to be big enough to justyfy so big change IMO. I will add more comments in specific patches. Regards Andrzej > drivers/gpu/drm/imx/Kconfig | 7 + > drivers/gpu/drm/imx/Makefile | 1 + > drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c | 399 ++++++++++ > 5 files changed, 1049 insertions(+), 175 deletions(-) > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml > create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c >