Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp107513imm; Tue, 17 Jul 2018 15:01:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdLbBNLNanFSMF/BP3C9bjWfl9pPtyi0++ZneMsGDviacAe3bY7+OXABEyyowMnz7R1xpyJ X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr3245758pla.52.1531864860273; Tue, 17 Jul 2018 15:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531864860; cv=none; d=google.com; s=arc-20160816; b=LgBiiZ4b2H2jwaAh5wujbQNsXq4ipVXoClxWMtfBmoWyhZDK+rbXGa5YX9FKcG4y4W 6sdZP95VOK6QrU+fWuewdNPxKiZqJexMc81pr0YXb1XnGxnSVwpLDhuNSkwgs+DSe3OL fOwGnT9ydtt2LvK863bTn5VkvEXbNxnrfYtlaE9TVVk9+5ydxJRKCn/MhygbZdYYLXKd OOslhyUPlz0v2DrMiEqDXnlCfWApXn+tIPvWjgshqqBR1+G/bPwgLA5iBpNGfugsVNR5 i+YvBhvzQcAiekmLi7AnRffbFuMVfan/i0e7QEZTzcPe6Ocl8UJaq4yyuyeyReDKIOnQ VGTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=bm3T21eEDTjv/xxw1yqDQDDrizDuy8jUawA2KAjqAI4=; b=OtOIujM//MzdySEu44QPjzIYap3x0NtdO7uelCoTe3qFulmwAGj+vspJXidJIikn8t IO8EgZkKA8xOcV7z+I0c1PlxQFYXD0NSGDE0aN6ng6Tl98zlGagzJ6azjQkflIyrSmQW TZqwDVaPUMExgu540h5A5w91z/1Yy6K15TJ2Gu5wktZy/EM/ArSq/IM1LZkdyT1aGu9H YTggX9puxitY6wZB3EOpKDqG6GIz72AVzskO6i4Mb1YoGlkvKQ25S3+a/4/RniqT4f9l R3+haDLL1ecgwhGephxkezTgVftVr4JbhmINBumwcGxJ/XrJtFwu7IKc9RG2V9EjXM54 pNqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b90hujwv; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16-v6si1780224pgr.325.2018.07.17.15.00.45; Tue, 17 Jul 2018 15:01:00 -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=@kernel.org header.s=default header.b=b90hujwv; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731203AbeGQWep (ORCPT + 99 others); Tue, 17 Jul 2018 18:34:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:44296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729713AbeGQWep (ORCPT ); Tue, 17 Jul 2018 18:34:45 -0400 Received: from ziggy.de (144.pool85-56-49.dynamic.orange.es [85.56.49.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9BEB020693; Tue, 17 Jul 2018 22:00:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531864806; bh=Ads2zmXnGVFVd3ChP9q4Zr6RjHXUz71gEF6xnnFyQgE=; h=From:To:Cc:Subject:Date:From; b=b90hujwvtlHlFqGGvSUK3Npnd4WjtA4shqKuRl3oHKSOD7zydE7PKNwcij8dWNPJY sVQi0IVgmjePiqjgvOQn0ffChvPPuLNcGefkbU1AzeCJXj0hZG9BlBie5LAu6BZQO7 vweUfi927ayp227l1G8VTpk7EsgwVT5bd+7bqVos= From: matthias.bgg@kernel.org To: laurent.pinchart@ideasonboard.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, lee.jones@linaro.org Cc: davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, rdunlap@infradead.org, pi-cheng.chen@linaro.org, sean.wang@mediatek.com, linux-clk@vger.kernel.org, linux@armlinux.org.uk, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: arm/arm64: mediatek: Fix mmsys device probing Date: Tue, 17 Jul 2018 23:59:46 +0200 Message-Id: <20180717215951.378-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v3: - use platform device to probe clock driver - add Acked-by CK Hu for the probe deferred patch Changes since v2: - fix kconfig typo (shame on me) - delete __initconst from mm_clocks as converted to a platform driver Changes since v1: - add binding documentation - ddp: use regmap_update_bits - ddp: ignore EPROBE_DEFER on clock probing - mfd: delete mmsys_private - add Reviewed-by and Acked-by tags MMSYS in Mediatek SoCs has some registers to control clock gates (which is used in the clk driver) and some registers to set the routing and enable the differnet blocks of the display subsystem. Up to now both drivers, clock and drm are probed with the same device tree compatible. But only the first driver get probed, which in effect breaks graphics on mt8173 and mt2701. This patch uses a platform device registration in the DRM driver, which will trigger the probe of the corresponding clock driver. It was tested on the bananapi-r2 and the Acer R13 Chromebook.