Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2076477ybc; Wed, 13 Nov 2019 08:38:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzTcZ+BbaHf3ZDCKeszbtLvw8soJeKa+MzD2JL4GAsyw5eLtyKQH9RaGMA7uMGJ14m/p/4f X-Received: by 2002:a05:6402:1543:: with SMTP id p3mr4721736edx.304.1573663106091; Wed, 13 Nov 2019 08:38:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573663106; cv=none; d=google.com; s=arc-20160816; b=iGeNq1pwTk9HkM9thUawKYRSHrvT92i19jiJtmLMpaTGFQFtVRe2YK5A1EtKlX9qWU 2iOr/4N3zipWD4oSKQUM89X7v0wNd1zOA3Uk5Y1/qbyXFklKkxNSwcMp2RJthH/YKAQW gLPFztdIi7Szj5Rd4UGgZZ8Qoz+mqD/m8SrggCNwbzpyPPfJOWeFG436Bxxn2vcQzQV0 2d/TsUcnEuB0cWNM6CE9P9hPAoL9LGknl4EIP2BkFpsrlZNvDPOpkB2/OJHoTz2x7fhY fmfjBYcXLaFKgZ4MizYrcz28Ifr/kHKvCdi4d0A10wH+DLFP02F1Ip7zjB12XN8jTu40 vnBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=P0gOVwnr8RZ3Od+Q+Wt9xsj7qG4zJHYItky1OrLz/7Q=; b=fyk6fuNdrC1IzNN/Vqv7RdlH/44bHHElSRl+xsuUyyst/Fg+svMhN87kkQGYbZnlgo kyoYO8+aovp8ONEfynudN+gIxNAn2b0FPszjw+F0lB45+vA7QOTd3Xna6cbiJfCYFiP5 lA308N+PyBkZefE7EzWIM/swp6yu7qrAzRQ2i3Z6H5/Jn9TMggo33cKrrybDu0SuRfqo A0UyW6jSshAo1OlJZ5SD3H16rM8K+vj+ZkfM/SkfImHYyaHsF6FQ6fmykDXjkbEkf8xI mi1e+zH4DsZD4nohAhmlzT2B0yFauxa7JqOLM+fESde77XWx1X2D6Q3tVpY9XOWh2+tS dGEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DntvAiim; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3si1666101edt.196.2019.11.13.08.37.48; Wed, 13 Nov 2019 08:38:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DntvAiim; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727797AbfKMO6Y (ORCPT + 99 others); Wed, 13 Nov 2019 09:58:24 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:39668 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbfKMO6Y (ORCPT ); Wed, 13 Nov 2019 09:58:24 -0500 Received: by mail-vs1-f65.google.com with SMTP id x21so1519081vsp.6 for ; Wed, 13 Nov 2019 06:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P0gOVwnr8RZ3Od+Q+Wt9xsj7qG4zJHYItky1OrLz/7Q=; b=DntvAiimaxy5eO8WmD5HKsaq8paiLEDN0gZRqng+Xx9VyAUgIR4AjdrfvQMMtiSy+c kzIT1vF4PL6dW0q4lybAHUTIe/fZzxIfPJN9RiZYhS7TtFC33OI9cLMC+p8J1NFNgr+S WZjtZx1j7LqChx64foynsNatq1nK0axjAIv7cDN2Qi3ahX7gnhLFxIaefxu8Zl2L1/Bu cm/hKxxW2E7gV0/llr8hOWDu2HTnj3y3VD+Z0wLlyeGdgupdyArE1NA7g2xNoI7Z1i25 aKclClidbXBgBWKKlVODU4ZNnkr4+R2uaHhlOkkhZqSP8r1MhySo2WiOit311x1n+NJV r9KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P0gOVwnr8RZ3Od+Q+Wt9xsj7qG4zJHYItky1OrLz/7Q=; b=tEQnt0l6StKNx6XJ6k2bfjLNniewcV1TrTcqiSB+HxIO4NbBsAz0t8wrcK1vC3hsno WmZeb7bVmdO7SAfob56AfUWesPy2INMeU0WisMk18IqgvcNPLvBGvMyXwCnPQkMMpPY5 f4zeY4nx5OpMqMAPi1n/WA1fVnJH3r4cHSdFT8Ox3mF+FRW0z3XdIDpeJqntIA29Fp0j VDNiG8cwQPlUcam63ee8no1eys8kN0DQ3FxNEkQntywDQQHdcaDLj67dwrYRU+xJEZr3 3wpU+cQGgb1bEoJjmml4cg/I7Zm946xeM72wwiFXPm9M1j7RDSjLfP6cKKiZxDO7w1sa 4uvw== X-Gm-Message-State: APjAAAVNK/bSNEHRBXvnfr4WJhFcSRgtNqSf2B5QqM2Ibf5paFW79ygY c8ECPV0bi0fuT+ahv/Fnw8Edduvy3NzoSDhT2yw= X-Received: by 2002:a05:6102:20d1:: with SMTP id i17mr2197246vsr.186.1573657102968; Wed, 13 Nov 2019 06:58:22 -0800 (PST) MIME-Version: 1.0 References: <20191106163031.808061-1-adrian.ratiu@collabora.com> <20191106163031.808061-2-adrian.ratiu@collabora.com> In-Reply-To: <20191106163031.808061-2-adrian.ratiu@collabora.com> From: Emil Velikov Date: Wed, 13 Nov 2019 14:57:55 +0000 Message-ID: Subject: Re: [PATCH v2 1/4] drm: bridge: dw_mipi_dsi: access registers via a regmap To: Adrian Ratiu Cc: LAKML , linux-stm32@st-md-mailman.stormreply.com, linux-rockchip , kernel@collabora.com, "Linux-Kernel@Vger. Kernel. Org" , ML dri-devel , Boris Brezillon , Neil Armstrong Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 6 Nov 2019 at 16:30, 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. > > The regmap becomes an internal state of the bridge. No functional > changes other than requiring the platform drivers to use the > pre-configured regmap supplied by the bridge after its probe() call > instead of ioremp'ing the registers themselves. > > In subsequent commits the bridge will become able to detect the > DSI host core version and init the regmap with different register > layouts. The platform drivers will continue to use the regmap without > modifications or worrying about the specific layout in use (in other > words the layout is abstracted away via the regmap). > > Suggested-by: Boris Brezillon > Reviewed-by: Neil Armstrong > Reviewed-by: Emil Velikov I should have been clearer earlier - I didn't quite review the patch. Is is now though. Reviewed-by: Emil Velikov Admittedly a couple of nitpicks (DRIVER_NAME, zero initialize of val) could have been left out. It's not a big deal, there's no need to polish those. -Emil